Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Serving
提交
5fd1a241
S
Serving
项目概览
PaddlePaddle
/
Serving
大约 1 年 前同步成功
通知
185
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5fd1a241
编写于
3月 27, 2020
作者:
D
Dong Daxiang
提交者:
GitHub
3月 27, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #349 from barrierye/add_app_compile_ci
Add app compile ci
上级
2417c08e
d0ca8473
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
1 deletion
+26
-1
doc/COMPILE.md
doc/COMPILE.md
+1
-1
tools/serving_build.sh
tools/serving_build.sh
+25
-0
未找到文件。
doc/COMPILE.md
浏览文件 @
5fd1a241
...
...
@@ -61,7 +61,7 @@ make -j10
```
bash
mkdir
build
&&
cd
build
cmake
-DPYTHON_INCLUDE_DIR
=
$PYTHONROOT
/include/python2.7/
-DPYTHON_LIBRARIES
=
$PYTHONROOT
/lib/libpython2.7.so
-DPYTHON_EXECUTABLE
=
$PYTHONROOT
/bin/python
-D
CMAKE_INSTALL_PREFIX
=
./output
-D
APP
=
ON ..
cmake
-DPYTHON_INCLUDE_DIR
=
$PYTHONROOT
/include/python2.7/
-DPYTHON_LIBRARIES
=
$PYTHONROOT
/lib/libpython2.7.so
-DPYTHON_EXECUTABLE
=
$PYTHONROOT
/bin/python
-DAPP
=
ON ..
make
```
...
...
tools/serving_build.sh
浏览文件 @
5fd1a241
...
...
@@ -48,6 +48,30 @@ function rerun() {
exit
1
}
function
build_app
()
{
local
TYPE
=
$1
local
DIRNAME
=
build-app-
$TYPE
mkdir
$DIRNAME
# pwd: /Serving
cd
$DIRNAME
# pwd: /Serving/build-app-$TYPE
pip
install
numpy sentencepiece
case
$TYPE
in
CPU|GPU
)
cmake
-DPYTHON_INCLUDE_DIR
=
$PYTHONROOT
/include/python2.7/
\
-DPYTHON_LIBRARIES
=
$PYTHONROOT
/lib/libpython2.7.so
\
-DPYTHON_EXECUTABLE
=
$PYTHONROOT
/bin/python
\
-DAPP
=
ON ..
rerun
"make -j2 >/dev/null"
3
# due to some network reasons, compilation may fail
pip
install
-U
python/dist/paddle_serving_app
*
>
/dev/null
;;
*
)
echo
"error type"
exit
1
;;
esac
echo
"build app
$TYPE
part finished as expected."
cd
..
# pwd: /Serving
}
function
build_client
()
{
local
TYPE
=
$1
local
DIRNAME
=
build-client-
$TYPE
...
...
@@ -230,6 +254,7 @@ function main() {
init
# pwd: /Serving
build_client
$TYPE
# pwd: /Serving
build_server
$TYPE
# pwd: /Serving
build_app
$TYPE
# pwd: /Serving
python_run_test
$TYPE
# pwd: /Serving
echo
"serving
$TYPE
part finished as expected."
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录