diff --git a/paddle/scripts/paddle_build.sh b/paddle/scripts/paddle_build.sh index 260d89bf369e2d34223968d5c987f976ae8fe1d8..1153f636136d1e3f1998ec0cfa2566e75ecbbac4 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 cf70f63580b997e1254c530befcf5299106432ca..cc46e42f8ca6446a608808cb9b180df4593c8d26 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")