Skip to content

Commit 26bfd67

Browse files
committed
fix ut rules, test=kunlun
1 parent ca9914b commit 26bfd67

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/paddle/fluid/tests/unittests/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,12 @@ if (WITH_XPU)
625625
add_subdirectory(xpu)
626626
endif()
627627

628+
# dist xpu tests:
629+
if (WITH_XPU_BKCL)
630+
py_test(test_collective_reduce_api_xpu SRCS "test_collective_reduce_api.py")
631+
py_test(test_collective_allreduce_api_xpu SRCS "test_collective_allreduce_api.py")
632+
endif()
633+
628634
if (WITH_ASCEND_CL)
629635
add_subdirectory(npu)
630636
endif()

python/paddle/fluid/tests/unittests/xpu/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,5 @@ foreach(TEST_OP ${DIST_TEST_OPS})
2121
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
2222
endforeach(TEST_OP)
2323

24-
# dist xpu tests:
25-
if (WITH_XPU_BKCL)
26-
py_test(test_collective_reduce_api_xpu SRCS "../test_collective_reduce_api.py")
27-
py_test(test_collective_allreduce_api_xpu SRCS "../test_collective_allreduce_api.py")
28-
endif()
29-
3024
set_tests_properties(test_mul_op_xpu PROPERTIES TIMEOUT 120)
3125
set_tests_properties(test_conv2d_op_xpu PROPERTIES TIMEOUT 120)

0 commit comments

Comments
 (0)