Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
2a557ddc
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
186
Star
833
Fork
253
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
105
列表
看板
标记
里程碑
合并请求
10
Wiki
2
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Serving
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
105
Issue
105
列表
看板
标记
里程碑
合并请求
10
合并请求
10
Pages
分析
分析
仓库分析
DevOps
Wiki
2
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2a557ddc
编写于
12月 30, 2020
作者:
Z
zhangjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
e8faed64
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
55 addition
and
55 deletion
+55
-55
CMakeLists.txt
CMakeLists.txt
+34
-34
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+21
-21
未找到文件。
CMakeLists.txt
浏览文件 @
2a557ddc
...
...
@@ -70,41 +70,41 @@ if (NOT DEFINED WITH_MKLDNN)
endif
()
if
(
SERVER
)
include
(
external/jsoncpp
)
#include(external/rocksdb)
include
(
external/jsoncpp
)
#include(external/rocksdb)
endif
()
if
(
SERVER OR CLIENT
)
include
(
external/snappy
)
include
(
external/leveldb
)
include
(
external/zlib
)
include
(
external/boost
)
include
(
external/protobuf
)
include
(
external/brpc
)
include
(
external/gflags
)
include
(
external/glog
)
if
(
WITH_PYTHON
)
include
(
external/pybind11
)
include
(
external/python
)
endif
()
include
(
generic
)
include
(
flags
)
include
(
external/snappy
)
include
(
external/leveldb
)
include
(
external/zlib
)
include
(
external/boost
)
include
(
external/protobuf
)
include
(
external/brpc
)
include
(
external/gflags
)
include
(
external/glog
)
if
(
WITH_PYTHON
)
include
(
external/pybind11
)
include
(
external/python
)
endif
()
include
(
generic
)
include
(
flags
)
endif
()
if
(
APP
)
include
(
external/zlib
)
include
(
external/boost
)
include
(
external/protobuf
)
include
(
external/gflags
)
include
(
external/glog
)
include
(
external/pybind11
)
include
(
external/python
)
include
(
generic
)
include
(
external/zlib
)
include
(
external/boost
)
include
(
external/protobuf
)
include
(
external/gflags
)
include
(
external/glog
)
include
(
external/pybind11
)
include
(
external/python
)
include
(
generic
)
endif
()
if
(
SERVER
)
include
(
external/cudnn
)
include
(
paddlepaddle
)
include
(
external/cudnn
)
include
(
paddlepaddle
)
endif
()
message
(
"paddle serving source dir: "
${
PADDLE_SERVING_SOURCE_DIR
}
)
...
...
@@ -130,16 +130,16 @@ set(EXTERNAL_LIBS
)
if
(
SERVER
)
if
(
WITH_MKLML
)
if
(
WITH_MKLML
)
list
(
APPEND EXTERNAL_LIBS
${
MKLML_IOMP_LIB
}
)
endif
()
endif
()
endif
()
if
(
SERVER
)
if
(
WITH_MKLDNN
)
if
(
WITH_MKLDNN
)
list
(
APPEND EXTERNAL_LIBS
${
MKLDNN_LIB
}
)
endif
()
endif
()
endif
()
if
(
SERVER
)
...
...
@@ -149,9 +149,9 @@ endif()
add_subdirectory
(
core
)
if
(
SERVER
)
add_subdirectory
(
paddle_inference
)
add_subdirectory
(
paddle_inference
)
endif
()
if
(
WITH_PYTHON
)
add_subdirectory
(
python
)
add_subdirectory
(
python
)
endif
()
cmake/paddlepaddle.cmake
浏览文件 @
2a557ddc
...
...
@@ -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
)
if
(
WITH_TRT
)
ADD_LIBRARY
(
nvinfer SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET nvinfer PROPERTY IMPORTED_LOCATION
${
TENSORRT_ROOT
}
/lib/libnvinfer.so
)
ADD_LIBRARY
(
nvinfer SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET nvinfer PROPERTY IMPORTED_LOCATION
${
TENSORRT_ROOT
}
/lib/libnvinfer.so
)
ADD_LIBRARY
(
nvinfer_plugin SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET nvinfer_plugin PROPERTY IMPORTED_LOCATION
${
TENSORRT_ROOT
}
/lib/libnvinfer_plugin.so
)
ADD_LIBRARY
(
nvinfer_plugin SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET nvinfer_plugin PROPERTY IMPORTED_LOCATION
${
TENSORRT_ROOT
}
/lib/libnvinfer_plugin.so
)
endif
()
if
(
WITH_LITE
)
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
)
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
)
if
(
WITH_XPU
)
if
(
WITH_XPU
)
ADD_LIBRARY
(
xpuapi SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET xpuapi PROPERTY IMPORTED_LOCATION
${
PADDLE_INSTALL_DIR
}
/third_party/install/xpu/lib/libxpuapi.so
)
ADD_LIBRARY
(
xpurt SHARED IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET xpurt PROPERTY IMPORTED_LOCATION
${
PADDLE_INSTALL_DIR
}
/third_party/install/xpu/lib/libxpurt.so
)
endif
()
endif
()
endif
()
ADD_LIBRARY
(
xxhash STATIC IMPORTED GLOBAL
)
...
...
@@ -151,13 +151,13 @@ LIST(APPEND paddle_depend_libs
xxhash
)
if
(
WITH_LITE
)
LIST
(
APPEND paddle_depend_libs paddle_api_full_bundled
)
if
(
WITH_XPU
)
LIST
(
APPEND paddle_depend_libs paddle_api_full_bundled
)
if
(
WITH_XPU
)
LIST
(
APPEND paddle_depend_libs xpuapi xpurt
)
endif
()
endif
()
endif
()
if
(
WITH_TRT
)
LIST
(
APPEND paddle_depend_libs
LIST
(
APPEND paddle_depend_libs
nvinfer nvinfer_plugin
)
endif
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录