diff --git a/paddle/fluid/inference/api/demo_ci/CMakeLists.txt b/paddle/fluid/inference/api/demo_ci/CMakeLists.txt index d4e6bb3e4a4ceb361ccd35121d0ecf84a764243e..4c30e1b3217e90f29a83184e114eac9497771d18 100644 --- a/paddle/fluid/inference/api/demo_ci/CMakeLists.txt +++ b/paddle/fluid/inference/api/demo_ci/CMakeLists.txt @@ -71,8 +71,8 @@ link_directories("${PADDLE_LIB}/third_party/install/glog/lib") link_directories("${PADDLE_LIB}/third_party/install/gflags/lib") link_directories("${PADDLE_LIB}/paddle/fluid/inference") -add_executable(${DEMO_NAME} ${DEMO_NAME}.cc) - +# add_executable(${DEMO_NAME} ${DEMO_NAME}.cc) +add_library(${DEMO_NAME} ${DEMO_NAME}.cc) if(WITH_MKL) include_directories("${PADDLE_LIB}/third_party/install/mklml/include") set(MATH_LIB ${PADDLE_LIB}/third_party/install/mklml/lib/libmklml_intel${CMAKE_SHARED_LIBRARY_SUFFIX} diff --git a/paddle/fluid/inference/api/demo_ci/inference_icnet.cc b/paddle/fluid/inference/api/demo_ci/inference_icnet.cc index 1d7876359b3228fca1d6d07dfe8177daaa8cd26f..869002b94e08eb6a0ac403329e9fead990b93114 100644 --- a/paddle/fluid/inference/api/demo_ci/inference_icnet.cc +++ b/paddle/fluid/inference/api/demo_ci/inference_icnet.cc @@ -24,7 +24,7 @@ namespace paddle { -std::string DIRNAME = "./Release/infer_model"; +std::string DIRNAME = "./infer_model"; std::string DATA = "./test-image.txt"; const int C = 3; // image channel const int H = 449; // image height