Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
4e1975c6
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看板
提交
4e1975c6
编写于
3月 16, 2021
作者:
Z
zhangjun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
use paddle 2.0.1, remove paddle_fluid
上级
a527ee30
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
17 deletion
+17
-17
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+4
-4
core/general-server/CMakeLists.txt
core/general-server/CMakeLists.txt
+2
-2
core/predictor/CMakeLists.txt
core/predictor/CMakeLists.txt
+2
-2
paddle_inference/paddle/CMakeLists.txt
paddle_inference/paddle/CMakeLists.txt
+1
-1
tools/cpp_examples/demo-serving/CMakeLists.txt
tools/cpp_examples/demo-serving/CMakeLists.txt
+5
-5
tools/cpp_examples/elastic-ctr/serving/CMakeLists.txt
tools/cpp_examples/elastic-ctr/serving/CMakeLists.txt
+3
-3
未找到文件。
cmake/paddlepaddle.cmake
浏览文件 @
4e1975c6
...
...
@@ -18,7 +18,7 @@ SET(PADDLE_SOURCES_DIR ${THIRD_PARTY_PATH}/Paddle)
SET
(
PADDLE_DOWNLOAD_DIR
${
PADDLE_SOURCES_DIR
}
/src/extern_paddle
)
SET
(
PADDLE_INSTALL_DIR
${
THIRD_PARTY_PATH
}
/install/Paddle/
)
SET
(
PADDLE_INCLUDE_DIR
"
${
PADDLE_INSTALL_DIR
}
/include"
CACHE PATH
"PaddlePaddle include directory."
FORCE
)
SET
(
PADDLE_LIBRARIES
"
${
PADDLE_INSTALL_DIR
}
/lib/libpaddle_
fluid
.a"
CACHE FILEPATH
"Paddle library."
FORCE
)
SET
(
PADDLE_LIBRARIES
"
${
PADDLE_INSTALL_DIR
}
/lib/libpaddle_
inference
.a"
CACHE FILEPATH
"Paddle library."
FORCE
)
message
(
"paddle install dir: "
${
PADDLE_INSTALL_DIR
}
)
...
...
@@ -31,7 +31,7 @@ message( "WITH_GPU = ${WITH_GPU}")
# Paddle Version should be one of:
# latest: latest develop build
# version number like 1.5.2
SET
(
PADDLE_VERSION
"2.0.
0
"
)
SET
(
PADDLE_VERSION
"2.0.
1
"
)
if
(
WITH_GPU
)
if
(
CUDA_VERSION EQUAL 11.0
)
set
(
CUDA_SUFFIX
"cuda11-cudnn8-avx-mkl"
)
...
...
@@ -139,8 +139,8 @@ LINK_DIRECTORIES(${PADDLE_INSTALL_DIR}/third_party/install/mkldnn/lib)
ADD_LIBRARY
(
openblas STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET openblas PROPERTY IMPORTED_LOCATION
${
PADDLE_INSTALL_DIR
}
/third_party/install/openblas/lib/libopenblas.a
)
ADD_LIBRARY
(
paddle_
fluid
STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET paddle_
fluid PROPERTY IMPORTED_LOCATION
${
PADDLE_INSTALL_DIR
}
/lib/libpaddle_fluid
.a
)
ADD_LIBRARY
(
paddle_
inference
STATIC IMPORTED GLOBAL
)
SET_PROPERTY
(
TARGET paddle_
inference PROPERTY IMPORTED_LOCATION
${
PADDLE_INSTALL_DIR
}
/lib/libpaddle_inference
.a
)
if
(
WITH_TRT
)
ADD_LIBRARY
(
nvinfer SHARED IMPORTED GLOBAL
)
...
...
core/general-server/CMakeLists.txt
浏览文件 @
4e1975c6
...
...
@@ -2,7 +2,7 @@ include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../../)
include
(
op/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
add_executable
(
serving
${
serving_srcs
}
)
add_dependencies
(
serving pdcodegen paddle_inference_engine pdserving paddle_
fluid
cube-api utils
)
add_dependencies
(
serving pdcodegen paddle_inference_engine pdserving paddle_
inference
cube-api utils
)
if
(
WITH_GPU
)
add_dependencies
(
serving paddle_inference_engine
)
...
...
@@ -20,7 +20,7 @@ include_directories(${CUDNN_ROOT}/include/)
target_link_libraries
(
serving -Wl,--whole-archive paddle_inference_engine
-Wl,--no-whole-archive
)
target_link_libraries
(
serving paddle_
fluid
${
paddle_depend_libs
}
)
target_link_libraries
(
serving paddle_
inference
${
paddle_depend_libs
}
)
target_link_libraries
(
serving brpc
)
target_link_libraries
(
serving protobuf
)
target_link_libraries
(
serving pdserving
)
...
...
core/predictor/CMakeLists.txt
浏览文件 @
4e1975c6
...
...
@@ -12,12 +12,12 @@ set_source_files_properties(
${
pdserving_srcs
}
PROPERTIES
COMPILE_FLAGS
"-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
add_dependencies
(
pdserving protobuf boost brpc leveldb pdcodegen configure extern_paddle paddle_
fluid
)
add_dependencies
(
pdserving protobuf boost brpc leveldb pdcodegen configure extern_paddle paddle_
inference
)
if
(
WITH_TRT
)
add_definitions
(
-DWITH_TRT
)
endif
()
target_link_libraries
(
pdserving
brpc protobuf boost leveldb configure -lpthread -lcrypto -lm -lrt -lssl -ldl -lz paddle_
fluid
${
paddle_depend_libs
}
)
brpc protobuf boost leveldb configure -lpthread -lcrypto -lm -lrt -lssl -ldl -lz paddle_
inference
${
paddle_depend_libs
}
)
# install
install
(
TARGETS pdserving
RUNTIME DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/bin
...
...
paddle_inference/paddle/CMakeLists.txt
浏览文件 @
4e1975c6
...
...
@@ -3,7 +3,7 @@ add_library(paddle_inference_engine ${paddle_inference_engine_srcs})
target_include_directories
(
paddle_inference_engine PUBLIC
${
CMAKE_BINARY_DIR
}
/Paddle/fluid_install_dir/
)
add_dependencies
(
paddle_inference_engine pdserving extern_paddle configure
)
target_link_libraries
(
paddle_inference_engine pdserving paddle_
fluid
-lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
target_link_libraries
(
paddle_inference_engine pdserving paddle_
inference
-lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
install
(
TARGETS paddle_inference_engine
ARCHIVE DESTINATION
${
PADDLE_SERVING_INSTALL_DIR
}
/lib
...
...
tools/cpp_examples/demo-serving/CMakeLists.txt
浏览文件 @
4e1975c6
...
...
@@ -41,24 +41,24 @@ include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../kvdb/include)
include
(
op/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
add_executable
(
serving
${
serving_srcs
}
)
add_dependencies
(
serving pdcodegen
fluid_cpu_engine pdserving paddle_fluid
add_dependencies
(
serving pdcodegen
paddle_inference_engine pdserving paddle_inference
opencv_imgcodecs cube-api
)
if
(
WITH_GPU
)
add_dependencies
(
serving
fluid_gpu
_engine
)
add_dependencies
(
serving
paddle_inference
_engine
)
endif
()
target_include_directories
(
serving PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
/../../core/predictor
)
if
(
WITH_GPU
)
target_link_libraries
(
serving -Wl,--whole-archive
fluid_gpu
_engine
target_link_libraries
(
serving -Wl,--whole-archive
paddle_inference
_engine
-Wl,--no-whole-archive
)
endif
()
target_link_libraries
(
serving -Wl,--whole-archive
fluid_cpu
_engine
target_link_libraries
(
serving -Wl,--whole-archive
paddle_inference
_engine
-Wl,--no-whole-archive
)
target_link_libraries
(
serving paddle_
fluid
${
paddle_depend_libs
}
)
target_link_libraries
(
serving paddle_
inference
${
paddle_depend_libs
}
)
target_link_libraries
(
serving opencv_imgcodecs
${
opencv_depend_libs
}
)
...
...
tools/cpp_examples/elastic-ctr/serving/CMakeLists.txt
浏览文件 @
4e1975c6
...
...
@@ -18,16 +18,16 @@ include_directories(SYSTEM ${CMAKE_CURRENT_LIST_DIR}/../kvdb/include)
include
(
op/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
add_executable
(
elastic_serving
${
serving_srcs
}
)
add_dependencies
(
elastic_serving pdcodegen
fluid_cpu_engine pdserving paddle_fluid
cube-api
)
add_dependencies
(
elastic_serving pdcodegen
paddle_inference_engine pdserving paddle_inference
cube-api
)
target_include_directories
(
elastic_serving PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
/../../predictor
)
target_link_libraries
(
elastic_serving -Wl,--whole-archive
fluid_cpu
_engine
target_link_libraries
(
elastic_serving -Wl,--whole-archive
paddle_inference
_engine
-Wl,--no-whole-archive
)
target_link_libraries
(
elastic_serving paddle_
fluid
${
paddle_depend_libs
}
)
target_link_libraries
(
elastic_serving paddle_
inference
${
paddle_depend_libs
}
)
target_link_libraries
(
elastic_serving pdserving
)
target_link_libraries
(
elastic_serving cube-api
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录