Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
27993a90
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看板
提交
27993a90
编写于
2月 02, 2020
作者:
G
guru4elephant
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine cmake
上级
87967994
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
7 deletion
+15
-7
CMakeLists.txt
CMakeLists.txt
+1
-2
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+2
-2
core/configure/CMakeLists.txt
core/configure/CMakeLists.txt
+11
-0
python/CMakeLists.txt
python/CMakeLists.txt
+1
-3
未找到文件。
CMakeLists.txt
浏览文件 @
27993a90
...
@@ -128,14 +128,13 @@ if (NOT CLIENT_ONLY)
...
@@ -128,14 +128,13 @@ if (NOT CLIENT_ONLY)
endif
()
endif
()
add_subdirectory
(
core
)
add_subdirectory
(
core
)
if
(
NOT CLIENT_ONLY
)
if
(
NOT CLIENT_ONLY
)
add_subdirectory
(
paddle_inference
)
add_subdirectory
(
paddle_inference
)
endif
()
endif
()
if
(
CLIENT_ONLY
)
add_subdirectory
(
python
)
add_subdirectory
(
python
)
set
(
PYTHON_INCLUDE_DIR
${
PYTHON_INCLUDE
}
)
set
(
PYTHON_INCLUDE_DIR
${
PYTHON_INCLUDE
}
)
set
(
PYTHON_LIBRARIES
${
PYTHON_LIB
}
)
set
(
PYTHON_LIBRARIES
${
PYTHON_LIB
}
)
endif
()
add_subdirectory
(
examples
)
add_subdirectory
(
examples
)
cmake/paddlepaddle.cmake
浏览文件 @
27993a90
...
@@ -62,8 +62,8 @@ ExternalProject_Add(
...
@@ -62,8 +62,8 @@ ExternalProject_Add(
INSTALL_COMMAND
INSTALL_COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/paddle/include
${
PADDLE_INSTALL_DIR
}
/include &&
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/paddle/include
${
PADDLE_INSTALL_DIR
}
/include &&
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/paddle/lib
${
PADDLE_INSTALL_DIR
}
/lib &&
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/paddle/lib
${
PADDLE_INSTALL_DIR
}
/lib &&
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/third_party
${
PADDLE_INSTALL_DIR
}
/third_party
&&
${
CMAKE_COMMAND
}
-E copy_directory
${
PADDLE_DOWNLOAD_DIR
}
/third_party
${
PADDLE_INSTALL_DIR
}
/third_party
${
CMAKE_COMMAND
}
-E copy
${
PADDLE_INSTALL_DIR
}
/third_party/install/mkldnn/lib/libmkldnn.so.0
${
PADDLE_INSTALL_DIR
}
/third_party/install/mkldnn/lib/libmkldnn.so
#
${CMAKE_COMMAND} -E copy ${PADDLE_INSTALL_DIR}/third_party/install/mkldnn/lib/libmkldnn.so.0 ${PADDLE_INSTALL_DIR}/third_party/install/mkldnn/lib/libmkldnn.so
)
)
INCLUDE_DIRECTORIES
(
${
PADDLE_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
PADDLE_INCLUDE_DIR
}
)
...
...
core/configure/CMakeLists.txt
浏览文件 @
27993a90
...
@@ -37,3 +37,14 @@ add_custom_command(TARGET sdk_configure_py_proto POST_BUILD
...
@@ -37,3 +37,14 @@ add_custom_command(TARGET sdk_configure_py_proto POST_BUILD
COMMAND cp *.py
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving/proto
COMMAND cp *.py
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving/proto
COMMENT
"Copy generated python proto into directory paddle_serving/proto."
COMMENT
"Copy generated python proto into directory paddle_serving/proto."
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
)
if
(
NOT CLIENT_ONLY
)
py_proto_compile
(
server_config_py_proto SRCS proto/server_configure.proto
)
add_custom_target
(
server_config_py_proto_init ALL COMMAND
${
CMAKE_COMMAND
}
-E touch __init__.py
)
add_dependencies
(
server_config_py_proto server_config_py_proto_init
)
add_custom_command
(
TARGET server_config_py_proto POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving/proto
COMMAND cp *.py
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving/proto
COMMENT
"Copy generated python proto into directory paddle_serving/proto."
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINRARY_DIR
}
)
endif
()
python/CMakeLists.txt
浏览文件 @
27993a90
...
@@ -23,7 +23,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.server.in
...
@@ -23,7 +23,6 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/setup.py.server.in
endif
()
endif
()
set
(
SERVING_CLIENT_CORE
${
PADDLE_SERVING_BINARY_DIR
}
/core/general-client/serving_client.so
)
set
(
SERVING_CLIENT_CORE
${
PADDLE_SERVING_BINARY_DIR
}
/core/general-client/serving_client.so
)
set
(
SERVING_SERVER_CORE
${
PADDLE_SERVING_BINARY_DIR
}
/core/predictor/serving_server.so
)
message
(
"python env: "
${
py_env
}
)
message
(
"python env: "
${
py_env
}
)
...
@@ -41,10 +40,9 @@ if (NOT CLIENT_ONLY)
...
@@ -41,10 +40,9 @@ if (NOT CLIENT_ONLY)
add_custom_command
(
add_custom_command
(
OUTPUT
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
OUTPUT
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
PADDLE_SERVING_BINARY_DIR
}
/core/predictor/serving_server.so
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving/serving_server/
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
DEPENDS
${
SERVING_SERVER_CORE
}
server_config_py_proto
${
PY_FILES
}
)
DEPENDS
${
SERVING_SERVER_CORE
}
server_config_py_proto
${
PY_FILES
}
)
add_custom_target
(
paddle_python ALL DEPENDS
serving_server
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
add_custom_target
(
paddle_python ALL DEPENDS
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
endif
()
endif
()
set
(
SERVING_CLIENT_PYTHON_PACKAGE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
)
set
(
SERVING_CLIENT_PYTHON_PACKAGE_DIR
${
CMAKE_CURRENT_BINARY_DIR
}
/dist/
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录