From ed9a14e49e1665dc2fd94110231fc4702439acd9 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Thu, 19 Aug 2021 18:47:26 +0800 Subject: [PATCH] Fix op-benchmark cpu/gpu; test=document_fix (#35027) --- tools/test_ci_op_benchmark.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/test_ci_op_benchmark.sh b/tools/test_ci_op_benchmark.sh index d217d7e50e..8dd5c9703c 100644 --- a/tools/test_ci_op_benchmark.sh +++ b/tools/test_ci_op_benchmark.sh @@ -262,6 +262,11 @@ function check_CHANGE_OP_MAP { LOG "[ERROR] Missing test script of \"${op_name}\"(${CHANGE_OP_MAP[$op_name]}) in benchmark." fi done + if [ $exit_code -ne 0 ]; then + 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." + exit $exit_code + fi } # diff benchmakr result and miss op @@ -274,11 +279,6 @@ function summary_problems { exit_code=$? fi check_CHANGE_OP_MAP - if [ $exit_code -ne 0 ]; then - 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." - exit $exit_code - fi } @@ -288,8 +288,8 @@ function cpu_op_benchmark { prepare_benchmark_environment load_CHANGE_OP_MAP load_BENCHMARK_OP_MAP - build_whl check_CHANGE_OP_MAP + build_whl LOG "[INFO] Op benchmark run success and no error!" exit 0 } -- GitLab