Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
d6e23825
P
Paddle
项目概览
机器未来
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d6e23825
编写于
8月 03, 2021
作者:
L
lelelelelez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
increase parallel tests;notest,test=coverage
上级
af886995
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
677 addition
and
11 deletion
+677
-11
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+27
-8
tools/parallel_UT_rule.py
tools/parallel_UT_rule.py
+650
-3
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
d6e23825
...
@@ -1160,6 +1160,7 @@ set +x
...
@@ -1160,6 +1160,7 @@ set +x
multiple_card_tests_two_parallel
=
'^job$'
# cases list which would run 2 job each time with multiple GPUs, most cases would be two GPUs
multiple_card_tests_two_parallel
=
'^job$'
# cases list which would run 2 job each time with multiple GPUs, most cases would be two GPUs
multiple_card_tests_non_parallel
=
'^job$'
# cases list which would run 1 job each time with multiple GPUs, most cases would be two GPUs
multiple_card_tests_non_parallel
=
'^job$'
# cases list which would run 1 job each time with multiple GPUs, most cases would be two GPUs
exclusive_tests_high_parallel
=
'^job$'
exclusive_tests_two_parallel
=
'^job$'
# cases list which would run 2 job exclusively(with all GPUs)
exclusive_tests_two_parallel
=
'^job$'
# cases list which would run 2 job exclusively(with all GPUs)
exclusive_tests_non_parallel
=
'^job$'
# cases list which would run 1 job exclusively(with all GPUs)
exclusive_tests_non_parallel
=
'^job$'
# cases list which would run 1 job exclusively(with all GPUs)
...
@@ -1215,7 +1216,9 @@ set +x
...
@@ -1215,7 +1216,9 @@ set +x
fi
fi
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
$(
echo
$cpu_parallel_job$tetrad_parallel_job$two_parallel_job
|
grep
-o
"
\^
$testcase
\\
$"
)
!=
""
]]
;
then
if
[[
$(
echo
$cpu_parallel_job
|
grep
-o
"
\^
$testcase
\\
$"
)
!=
""
]]
;
then
exclusive_tests_high_parallel
=
"
$exclusive_tests_high_parallel
|^
$testcase
$"
elif
[[
$(
echo
$tetrad_parallel_job$two_parallel_job
|
grep
-o
"
\^
$testcase
\\
$"
)
!=
""
]]
;
then
exclusive_tests_two_parallel
=
"
$exclusive_tests_two_parallel
|^
$testcase
$"
exclusive_tests_two_parallel
=
"
$exclusive_tests_two_parallel
|^
$testcase
$"
else
else
exclusive_tests_non_parallel
=
"
$exclusive_tests_non_parallel
|^
$testcase
$"
exclusive_tests_non_parallel
=
"
$exclusive_tests_non_parallel
|^
$testcase
$"
...
@@ -1243,23 +1246,37 @@ set +x
...
@@ -1243,23 +1246,37 @@ set +x
testcase
=
''
testcase
=
''
done
<<<
"
$test_cases
"
;
done
<<<
"
$test_cases
"
;
card_test
"
$single_card_tests_high_parallel
"
1 6
# run cases the most each time with single GPU
single_ut_startTime_s
=
`
date
+%s
`
card_test
"
$single_card_tests_two_parallel
"
1 2
# run cases 2 job each time with single GPU
card_test
"
$single_card_tests_high_parallel
"
1 24
# run cases the most each time with single GPU
card_test
"
$single_card_tests_two_parallel
"
1 7
# run cases 2 job each time with single GPU
card_test
"
$single_card_tests_non_parallel
"
1
# run cases 1 job each time with single GPU
card_test
"
$single_card_tests_non_parallel
"
1
# run cases 1 job each time with single GPU
single_ut_endTime_s
=
`
date
+%s
`
multi_ut_startTime_s
=
`
date
+%s
`
card_test
"
$multiple_card_tests_two_parallel
"
2 2
# run cases 2 job each time with two GPUs
card_test
"
$multiple_card_tests_two_parallel
"
2 2
# run cases 2 job each time with two GPUs
card_test
"
$multiple_card_tests_non_parallel
"
2
# run cases 1 job each time with two GPUs
card_test
"
$multiple_card_tests_non_parallel
"
2
# run cases 1 job each time with two GPUs
multi_ut_endTime_s
=
`
date
+%s
`
exclu_ut_startTime_s
=
`
date
+%s
`
card_test
"
$exclusive_tests_high_parallel
"
-1
4
card_test
"
$exclusive_tests_two_parallel
"
-1
2
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_two_parallel
"
-1
2
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_non_parallel
"
-1
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
card_test
"
$exclusive_tests_non_parallel
"
-1
# run cases exclusively, in this cases would be run with 2/4/8 GPUs
exclu_ut_endTime_s
=
`
date
+%s
`
echo
"single UT testCase Time:
$[
$single_ut_endTime_s
-
$single_ut_startTime_s
]s"
echo
"mul UT testCase Time:
$[
$multi_ut_endTime_s
-
$multi_ut_startTime_s
]s"
echo
"exclu UT testCase Time:
$[
$exclu_ut_endTime_s
-
$exclu_ut_startTime_s
]s"
collect_failed_tests
collect_failed_tests
rm
-f
$tmp_dir
/
*
rm
-f
$tmp_dir
/
*
exec_times
=
0
exec_times
=
0
retry_unittests_record
=
''
retry_unittests_record
=
''
retry_time
=
3
retry_time
=
3
exec_time_array
=(
'first'
'second'
'third'
)
exec_time_array
=(
'first'
'second'
'third'
)
exec_retry_threshold
=
10
exec_retry_threshold
=
is_retry_execuate
=
0
is_retry_execuate
=
0
rerun_ut_startTime_s
=
`
date
+%s
`
if
[
-n
"
$failed_test_lists
"
]
;
then
if
[
-n
"
$failed_test_lists
"
]
;
then
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
...
@@ -1318,7 +1335,7 @@ set +x
...
@@ -1318,7 +1335,7 @@ set +x
done
done
if
[[
"
$one_card_retry
"
!=
""
]]
;
then
if
[[
"
$one_card_retry
"
!=
""
]]
;
then
card_test
"
$one_card_retry
"
1
card_test
"
$one_card_retry
"
1
4
fi
fi
if
[[
"
$multiple_card_retry
"
!=
""
]]
;
then
if
[[
"
$multiple_card_retry
"
!=
""
]]
;
then
...
@@ -1342,6 +1359,8 @@ set +x
...
@@ -1342,6 +1359,8 @@ set +x
is_retry_execuate
=
1
is_retry_execuate
=
1
fi
fi
fi
fi
rerun_ut_endTime_s
=
`
date
+%s
`
echo
"rerun UT testCase Time:
$[
$rerun_ut_endTime_s
-
$rerun_ut_startTime_s
]s"
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
show_ut_retry_result
show_ut_retry_result
...
...
tools/parallel_UT_rule.py
浏览文件 @
d6e23825
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录