Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
8ce2e7b1
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看板
提交
8ce2e7b1
编写于
2月 26, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace public/configure with protobufs
Change-Id: Idd4b74f44b6bfe014b232dbbd23648bef9d6c262
上级
350e8f23
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
28 addition
and
29 deletion
+28
-29
CMakeLists.txt
CMakeLists.txt
+1
-1
configure/CMakeLists.txt
configure/CMakeLists.txt
+4
-4
configure/include/configure_parser.h
configure/include/configure_parser.h
+0
-0
configure/proto/inferencer_configure.proto
configure/proto/inferencer_configure.proto
+0
-0
configure/proto/sdk_configure.proto
configure/proto/sdk_configure.proto
+0
-0
configure/proto/server_configure.proto
configure/proto/server_configure.proto
+0
-0
configure/src/configure_parser.cpp
configure/src/configure_parser.cpp
+0
-0
configure/tests/test_configure.cpp
configure/tests/test_configure.cpp
+0
-0
inferencer-fluid-cpu/CMakeLists.txt
inferencer-fluid-cpu/CMakeLists.txt
+1
-1
predictor/CMakeLists.txt
predictor/CMakeLists.txt
+11
-12
predictor/common/inner_common.h
predictor/common/inner_common.h
+1
-1
sdk-cpp/CMakeLists.txt
sdk-cpp/CMakeLists.txt
+10
-10
未找到文件。
CMakeLists.txt
浏览文件 @
8ce2e7b1
...
@@ -98,7 +98,7 @@ endif()
...
@@ -98,7 +98,7 @@ endif()
add_subdirectory
(
bsl
)
add_subdirectory
(
bsl
)
add_subdirectory
(
ullib
)
add_subdirectory
(
ullib
)
add_subdirectory
(
proto_
configure
)
add_subdirectory
(
configure
)
add_subdirectory
(
mempool
)
add_subdirectory
(
mempool
)
add_subdirectory
(
predictor
)
add_subdirectory
(
predictor
)
add_subdirectory
(
inferencer-fluid-cpu
)
add_subdirectory
(
inferencer-fluid-cpu
)
...
...
proto_
configure/CMakeLists.txt
→
configure/CMakeLists.txt
浏览文件 @
8ce2e7b1
...
@@ -5,11 +5,11 @@ LIST(APPEND protofiles
...
@@ -5,11 +5,11 @@ LIST(APPEND protofiles
)
)
PROTOBUF_GENERATE_CPP
(
configure_proto_srcs configure_proto_hdrs
${
protofiles
}
)
PROTOBUF_GENERATE_CPP
(
configure_proto_srcs configure_proto_hdrs
${
protofiles
}
)
list
(
APPEND
proto_
configure_srcs
${
configure_proto_srcs
}
)
list
(
APPEND configure_srcs
${
configure_proto_srcs
}
)
list
(
APPEND
proto_
configure_srcs
${
CMAKE_CURRENT_LIST_DIR
}
/src/configure_parser.cpp
)
list
(
APPEND configure_srcs
${
CMAKE_CURRENT_LIST_DIR
}
/src/configure_parser.cpp
)
add_library
(
proto_configure
${
proto_
configure_srcs
}
)
add_library
(
configure
${
configure_srcs
}
)
add_executable
(
test_configure
add_executable
(
test_configure
${
CMAKE_CURRENT_LIST_DIR
}
/tests/test_configure.cpp
)
${
CMAKE_CURRENT_LIST_DIR
}
/tests/test_configure.cpp
)
...
@@ -17,4 +17,4 @@ target_include_directories(test_configure PUBLIC
...
@@ -17,4 +17,4 @@ target_include_directories(test_configure PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
)
target_link_libraries
(
test_configure
proto_
configure protobuf
)
target_link_libraries
(
test_configure configure protobuf
)
proto_
configure/include/configure_parser.h
→
configure/include/configure_parser.h
浏览文件 @
8ce2e7b1
文件已移动
proto_
configure/proto/inferencer_configure.proto
→
configure/proto/inferencer_configure.proto
浏览文件 @
8ce2e7b1
文件已移动
proto_
configure/proto/sdk_configure.proto
→
configure/proto/sdk_configure.proto
浏览文件 @
8ce2e7b1
文件已移动
proto_
configure/proto/server_configure.proto
→
configure/proto/server_configure.proto
浏览文件 @
8ce2e7b1
文件已移动
proto_
configure/src/configure_parser.cpp
→
configure/src/configure_parser.cpp
浏览文件 @
8ce2e7b1
文件已移动
proto_
configure/tests/test_configure.cpp
→
configure/tests/test_configure.cpp
浏览文件 @
8ce2e7b1
文件已移动
inferencer-fluid-cpu/CMakeLists.txt
浏览文件 @
8ce2e7b1
...
@@ -4,6 +4,6 @@ target_include_directories(fluid_cpu_engine PUBLIC
...
@@ -4,6 +4,6 @@ target_include_directories(fluid_cpu_engine PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
PADDLE_INCLUDE_DIR
}
${
PADDLE_INCLUDE_DIR
}
${
CMAKE_BINARY_DIR
}
/Paddle/fluid_install_dir/
)
${
CMAKE_BINARY_DIR
}
/Paddle/fluid_install_dir/
)
add_dependencies
(
fluid_cpu_engine pdserving paddle_fluid
proto_
configure
)
add_dependencies
(
fluid_cpu_engine pdserving paddle_fluid configure
)
target_link_libraries
(
fluid_cpu_engine pdserving -liomp5 -lmklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
target_link_libraries
(
fluid_cpu_engine pdserving -liomp5 -lmklml_intel -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
predictor/CMakeLists.txt
浏览文件 @
8ce2e7b1
...
@@ -17,18 +17,17 @@ set_source_files_properties(
...
@@ -17,18 +17,17 @@ set_source_files_properties(
PROPERTIES
PROPERTIES
COMPILE_FLAGS
"-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
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
add_dependencies
(
pdserving protobuf boost brpc leveldb pdcodegen
proto_configure
configure ullib mempool
)
ullib mempool
)
target_include_directories
(
pdserving PUBLIC
target_include_directories
(
pdserving PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
target_link_libraries
(
pdserving
target_link_libraries
(
pdserving
brpc protobuf boost leveldb
proto_
configure ullib
brpc protobuf boost leveldb configure ullib
mempool -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
mempool -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
add_executable
(
pdserving_exe
${
pdserving_srcs
}
)
add_executable
(
pdserving_exe
${
pdserving_srcs
}
)
...
@@ -37,18 +36,18 @@ set_source_files_properties(
...
@@ -37,18 +36,18 @@ set_source_files_properties(
PROPERTIES
PROPERTIES
COMPILE_FLAGS
"-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
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_exe
add_dependencies
(
pdserving_exe
protobuf boost brpc leveldb pdcodegen
proto_
configure bsl
protobuf boost brpc leveldb pdcodegen configure bsl
ullib mempool
)
ullib mempool
)
target_include_directories
(
pdserving_exe PUBLIC
target_include_directories
(
pdserving_exe PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
target_link_libraries
(
pdserving_exe brpc protobuf leveldb bsl
target_link_libraries
(
pdserving_exe brpc protobuf leveldb bsl
proto_
configure ullib mempool -lpthread -lcrypto -lm -lrt -lssl
configure ullib mempool -lpthread -lcrypto -lm -lrt -lssl
-ldl -lz
)
-ldl -lz
)
add_library
(
pdclient
${
pdclient_srcs
}
)
add_library
(
pdclient
${
pdclient_srcs
}
)
...
@@ -56,13 +55,13 @@ set_source_files_properties(
...
@@ -56,13 +55,13 @@ set_source_files_properties(
${
pdclient_srcs
}
${
pdclient_srcs
}
PROPERTIES
PROPERTIES
COMPILE_FLAGS
"-Wno-strict-aliasing -Wno-unused-variable -Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
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
(
pdclient protobuf boost brpc pdcodegen
proto_
configure
)
add_dependencies
(
pdclient protobuf boost brpc pdcodegen configure
)
target_include_directories
(
pdclient PUBLIC
target_include_directories
(
pdclient PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
)
target_link_libraries
(
pdclient protobuf boost brpc -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
target_link_libraries
(
pdclient protobuf boost brpc -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
...
...
predictor/common/inner_common.h
浏览文件 @
8ce2e7b1
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#include <bthread/bthread.h>
#include <bthread/bthread.h>
#include <error.h>
#include <error.h>
#include "configure.pb.h"
#include "
server_
configure.pb.h"
#include "configure_parser.h"
#include "configure_parser.h"
#include "common/utils.h"
#include "common/utils.h"
...
...
sdk-cpp/CMakeLists.txt
浏览文件 @
8ce2e7b1
include
(
src/CMakeLists.txt
)
include
(
src/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
include
(
proto/CMakeLists.txt
)
add_library
(
sdk-cpp
${
sdk_cpp_srcs
}
)
add_library
(
sdk-cpp
${
sdk_cpp_srcs
}
)
add_dependencies
(
sdk-cpp pdcodegen
proto_
configure
)
add_dependencies
(
sdk-cpp pdcodegen configure
)
target_include_directories
(
sdk-cpp PUBLIC
target_include_directories
(
sdk-cpp PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMKAE_CURRENT_BINARY_DIR
}
/
${
CMKAE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
)
target_link_libraries
(
sdk-cpp brpc
proto_
configure protobuf leveldb
)
target_link_libraries
(
sdk-cpp brpc configure protobuf leveldb
)
add_executable
(
ximage
${
CMAKE_CURRENT_LIST_DIR
}
/demo/ximage.cpp
)
add_executable
(
ximage
${
CMAKE_CURRENT_LIST_DIR
}
/demo/ximage.cpp
)
target_include_directories
(
ximage PUBLIC
target_include_directories
(
ximage PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
target_link_libraries
(
ximage sdk-cpp -lpthread -lcrypto -lm -lrt -lssl -ldl
target_link_libraries
(
ximage sdk-cpp -lpthread -lcrypto -lm -lrt -lssl -ldl
...
@@ -27,8 +27,8 @@ add_executable(mapcnn_dense ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_dense.cpp)
...
@@ -27,8 +27,8 @@ add_executable(mapcnn_dense ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_dense.cpp)
target_include_directories
(
mapcnn_dense PUBLIC
target_include_directories
(
mapcnn_dense PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
target_link_libraries
(
mapcnn_dense sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
target_link_libraries
(
mapcnn_dense sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
...
@@ -38,8 +38,8 @@ add_executable(mapcnn_sparse ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_sparse.cpp)
...
@@ -38,8 +38,8 @@ add_executable(mapcnn_sparse ${CMAKE_CURRENT_LIST_DIR}/demo/mapcnn_sparse.cpp)
target_include_directories
(
mapcnn_sparse PUBLIC
target_include_directories
(
mapcnn_sparse PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_LIST_DIR
}
/include
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/../
proto_
configure
${
CMAKE_CURRENT_BINARY_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../
proto_
configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../configure/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
target_link_libraries
(
mapcnn_sparse sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
target_link_libraries
(
mapcnn_sparse sdk-cpp -lpthread -lcrypto -lm -lrt -lssl
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录