未验证 提交 d015ecf5 编写于 作者: Y YuanRisheng 提交者: GitHub

[BugFix]Change PHI to static mode for Inference lib (#54252)

* fix inference static lib bugs

* add if for copy

* fix py3 bugs

* change phi to static for inference

* fix py3 bugs

* fix ci-inference

* fix inference bugs

* perfect code
上级 55dd3f2c
......@@ -241,7 +241,8 @@ set(WITH_PHI_SHARED
CACHE BOOL "" FORCE)
if(WIN32
OR WITH_ROCM
OR WITH_XPU_KP)
OR WITH_XPU_KP
OR ON_INFER)
set(WITH_PHI_SHARED
OFF
CACHE BOOL "" FORCE)
......
......@@ -33,7 +33,7 @@ endif()
# fluid_modules exclude API-interface of inference/api and inference/capi_exp
get_property(fluid_modules GLOBAL PROPERTY FLUID_MODULES)
get_property(phi_modules GLOBAL PROPERTY PHI_MODULES)
set(utils_modules pretty_log string_helper benchmark utf8proc)
set(utils_modules pretty_log string_helper benchmark)
add_subdirectory(api)
......
......@@ -199,7 +199,7 @@ if(NOT WIN32)
${MATH_LIB}
${MKLDNN_LIB}
glog
phi
gflags
protobuf
xxhash
cryptopp
......
......@@ -224,7 +224,7 @@ if(NOT WIN32)
${MATH_LIB}
${MKLDNN_LIB}
glog
phi
gflags
protobuf
xxhash
cryptopp
......@@ -235,7 +235,7 @@ else()
${MATH_LIB}
${MKLDNN_LIB}
glog
phi
gflags_static
libprotobuf
xxhash
cryptopp-static
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册