From ef21b58b1f791c415c013acc433533dafbd5a71d Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Tue, 8 Nov 2022 11:02:16 +0800 Subject: [PATCH] remove dist xpu tests for R200 (#47381) * disable distributed xpu tests * test=kunlun * test=document_fix;test=kunlun * test=document_fix;test=kunlun * test=document_fix;test=kunlun * test=document_fix;test=kunlun --- paddle/scripts/paddle_build.sh | 2 +- python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 260d89bf36..1153f63613 100755 --- a/paddle/scripts/paddle_build.sh +++ b/paddle/scripts/paddle_build.sh @@ -2179,7 +2179,7 @@ EOF set +x export XPU_OP_LIST_DIR=$tmp_dir ut_startTime_s=`date +%s` - test_cases=$(ctest -N -V | grep "_xpu" ) # cases list which would be run exclusively + test_cases=$(ctest -N -V -LE "(RUN_TYPE=DIST_KUNLUN)" | grep "_xpu" ) # cases list which would be run exclusively get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list while read -r line; do if [[ "$line" == "" ]]; then diff --git a/python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt b/python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt index cf70f63580..cc46e42f8c 100644 --- a/python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt @@ -28,3 +28,9 @@ set_tests_properties(test_conv2d_op_xpu PROPERTIES TIMEOUT 120) set_tests_properties(test_mul_op_xpu PROPERTIES TIMEOUT 120) set_tests_properties(test_matmul_v2_op_xpu PROPERTIES TIMEOUT 900) set_tests_properties(test_matmul_op_xpu PROPERTIES TIMEOUT 300) +set_tests_properties(test_collective_identity_xpu + PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") +set_tests_properties(test_collective_allgather_xpu + PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") +set_tests_properties(test_collective_allreduce_xpu + PROPERTIES LABELS "RUN_TYPE=DIST_KUNLUN") -- GitLab