diff --git a/lite/core/mir/fusion/fc_fuse_pass.cc b/lite/core/mir/fusion/fc_fuse_pass.cc index 46695be396596c2ce9b74bb771326171fc7b374b..e2d8f96c53bd76d9495035c6ec56a5364b9bdcf5 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 5039ef7727c089e04ef49bd3c559a0103aa767e1..a4b8497ebb30630b91d0eee9ebde389ae10f0e2c 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 6f917b5353b066b86547e6c0b31ab643e876ead1..e85b8fe67e1a8be859d4d7a9a95a9008802a7521 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)