Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
94c80d99
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看板
提交
94c80d99
编写于
2月 09, 2021
作者:
W
wangjiawei04
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add more compile dependency
上级
548c68f8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
5 addition
and
4 deletion
+5
-4
core/general-client/CMakeLists.txt
core/general-client/CMakeLists.txt
+1
-0
core/pdcodegen/CMakeLists.txt
core/pdcodegen/CMakeLists.txt
+1
-1
core/sdk-cpp/CMakeLists.txt
core/sdk-cpp/CMakeLists.txt
+1
-1
python/CMakeLists.txt
python/CMakeLists.txt
+1
-1
python/paddle_serving_server_gpu/__init__.py
python/paddle_serving_server_gpu/__init__.py
+1
-1
未找到文件。
core/general-client/CMakeLists.txt
浏览文件 @
94c80d99
if
(
CLIENT
)
if
(
CLIENT
)
add_subdirectory
(
pybind11
)
add_subdirectory
(
pybind11
)
pybind11_add_module
(
serving_client src/general_model.cpp src/pybind_general_model.cpp
)
pybind11_add_module
(
serving_client src/general_model.cpp src/pybind_general_model.cpp
)
add_dependencies
(
serving_client sdk_cpp
)
target_link_libraries
(
serving_client PRIVATE -Wl,--whole-archive utils sdk-cpp pybind python -Wl,--no-whole-archive -lpthread -lcrypto -lm -lrt -lssl -ldl -lz -Wl,-rpath,'$ORIGIN'/lib
)
target_link_libraries
(
serving_client PRIVATE -Wl,--whole-archive utils sdk-cpp pybind python -Wl,--no-whole-archive -lpthread -lcrypto -lm -lrt -lssl -ldl -lz -Wl,-rpath,'$ORIGIN'/lib
)
endif
()
endif
()
core/pdcodegen/CMakeLists.txt
浏览文件 @
94c80d99
...
@@ -7,7 +7,7 @@ PROTOBUF_GENERATE_CPP(pdcodegen_proto_srcs pdcodegen_proto_hdrs
...
@@ -7,7 +7,7 @@ PROTOBUF_GENERATE_CPP(pdcodegen_proto_srcs pdcodegen_proto_hdrs
LIST
(
APPEND pdcodegen_srcs
${
pdcodegen_proto_srcs
}
)
LIST
(
APPEND pdcodegen_srcs
${
pdcodegen_proto_srcs
}
)
add_executable
(
pdcodegen
${
pdcodegen_srcs
}
)
add_executable
(
pdcodegen
${
pdcodegen_srcs
}
)
add_dependencies
(
pdcodegen boost
)
add_dependencies
(
pdcodegen boost
protobuf
)
target_link_libraries
(
pdcodegen protobuf
${
PROTOBUF_PROTOC_LIBRARY
}
)
target_link_libraries
(
pdcodegen protobuf
${
PROTOBUF_PROTOC_LIBRARY
}
)
# install
# install
...
...
core/sdk-cpp/CMakeLists.txt
浏览文件 @
94c80d99
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
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 configure
)
add_dependencies
(
sdk-cpp pdcodegen configure
protobuf brpc leveldb
)
target_link_libraries
(
sdk-cpp brpc configure protobuf leveldb
)
target_link_libraries
(
sdk-cpp brpc configure protobuf leveldb
)
# install
# install
...
...
python/CMakeLists.txt
浏览文件 @
94c80d99
...
@@ -86,7 +86,7 @@ if (SERVER)
...
@@ -86,7 +86,7 @@ if (SERVER)
elseif
(
CUDA_VERSION EQUAL 10.2
)
elseif
(
CUDA_VERSION EQUAL 10.2
)
set
(
SUFFIX 102
)
set
(
SUFFIX 102
)
elseif
(
CUDA_VERSION EQUAL 11.0
)
elseif
(
CUDA_VERSION EQUAL 11.0
)
set
(
SUFFIX 11
0
)
set
(
SUFFIX 11
)
endif
()
endif
()
add_custom_command
(
add_custom_command
(
...
...
python/paddle_serving_server_gpu/__init__.py
浏览文件 @
94c80d99
...
@@ -442,7 +442,7 @@ class Server(object):
...
@@ -442,7 +442,7 @@ class Server(object):
for
line
in
version_file
.
readlines
():
for
line
in
version_file
.
readlines
():
if
re
.
match
(
"cuda_version"
,
line
):
if
re
.
match
(
"cuda_version"
,
line
):
cuda_version
=
line
.
split
(
"
\"
"
)[
1
]
cuda_version
=
line
.
split
(
"
\"
"
)[
1
]
if
cuda_version
==
"101"
or
cuda_version
==
"102"
or
cuda_version
==
"110"
:
if
cuda_version
==
"101"
or
cuda_version
==
"102"
:
device_version
=
"serving-gpu-"
+
cuda_version
+
"-"
device_version
=
"serving-gpu-"
+
cuda_version
+
"-"
elif
cuda_version
==
"arm"
or
cuda_version
==
"arm-xpu"
:
elif
cuda_version
==
"arm"
or
cuda_version
==
"arm-xpu"
:
device_version
=
"serving-"
+
cuda_version
+
"-"
device_version
=
"serving-"
+
cuda_version
+
"-"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录