提交 2a557ddc 编写于 作者: Z zhangjun

update

上级 e8faed64
...@@ -70,41 +70,41 @@ if (NOT DEFINED WITH_MKLDNN) ...@@ -70,41 +70,41 @@ if (NOT DEFINED WITH_MKLDNN)
endif() endif()
if (SERVER) if (SERVER)
include(external/jsoncpp) include(external/jsoncpp)
#include(external/rocksdb) #include(external/rocksdb)
endif() endif()
if (SERVER OR CLIENT) if (SERVER OR CLIENT)
include(external/snappy) include(external/snappy)
include(external/leveldb) include(external/leveldb)
include(external/zlib) include(external/zlib)
include(external/boost) include(external/boost)
include(external/protobuf) include(external/protobuf)
include(external/brpc) include(external/brpc)
include(external/gflags) include(external/gflags)
include(external/glog) include(external/glog)
if (WITH_PYTHON) if (WITH_PYTHON)
include(external/pybind11) include(external/pybind11)
include(external/python) include(external/python)
endif() endif()
include(generic) include(generic)
include(flags) include(flags)
endif() endif()
if (APP) if (APP)
include(external/zlib) include(external/zlib)
include(external/boost) include(external/boost)
include(external/protobuf) include(external/protobuf)
include(external/gflags) include(external/gflags)
include(external/glog) include(external/glog)
include(external/pybind11) include(external/pybind11)
include(external/python) include(external/python)
include(generic) include(generic)
endif() endif()
if (SERVER) if (SERVER)
include(external/cudnn) include(external/cudnn)
include(paddlepaddle) include(paddlepaddle)
endif() endif()
message("paddle serving source dir: " ${PADDLE_SERVING_SOURCE_DIR}) message("paddle serving source dir: " ${PADDLE_SERVING_SOURCE_DIR})
...@@ -130,16 +130,16 @@ set(EXTERNAL_LIBS ...@@ -130,16 +130,16 @@ set(EXTERNAL_LIBS
) )
if(SERVER) if(SERVER)
if(WITH_MKLML) if(WITH_MKLML)
list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB}) list(APPEND EXTERNAL_LIBS ${MKLML_IOMP_LIB})
endif() endif()
endif() endif()
if(SERVER) if(SERVER)
if(WITH_MKLDNN) if(WITH_MKLDNN)
list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB}) list(APPEND EXTERNAL_LIBS ${MKLDNN_LIB})
endif() endif()
endif() endif()
if (SERVER) if (SERVER)
...@@ -149,9 +149,9 @@ endif() ...@@ -149,9 +149,9 @@ endif()
add_subdirectory(core) add_subdirectory(core)
if(SERVER) if(SERVER)
add_subdirectory(paddle_inference) add_subdirectory(paddle_inference)
endif() endif()
if (WITH_PYTHON) if (WITH_PYTHON)
add_subdirectory(python) add_subdirectory(python)
endif() endif()
...@@ -122,24 +122,24 @@ ADD_LIBRARY(paddle_fluid SHARED IMPORTED GLOBAL) ...@@ -122,24 +122,24 @@ ADD_LIBRARY(paddle_fluid SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET paddle_fluid PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_fluid.so) SET_PROPERTY(TARGET paddle_fluid PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/lib/libpaddle_fluid.so)
if (WITH_TRT) if (WITH_TRT)
ADD_LIBRARY(nvinfer SHARED IMPORTED GLOBAL) ADD_LIBRARY(nvinfer SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET nvinfer PROPERTY IMPORTED_LOCATION ${TENSORRT_ROOT}/lib/libnvinfer.so) SET_PROPERTY(TARGET nvinfer PROPERTY IMPORTED_LOCATION ${TENSORRT_ROOT}/lib/libnvinfer.so)
ADD_LIBRARY(nvinfer_plugin SHARED IMPORTED GLOBAL) ADD_LIBRARY(nvinfer_plugin SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET nvinfer_plugin PROPERTY IMPORTED_LOCATION ${TENSORRT_ROOT}/lib/libnvinfer_plugin.so) SET_PROPERTY(TARGET nvinfer_plugin PROPERTY IMPORTED_LOCATION ${TENSORRT_ROOT}/lib/libnvinfer_plugin.so)
endif() endif()
if (WITH_LITE) if (WITH_LITE)
ADD_LIBRARY(paddle_api_full_bundled STATIC IMPORTED GLOBAL) ADD_LIBRARY(paddle_api_full_bundled STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET paddle_api_full_bundled PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/lite/cxx/lib/libpaddle_api_full_bundled.a) SET_PROPERTY(TARGET paddle_api_full_bundled PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/lite/cxx/lib/libpaddle_api_full_bundled.a)
if (WITH_XPU) if (WITH_XPU)
ADD_LIBRARY(xpuapi SHARED IMPORTED GLOBAL) ADD_LIBRARY(xpuapi SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET xpuapi PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/xpu/lib/libxpuapi.so) SET_PROPERTY(TARGET xpuapi PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/xpu/lib/libxpuapi.so)
ADD_LIBRARY(xpurt SHARED IMPORTED GLOBAL) ADD_LIBRARY(xpurt SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET xpurt PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/xpu/lib/libxpurt.so) SET_PROPERTY(TARGET xpurt PROPERTY IMPORTED_LOCATION ${PADDLE_INSTALL_DIR}/third_party/install/xpu/lib/libxpurt.so)
endif() endif()
endif() endif()
ADD_LIBRARY(xxhash STATIC IMPORTED GLOBAL) ADD_LIBRARY(xxhash STATIC IMPORTED GLOBAL)
...@@ -151,13 +151,13 @@ LIST(APPEND paddle_depend_libs ...@@ -151,13 +151,13 @@ LIST(APPEND paddle_depend_libs
xxhash) xxhash)
if(WITH_LITE) if(WITH_LITE)
LIST(APPEND paddle_depend_libs paddle_api_full_bundled) LIST(APPEND paddle_depend_libs paddle_api_full_bundled)
if(WITH_XPU) if(WITH_XPU)
LIST(APPEND paddle_depend_libs xpuapi xpurt) LIST(APPEND paddle_depend_libs xpuapi xpurt)
endif() endif()
endif() endif()
if(WITH_TRT) if(WITH_TRT)
LIST(APPEND paddle_depend_libs LIST(APPEND paddle_depend_libs
nvinfer nvinfer_plugin) nvinfer nvinfer_plugin)
endif() endif()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册