Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
5f79488b
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看板
未验证
提交
5f79488b
编写于
10月 26, 2021
作者:
J
Jiawei Wang
提交者:
GitHub
10月 26, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' into dev
上级
73361b03
cea3ae87
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
17 addition
and
8 deletion
+17
-8
cmake/external/boost.cmake
cmake/external/boost.cmake
+1
-1
cmake/paddlepaddle.cmake
cmake/paddlepaddle.cmake
+8
-3
python/CMakeLists.txt
python/CMakeLists.txt
+7
-3
python/paddle_serving_server/server.py
python/paddle_serving_server/server.py
+1
-1
未找到文件。
cmake/external/boost.cmake
浏览文件 @
5f79488b
...
@@ -25,7 +25,7 @@ set(BOOST_PROJECT "extern_boost")
...
@@ -25,7 +25,7 @@ set(BOOST_PROJECT "extern_boost")
set
(
BOOST_VER
"1.74.0"
)
set
(
BOOST_VER
"1.74.0"
)
set
(
BOOST_TAR
"boost_1_74_0"
CACHE STRING
""
FORCE
)
set
(
BOOST_TAR
"boost_1_74_0"
CACHE STRING
""
FORCE
)
set
(
BOOST_URL
"http://paddlepaddledeps.
cdn
.bcebos.com/
${
BOOST_TAR
}
.tar.gz"
CACHE STRING
""
FORCE
)
set
(
BOOST_URL
"http://paddlepaddledeps.
bj
.bcebos.com/
${
BOOST_TAR
}
.tar.gz"
CACHE STRING
""
FORCE
)
MESSAGE
(
STATUS
"BOOST_TAR:
${
BOOST_TAR
}
, BOOST_URL:
${
BOOST_URL
}
"
)
MESSAGE
(
STATUS
"BOOST_TAR:
${
BOOST_TAR
}
, BOOST_URL:
${
BOOST_URL
}
"
)
...
...
cmake/paddlepaddle.cmake
浏览文件 @
5f79488b
...
@@ -52,14 +52,19 @@ if (WITH_GPU)
...
@@ -52,14 +52,19 @@ if (WITH_GPU)
else
()
else
()
set
(
WITH_TRT OFF
)
set
(
WITH_TRT OFF
)
endif
()
endif
()
if
(
WITH_GPU
)
if
(
WITH_GPU
)
SET
(
PADDLE_LIB_VERSION
"
${
PADDLE_VERSION
}
/cxx_c/Linux/GPU/
${
CUDA_SUFFIX
}
"
)
SET
(
PADDLE_LIB_VERSION
"
${
PADDLE_VERSION
}
/cxx_c/Linux/GPU/
${
CUDA_SUFFIX
}
"
)
elseif
(
WITH_LITE
)
elseif
(
WITH_LITE
)
message
(
"cpu arch:
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
if
(
WITH_XPU
)
if
(
WITH_XPU
)
SET
(
PADDLE_LIB_VERSION
"arm64_gcc7.3_openblas"
)
if
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"x86-64"
)
SET
(
PADDLE_LIB_VERSION
"x86-64_gcc8.2_avx_mkl"
)
elseif
(
CMAKE_SYSTEM_PROCESSOR STREQUAL
"aarch64"
)
SET
(
PADDLE_LIB_VERSION
"arm64_gcc7.3_openblas"
)
endif
()
else
()
else
()
SET
(
PADDLE_LIB_VERSION
"
${
PADDLE_VERSION
}
-
${
CMAKE_SYSTEM_PROCESSOR
}
"
)
MESSAGE
(
"paddle lite lib is unknown."
)
SET
(
PADDLE_LIB_VERSION
"paddle-lite-unknown"
)
endif
()
endif
()
else
()
else
()
if
(
WITH_AVX
)
if
(
WITH_AVX
)
...
...
python/CMakeLists.txt
浏览文件 @
5f79488b
...
@@ -72,9 +72,13 @@ if (SERVER)
...
@@ -72,9 +72,13 @@ if (SERVER)
if
(
CUDA_VERSION EQUAL 10.1
)
if
(
CUDA_VERSION EQUAL 10.1
)
set
(
VERSION_SUFFIX 101
)
set
(
VERSION_SUFFIX 101
)
elseif
(
CUDA_VERSION EQUAL 10.2
)
elseif
(
CUDA_VERSION EQUAL 10.2
)
set
(
VERSION_SUFFIX 102
)
if
(
CUDNN_MAJOR_VERSION EQUAL 7
)
elseif
(
CUDA_VERSION EQUAL 11.0
)
set
(
VERSION_SUFFIX 1027
)
set
(
VERSION_SUFFIX 11
)
elseif
(
CUDNN_MAJOR_VERSION EQUAL 8
)
set
(
VERSION_SUFFIX 1028
)
endif
()
elseif
(
CUDA_VERSION EQUAL 11.2
)
set
(
VERSION_SUFFIX 112
)
endif
()
endif
()
endif
()
endif
()
...
...
python/paddle_serving_server/server.py
浏览文件 @
5f79488b
...
@@ -428,7 +428,7 @@ class Server(object):
...
@@ -428,7 +428,7 @@ class Server(object):
if
device_type
==
"0"
:
if
device_type
==
"0"
:
device_version
=
self
.
get_device_version
()
device_version
=
self
.
get_device_version
()
elif
device_type
==
"1"
:
elif
device_type
==
"1"
:
if
version_suffix
==
"101"
or
version_suffix
==
"102"
:
if
version_suffix
==
"101"
or
version_suffix
==
"102
7"
or
version_suffix
==
"1028"
or
version_suffix
==
"112
"
:
device_version
=
"gpu-"
+
version_suffix
device_version
=
"gpu-"
+
version_suffix
else
:
else
:
device_version
=
"gpu-cuda"
+
version_suffix
device_version
=
"gpu-cuda"
+
version_suffix
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录