Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
00279fdc
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
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() {
Building in /paddle/build ...
============================================
EOF
parallel_number
=
`
nproc
`
if
[[
"
$1
"
!=
""
]]
;
then
parallel_number
=
$1
fi
make clean
make
-j
`
nproc
`
make
-j
${
parallel_number
}
make
install
-j
`
nproc
`
}
...
...
@@ -737,9 +741,13 @@ function gen_fluid_lib() {
Generating fluid library for train and inference ...
========================================
EOF
parallel_number
=
`
nproc
`
if
[[
"
$1
"
!=
""
]]
;
then
parallel_number
=
$1
fi
cmake ..
-DWITH_DISTRIBUTE
=
OFF
-DON_INFER
=
ON
make
-j
`
nproc
`
fluid_lib_dist
make
-j
`
nproc
`
inference_lib_dist
make
-j
${
parallel_number
}
fluid_lib_dist
make
-j
${
parallel_number
}
inference_lib_dist
}
function
tar_fluid_lib
()
{
...
...
@@ -770,11 +778,22 @@ EOF
function
main
()
{
local
CMD
=
$1
local
parallel_number
=
$2
init
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
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
gen_dockerfile
${
PYTHON_ABI
:-
""
}
;;
test
)
...
...
@@ -797,7 +816,7 @@ function main() {
;;
fluid_inference_lib
)
cmake_gen
${
PYTHON_ABI
:-
""
}
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
tar_fluid_lib
test_fluid_lib
;;
...
...
@@ -806,16 +825,16 @@ function main() {
;;
cicheck
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
run_test
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
test_fluid_lib
assert_api_spec_approvals
;;
cicheck_brpc
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
run_brpc_test
;;
assert_api
)
...
...
@@ -823,7 +842,7 @@ function main() {
assert_api_spec_approvals
;;
test_inference
)
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
test_fluid_lib
;;
assert_api_approvals
)
...
...
@@ -840,7 +859,7 @@ function main() {
;;
cicheck_py35
)
cmake_gen
${
PYTHON_ABI
:-
""
}
build
build
${
parallel_number
}
run_test
assert_api_not_changed
${
PYTHON_ABI
:-
""
}
;;
...
...
@@ -848,7 +867,7 @@ function main() {
cmake_gen
${
PYTHON_ABI
:-
""
}
;;
gen_fluid_lib
)
gen_fluid_lib
gen_fluid_lib
${
parallel_number
}
;;
test_fluid_lib
)
test_fluid_lib
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录