From ac3bdf1da9ec6985c48b0e03422e60c7f764c23c Mon Sep 17 00:00:00 2001 From: huzhiqiang <912790387@qq.com> Date: Wed, 13 May 2020 19:42:05 +0800 Subject: [PATCH] [X86][Demo][MAC] Fix the issue that python demo and cxx_demo failed on MAC env --- lite/core/mir/fusion/fc_fuse_pass.cc | 2 +- lite/demo/cxx/x86_mobilenetv1_full_demo/CMakeLists.txt | 2 +- lite/demo/cxx/x86_mobilenetv1_light_demo/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lite/core/mir/fusion/fc_fuse_pass.cc b/lite/core/mir/fusion/fc_fuse_pass.cc index 46695be396..e2d8f96c53 100644 --- a/lite/core/mir/fusion/fc_fuse_pass.cc +++ b/lite/core/mir/fusion/fc_fuse_pass.cc @@ -38,7 +38,7 @@ void FcFusePass::Apply(const std::unique_ptr& graph) { REGISTER_MIR_PASS(lite_fc_fuse_pass, paddle::lite::mir::FcFusePass) .BindTargets({TARGET(kAny)}) - .ExcludeTargets({TARGET(kXPU)}) + .ExcludeTargets({TARGET(kXPU), TARGET(kX86)}) .ExcludeTargets({TARGET(kBM)}) .ExcludeTargets({TARGET(kCUDA)}) .BindKernel("fc"); diff --git a/lite/demo/cxx/x86_mobilenetv1_full_demo/CMakeLists.txt b/lite/demo/cxx/x86_mobilenetv1_full_demo/CMakeLists.txt index 5039ef7727..a4b8497ebb 100644 --- a/lite/demo/cxx/x86_mobilenetv1_full_demo/CMakeLists.txt +++ b/lite/demo/cxx/x86_mobilenetv1_full_demo/CMakeLists.txt @@ -17,5 +17,5 @@ set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) # 4.add executable output add_executable(${TARGET} ${TARGET}.cc) target_link_libraries(${TARGET} -lpaddle_full_api_shared) -target_link_libraries(${TARGET} -lmklml_intel) +target_link_libraries(${TARGET} -liomp5) target_link_libraries(${TARGET} -ldl) diff --git a/lite/demo/cxx/x86_mobilenetv1_light_demo/CMakeLists.txt b/lite/demo/cxx/x86_mobilenetv1_light_demo/CMakeLists.txt index 6f917b5353..e85b8fe67e 100644 --- a/lite/demo/cxx/x86_mobilenetv1_light_demo/CMakeLists.txt +++ b/lite/demo/cxx/x86_mobilenetv1_light_demo/CMakeLists.txt @@ -17,5 +17,5 @@ set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) # 4.add executable output add_executable(${TARGET} ${TARGET}.cc) target_link_libraries(${TARGET} -lpaddle_light_api_shared) -target_link_libraries(${TARGET} -lmklml_intel) +target_link_libraries(${TARGET} -liomp5) target_link_libraries(${TARGET} -ldl) -- GitLab