未验证 提交 82a41e0a 编写于 作者: H huzhiqiang 提交者: GitHub

Fix opt tool cherry pick (#2322)

* fix model_opt_tool bug : judge WITH_MKL to choose whether to compile MKL (#2320)
上级 a1b5acb2
......@@ -110,8 +110,11 @@ if (LITE_WITH_X86)
COMMAND cp -r "${CMAKE_BINARY_DIR}/third_party/eigen3" "${INFER_LITE_PUBLISH_ROOT}/third_party"
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_demos gflags eigen3 xbyak xxhash glog)
if(WITH_MKL)
add_dependencies(publish_inference_x86_cxx_demos mklml)
endif()
endif()
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.
先完成此消息的编辑!
想要评论请 注册