Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
25cb654c
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看板
提交
25cb654c
编写于
8月 13, 2020
作者:
M
MRXLT
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add commit id to version info
上级
8d32b686
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
9 deletion
+32
-9
python/CMakeLists.txt
python/CMakeLists.txt
+8
-1
python/gen_version.py
python/gen_version.py
+20
-8
python/paddle_serving_app/version.py
python/paddle_serving_app/version.py
+1
-0
python/paddle_serving_client/version.py
python/paddle_serving_client/version.py
+1
-0
python/paddle_serving_server/version.py
python/paddle_serving_server/version.py
+1
-0
python/paddle_serving_server_gpu/version.py
python/paddle_serving_server_gpu/version.py
+1
-0
未找到文件。
python/CMakeLists.txt
浏览文件 @
25cb654c
...
...
@@ -47,6 +47,9 @@ if (SERVER)
endif
()
endif
()
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/gen_version.py
${
CMAKE_CURRENT_BINARY_DIR
}
/gen_version.py
)
set
(
SERVING_CLIENT_CORE
${
PADDLE_SERVING_BINARY_DIR
}
/core/general-client/*.so
)
message
(
"python env: "
${
py_env
}
)
...
...
@@ -54,6 +57,7 @@ if (APP)
add_custom_command
(
OUTPUT
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving_app/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
gen_version.py
"app"
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
DEPENDS
${
SERVING_APP_CORE
}
general_model_config_py_proto
${
PY_FILES
}
)
add_custom_target
(
paddle_python ALL DEPENDS
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
...
...
@@ -65,6 +69,7 @@ add_custom_command(
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving_client/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
SERVING_CLIENT_CORE
}
${
PADDLE_SERVING_BINARY_DIR
}
/python/paddle_serving_client/serving_client.so
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
python_tag.py
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
gen_version.py
"client"
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
DEPENDS
${
SERVING_CLIENT_CORE
}
sdk_configure_py_proto
${
PY_FILES
}
)
add_custom_target
(
paddle_python ALL DEPENDS serving_client
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
...
...
@@ -75,6 +80,7 @@ if (SERVER)
add_custom_command
(
OUTPUT
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving_server/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
gen_version.py
"server"
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
DEPENDS
${
SERVING_SERVER_CORE
}
server_config_py_proto
${
PY_FILES
}
)
add_custom_target
(
paddle_python ALL DEPENDS
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
...
...
@@ -83,7 +89,8 @@ if (SERVER)
OUTPUT
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
COMMAND cp -r
${
CMAKE_CURRENT_SOURCE_DIR
}
/paddle_serving_server_gpu/
${
PADDLE_SERVING_BINARY_DIR
}
/python/
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
paddle_serving_server_gpu/gen_cuda_version.py
${
CUDA_VERSION_MAJOR
}
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
gen_version.py
"server_gpu"
${
CUDA_VERSION_MAJOR
}
COMMAND env
${
py_env
}
${
PYTHON_EXECUTABLE
}
setup.py bdist_wheel
DEPENDS
${
SERVING_SERVER_CORE
}
server_config_py_proto
${
PY_FILES
}
)
add_custom_target
(
paddle_python ALL DEPENDS
${
PADDLE_SERVING_BINARY_DIR
}
/.timestamp
)
...
...
python/
paddle_serving_server_gpu/gen_cuda
_version.py
→
python/
gen
_version.py
浏览文件 @
25cb654c
...
...
@@ -15,13 +15,25 @@
import
sys
import
re
import
os
import
subprocess
new_str
=
""
with
open
(
"paddle_serving_server_gpu/version.py"
,
"r"
)
as
f
:
for
line
in
f
.
readlines
():
if
re
.
match
(
"cuda_version"
,
line
):
line
=
re
.
sub
(
r
"\d+"
,
sys
.
argv
[
1
],
line
)
new_str
=
new_str
+
line
with
open
(
"paddle_serving_server_gpu/version.py"
,
"w"
)
as
f
:
f
.
write
(
new_str
)
def
update_info
(
file_name
,
feature
,
info
):
new_str
=
""
with
open
(
file_name
,
"r"
)
as
f
:
for
line
in
f
.
readlines
():
if
re
.
match
(
feature
,
line
):
line
=
feature
+
" =
\"
"
+
info
.
strip
()
+
"
\"\n
"
new_str
=
new_str
+
line
with
open
(
file_name
,
"w"
)
as
f
:
f
.
write
(
new_str
)
if
len
(
sys
.
argv
)
>
2
:
update_info
(
"paddle_serving_server_gpu/version.py"
,
"cuda_version"
,
sys
.
argv
[
2
])
path
=
"paddle_serving_"
+
sys
.
argv
[
1
]
commit_id
=
subprocess
.
check_output
([
'git'
,
'rev-parse'
,
'HEAD'
])
update_info
(
path
+
"/version.py"
,
"commit_id"
,
commit_id
)
python/paddle_serving_app/version.py
浏览文件 @
25cb654c
...
...
@@ -13,3 +13,4 @@
# limitations under the License.
""" Paddle Serving App version string """
serving_app_version
=
"0.1.2"
commit_id
=
""
python/paddle_serving_client/version.py
浏览文件 @
25cb654c
...
...
@@ -15,3 +15,4 @@
serving_client_version
=
"0.3.2"
serving_server_version
=
"0.3.2"
module_proto_version
=
"0.3.2"
commit_id
=
""
python/paddle_serving_server/version.py
浏览文件 @
25cb654c
...
...
@@ -15,3 +15,4 @@
serving_client_version
=
"0.3.2"
serving_server_version
=
"0.3.2"
module_proto_version
=
"0.3.2"
commit_id
=
""
python/paddle_serving_server_gpu/version.py
浏览文件 @
25cb654c
...
...
@@ -16,3 +16,4 @@ serving_client_version = "0.3.2"
serving_server_version
=
"0.3.2"
module_proto_version
=
"0.3.2"
cuda_version
=
"9"
commit_id
=
""
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录