Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
机器未来
Paddle
提交
cf6eb0e1
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看板
未验证
提交
cf6eb0e1
编写于
7月 13, 2020
作者:
Z
zhangchunle
提交者:
GitHub
7月 13, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
summary failedtests (#25388)
上级
20ee36bd
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
34 addition
and
7 deletion
+34
-7
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+34
-7
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
cf6eb0e1
...
...
@@ -742,6 +742,23 @@ EOF
fi
}
failed_test_lists
=
''
tmp_dir
=
`
mktemp
-d
`
function
collect_failed_tests
()
{
for
file
in
`
ls
$tmp_dir
`
;
do
exit_code
=
0
grep
-q
'The following tests FAILED:'
$tmp_dir
/
$file
||
exit_code
=
$?
if
[
$exit_code
-ne
0
]
;
then
failuretest
=
''
else
failuretest
=
`
grep
-A
10000
'The following tests FAILED:'
$tmp_dir
/
$file
|
sed
's/The following tests FAILED://g'
|sed
'/^$/d'
`
failed_test_lists
=
"
${
failed_test_lists
}
${
failuretest
}
"
fi
done
}
function
card_test
()
{
set
-m
case_count
$1
$2
...
...
@@ -764,7 +781,7 @@ function card_test() {
fi
trap
'caught_error'
CHLD
tmpfile_rand
=
`
date
+%s%N
`
NUM_PROC
=
$[
CUDA_DEVICE_COUNT/
$cardnumber
]
for
((
i
=
0
;
i <
$NUM_PROC
;
i++
))
;
do
# CUDA_VISIBLE_DEVICES http://acceleware.com/blog/cudavisibledevices-masking-gpus
...
...
@@ -777,21 +794,21 @@ function card_test() {
cuda_list
=
"
$cuda_list
,
$[
i*cardnumber+j]"
fi
done
tmpfile
=
$tmp_dir
/
$tmpfile_rand
"_"
$i
if
[
${
TESTING_DEBUG_MODE
:-
OFF
}
==
"ON"
]
;
then
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
else
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
&
(
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
|
tee
$tmpfile
;
test
${
PIPESTATUS
[0]
}
-eq
0
)
&
else
(
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
-V
|
tee
$tmpfile
;
test
${
PIPESTATUS
[0]
}
-eq
0
)
&
fi
else
if
[[
$cardnumber
==
$CUDA_DEVICE_COUNT
]]
;
then
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
(
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
|
tee
$tmpfile
;
test
${
PIPESTATUS
[0]
}
-eq
0
)
&
else
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
&
(
env
CUDA_VISIBLE_DEVICES
=
$cuda_list
ctest
-I
$i
,,
$NUM_PROC
-R
"(
$testcases
)"
--output-on-failure
|
tee
$tmpfile
;
test
${
PIPESTATUS
[0]
}
-eq
0
)
&
fi
fi
done
wait
;
# wait for all subshells to finish
ut_endTime_s
=
`
date
+%s
`
if
[
"
$2
"
==
""
]
;
then
...
...
@@ -876,6 +893,16 @@ set +x
card_test
"
$single_card_tests_1
"
1
# run cases with single GPU
card_test
"
$multiple_card_tests
"
2
# run cases with two GPUs
card_test
"
$exclusive_tests
"
# run cases exclusively, in this cases would be run with 4/8 GPUs
collect_failed_tests
if
[
-n
"
${
failed_test_lists
}
"
]
;
then
failed_test_lists_ult
=
`
echo
"
${
failed_test_lists
}
"
|grep
-Po
'[^ ].*$'
`
echo
"========================================"
echo
"Summary Failed Tests... "
echo
"========================================"
echo
"The following tests FAILED: "
echo
"
${
failed_test_lists_ult
}
"
fi
rm
-f
$tmp_dir
/
*
if
[[
"
$EXIT_CODE
"
!=
"0"
]]
;
then
exit
8
;
fi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录