Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
66ae4ef3
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看板
提交
66ae4ef3
编写于
2月 15, 2019
作者:
W
wangguibao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
compile pdserving_exe
上级
058b3919
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
35 addition
and
8 deletion
+35
-8
bsl/CMakeLists.txt
bsl/CMakeLists.txt
+9
-3
configure/constraint/ConstraintFunction.h
configure/constraint/ConstraintFunction.h
+2
-2
predictor/CMakeLists.txt
predictor/CMakeLists.txt
+20
-1
predictor/common/constant.cpp
predictor/common/constant.cpp
+1
-0
predictor/common/constant.h
predictor/common/constant.h
+1
-1
spreg/CMakeLists.txt
spreg/CMakeLists.txt
+2
-1
未找到文件。
bsl/CMakeLists.txt
浏览文件 @
66ae4ef3
add_custom_
target
(
copy_bsl_headers
)
add_custom_command
(
TARGET copy_bsl_headers
add_custom_
command
(
OUTPUT
${
CMAKE_CURRENT_BINARY_DIR
}
/include/
COMMAND mkdir -p
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/ && cp
${
CMAKE_CURRENT_LIST_DIR
}
/*.h
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/
COMMAND mkdir -p
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/utils && cp
${
CMAKE_CURRENT_LIST_DIR
}
/utils/*.h
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/utils
COMMAND mkdir -p
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/alloc && cp
${
CMAKE_CURRENT_LIST_DIR
}
/alloc/*.h
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/alloc
...
...
@@ -13,6 +13,9 @@ add_custom_command(TARGET copy_bsl_headers
COMMAND cp
${
CMAKE_CURRENT_LIST_DIR
}
/check_cast/*.h
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl
COMMAND cp
${
CMAKE_CURRENT_LIST_DIR
}
/ResourcePool/*.h
${
CMAKE_CURRENT_BINARY_DIR
}
/include/bsl/
)
add_custom_target
(
copy_bsl_headers
DEPENDS
${
CMAKE_CURRENT_BINARY_DIR
}
/include/
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
/include
)
add_subdirectory
(
utils
)
add_subdirectory
(
alloc
)
...
...
@@ -26,6 +29,9 @@ add_subdirectory(ResourcePool)
add_subdirectory
(
var/interface
)
add_subdirectory
(
var/utils
)
add_subdirectory
(
var/implement
)
add_
custom_target
(
bsl
)
add_
library
(
bsl
)
add_dependencies
(
bsl utils alloc archive containers pool buffer exception
check_cast ResourcePool interface var_utils implement
)
target_link_libraries
(
bsl
utils archive pool buffer exception check_cast
ResourcePool var_utils implement
)
configure/constraint/ConstraintFunction.h
浏览文件 @
66ae4ef3
...
...
@@ -55,7 +55,7 @@ namespace comcfg{
virtual
int
check
(
const
confIDL
::
cons_func_t
&
,
const
confIDL
::
var_t
&
,
ConfigGroup
*
,
ConfigUnit
*
);
void
setLevel
(
int
lv
);
int
getLevel
();
virtual
~
ConstraintFunction
()
;
virtual
~
ConstraintFunction
()
{}
};
typedef
bsl
::
hashmap
<
str_t
,
ConstraintFunction
*>
CFMAP_T
;
...
...
@@ -238,7 +238,7 @@ namespace comcfg{
_cf
=
cf
;
}
WrapFunction
(){}
virtual
~
WrapFunction
()
;
virtual
~
WrapFunction
()
{}
protected:
CF_T
_cf
;
};
...
...
predictor/CMakeLists.txt
浏览文件 @
66ae4ef3
...
...
@@ -16,7 +16,8 @@ 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 pdcodegen
)
add_dependencies
(
pdserving protobuf boost brpc leveldb bsl pdcodegen configure
ullib spreg mempool
)
target_include_directories
(
pdserving PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/
...
...
@@ -28,6 +29,24 @@ target_include_directories(pdserving PUBLIC
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
target_link_libraries
(
pdserving -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
add_executable
(
pdserving_exe
${
pdserving_srcs
}
)
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_exe protobuf boost brpc leveldb bsl pdcodegen
configure ullib spreg mempool
)
target_include_directories
(
pdserving_exe PUBLIC
${
CMAKE_CURRENT_LIST_DIR
}
/
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
CMAKE_CURRENT_LIST_DIR
}
/../configure
${
CMAKE_CURRENT_LIST_DIR
}
/../mempool
${
CMAKE_CURRENT_LIST_DIR
}
/../spreg
${
CMAKE_CURRENT_LIST_DIR
}
/../ullib/include
${
CMAKE_CURRENT_BINARY_DIR
}
/../bsl/include
)
target_link_libraries
(
pdserving_exe brpc protobuf leveldb bsl configure ullib
spreg mempool -lpthread -lcrypto -lm -lrt -lssl -ldl -lz
)
add_library
(
pdclient
${
pdclient_srcs
}
)
set_source_files_properties
(
...
...
predictor/common/constant.cpp
浏览文件 @
66ae4ef3
...
...
@@ -28,6 +28,7 @@ DEFINE_int32(reload_interval_s, 10, "");
DEFINE_bool
(
enable_model_toolkit
,
false
,
"enable model toolkit"
);
DEFINE_string
(
enable_protocol_list
,
"baidu_std nshead"
,
"set protocol list"
);
const
char
*
START_OP_NAME
=
"startup_op"
;
}
// predictor
}
// paddle_serving
}
// baidu
...
...
predictor/common/constant.h
浏览文件 @
66ae4ef3
...
...
@@ -30,7 +30,7 @@ DECLARE_bool(enable_model_toolkit);
DECLARE_string
(
enable_protocol_list
);
// STATIC Variables
const
char
*
START_OP_NAME
=
"startup_op"
;
extern
const
char
*
START_OP_NAME
;
// ERRORCODE
enum
{
...
...
spreg/CMakeLists.txt
浏览文件 @
66ae4ef3
FILE
(
GLOB spreg_srcs
${
CMAKE_CURRENT_LIST_DIR
}
/*.cpp
)
add_library
(
spreg
${
spreg_srcs
}
)
add_dependencies
(
spreg pcre
)
target_link_libraries
(
spreg pcre
)
include_directories
(
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
message
(
STATUS
${
CMAKE_CURRENT_LIST_DIR
}
/include
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录