提交 dcf1f4f4 编写于 作者: H huzhiqiang 提交者: GitHub

fix model_opt_tool bug : judge WITH_MKL to choose whether to compile MKL (#2320)

* fix model_opt_tool bug : judge WITH_MKL to choose whether to compile MKL test=develop
上级 64701a4c
...@@ -111,8 +111,11 @@ if (LITE_WITH_X86) ...@@ -111,8 +111,11 @@ if (LITE_WITH_X86)
COMMAND cp -r "${CMAKE_BINARY_DIR}/third_party/eigen3" "${INFER_LITE_PUBLISH_ROOT}/third_party" COMMAND cp -r "${CMAKE_BINARY_DIR}/third_party/eigen3" "${INFER_LITE_PUBLISH_ROOT}/third_party"
COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx" COMMAND mkdir -p "${INFER_LITE_PUBLISH_ROOT}/demo/cxx"
) )
add_dependencies(publish_inference_x86_cxx_demos gflags eigen3 mklml xbyak xxhash glog)
add_dependencies(publish_inference_x86_cxx_lib publish_inference_x86_cxx_demos) add_dependencies(publish_inference_x86_cxx_lib publish_inference_x86_cxx_demos)
add_dependencies(publish_inference_x86_cxx_demos gflags eigen3 xbyak xxhash glog)
if(WITH_MKL)
add_dependencies(publish_inference_x86_cxx_demos mklml)
endif()
endif() endif()
if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM) if (LITE_WITH_LIGHT_WEIGHT_FRAMEWORK AND LITE_WITH_ARM)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册