Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
00279fdc
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
00279fdc
编写于
4月 10, 2019
作者:
W
wopeizl
提交者:
GitHub
4月 10, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the build script for new ci test=develop (#16732)
上级
fdb719a1
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
30 addition
and
11 deletion
+30
-11
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+30
-11
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
00279fdc
...
@@ -291,8 +291,12 @@ function build() {
...
@@ -291,8 +291,12 @@ function build() {
Building in /paddle/build ...
Building in /paddle/build ...
============================================
============================================
EOF
EOF
parallel_number
=
`
nproc
`
if
[[
"
$1
"
!=
""
]]
;
then
parallel_number
=
$1
fi
make clean
make clean
make
-j
`
nproc
`
make
-j
${
parallel_number
}
make
install
-j
`
nproc
`
make
install
-j
`
nproc
`
}
}
...
@@ -737,9 +741,13 @@ function gen_fluid_lib() {
...
@@ -737,9 +741,13 @@ function gen_fluid_lib() {
Generating fluid library for train and inference ...
Generating fluid library for train and inference ...
========================================
========================================
EOF
EOF
parallel_number
=
`
nproc
`
if
[[
"
$1
"
!=
""
]]
;
then
parallel_number
=
$1
fi
cmake ..
-DWITH_DISTRIBUTE
=
OFF
-DON_INFER
=
ON
cmake ..
-DWITH_DISTRIBUTE
=
OFF
-DON_INFER
=
ON
make
-j
`
nproc
`
fluid_lib_dist
make
-j
${
parallel_number
}
fluid_lib_dist
make
-j
`
nproc
`
inference_lib_dist
make
-j
${
parallel_number
}
inference_lib_dist
}
}
function
tar_fluid_lib
()
{
function
tar_fluid_lib
()
{
...
@@ -770,11 +778,22 @@ EOF
...
@@ -770,11 +778,22 @@ EOF
function
main
()
{
function
main
()
{
local
CMD
=
$1
local
CMD
=
$1
local
parallel_number
=
$2
init
init
case
$CMD
in
case
$CMD
in
build_only
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
${
parallel_number
}
;;
build_and_check
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
${
parallel_number
}
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
assert_api_spec_approvals
;;
build
)
build
)
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
gen_dockerfile
${
PYTHON_ABI
:-
""
}
gen_dockerfile
${
PYTHON_ABI
:-
""
}
;;
;;
test
)
test
)
...
@@ -797,7 +816,7 @@ function main() {
...
@@ -797,7 +816,7 @@ function main() {
;;
;;
fluid_inference_lib
)
fluid_inference_lib
)
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
tar_fluid_lib
tar_fluid_lib
test_fluid_lib
test_fluid_lib
;;
;;
...
@@ -806,16 +825,16 @@ function main() {
...
@@ -806,16 +825,16 @@ function main() {
;;
;;
cicheck
)
cicheck
)
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
run_test
run_test
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
test_fluid_lib
test_fluid_lib
assert_api_spec_approvals
assert_api_spec_approvals
;;
;;
cicheck_brpc
)
cicheck_brpc
)
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
run_brpc_test
run_brpc_test
;;
;;
assert_api
)
assert_api
)
...
@@ -823,7 +842,7 @@ function main() {
...
@@ -823,7 +842,7 @@ function main() {
assert_api_spec_approvals
assert_api_spec_approvals
;;
;;
test_inference
)
test_inference
)
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
test_fluid_lib
test_fluid_lib
;;
;;
assert_api_approvals
)
assert_api_approvals
)
...
@@ -840,7 +859,7 @@ function main() {
...
@@ -840,7 +859,7 @@ function main() {
;;
;;
cicheck_py35
)
cicheck_py35
)
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
run_test
run_test
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
;;
;;
...
@@ -848,7 +867,7 @@ function main() {
...
@@ -848,7 +867,7 @@ function main() {
cmake_gen
${
PYTHON_ABI
:-
""
}
cmake_gen
${
PYTHON_ABI
:-
""
}
;;
;;
gen_fluid_lib
)
gen_fluid_lib
)
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
;;
;;
test_fluid_lib
)
test_fluid_lib
)
test_fluid_lib
test_fluid_lib
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录