未验证 提交 c4e05e1c 编写于 作者: T tianshuo78520a 提交者: GitHub

Fix op-benchmark cpu/gpu error (#34997)

上级 22da1907
...@@ -253,6 +253,17 @@ function check_op_benchmark_result { ...@@ -253,6 +253,17 @@ function check_op_benchmark_result {
return $check_status_code return $check_status_code
} }
function check_CHANGE_OP_MAP {
for op_name in ${!CHANGE_OP_MAP[@]}
do
if [ -z "${BENCHMARK_OP_MAP[$op_name]}" ]
then
exit_code=8
LOG "[ERROR] Missing test script of \"${op_name}\"(${CHANGE_OP_MAP[$op_name]}) in benchmark."
fi
done
}
# diff benchmakr result and miss op # diff benchmakr result and miss op
function summary_problems { function summary_problems {
local op_name exit_code local op_name exit_code
...@@ -262,14 +273,7 @@ function summary_problems { ...@@ -262,14 +273,7 @@ function summary_problems {
check_op_benchmark_result check_op_benchmark_result
exit_code=$? exit_code=$?
fi fi
for op_name in ${!CHANGE_OP_MAP[@]} check_CHANGE_OP_MAP
do
if [ -z "${BENCHMARK_OP_MAP[$op_name]}" ]
then
exit_code=8
LOG "[ERROR] Missing test script of \"${op_name}\"(${CHANGE_OP_MAP[$op_name]}) in benchmark."
fi
done
if [ $exit_code -ne 0 ]; then if [ $exit_code -ne 0 ]; then
LOG "[INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details." LOG "[INFO] See https://github.com/PaddlePaddle/Paddle/wiki/PR-CI-OP-benchmark-Manual for details."
LOG "[INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR." LOG "[INFO] Or you can apply for one RD (Avin0323(Recommend), Xreki, luotao1) approval to pass this PR."
...@@ -285,7 +289,7 @@ function cpu_op_benchmark { ...@@ -285,7 +289,7 @@ function cpu_op_benchmark {
load_CHANGE_OP_MAP load_CHANGE_OP_MAP
load_BENCHMARK_OP_MAP load_BENCHMARK_OP_MAP
build_whl build_whl
summary_problems check_CHANGE_OP_MAP
LOG "[INFO] Op benchmark run success and no error!" LOG "[INFO] Op benchmark run success and no error!"
exit 0 exit 0
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册