|
|
|
@ -7,13 +7,13 @@ file(GLOB DIST_TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_dist_*.py")
|
|
|
|
|
string(REPLACE ".py" "" DIST_TEST_OPS "${DIST_TEST_OPS}")
|
|
|
|
|
list(APPEND DIST_TEST_OPS test_parallel_dygraph_mnist)
|
|
|
|
|
list(APPEND DIST_TEST_OPS test_parallel_dygraph_se_resnext)
|
|
|
|
|
list(APPEND DIST_TEST_OPS test_listen_and_serv_op)
|
|
|
|
|
set(MIXED_DIST_TEST_OPS ${DIST_TEST_OPS})
|
|
|
|
|
#remove distribute unittests.
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_dgc_op)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_dgc_momentum_op)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_dgc_optimizer)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_simple_dist_transpiler)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_listen_and_serv_op)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_nce_remote_table_op)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_recv_save_op)
|
|
|
|
|
list(APPEND MIXED_DIST_TEST_OPS test_transpiler_ops)
|
|
|
|
@ -288,7 +288,6 @@ if(WITH_DISTRIBUTE)
|
|
|
|
|
list(REMOVE_ITEM DIST_TEST_OPS "test_dist_se_resnext_dgc")
|
|
|
|
|
endif()
|
|
|
|
|
if(NOT APPLE)
|
|
|
|
|
bash_test_modules(test_listen_and_serv_op MODULES test_listen_and_serv.sh)
|
|
|
|
|
if(WITH_GPU)
|
|
|
|
|
# NOTE. test_launch only work in gpu collective mode
|
|
|
|
|
bash_test_modules(test_launch MODULES test_launch.sh)
|
|
|
|
@ -297,7 +296,6 @@ if(WITH_DISTRIBUTE)
|
|
|
|
|
|
|
|
|
|
set(dist_ut_port 1000)
|
|
|
|
|
foreach(TEST_OP ${DIST_TEST_OPS})
|
|
|
|
|
message(STATUS "set dist_ut_port=${dist_ut_port} on ${TEST_OP}")
|
|
|
|
|
bash_test_modules(${TEST_OP} MODULES dist_test.sh SERIAL LABELS "RUN_TYPE=EXCLUSIVE" ENVS "PADDLE_DIST_UT_PORT=${dist_ut_port}")
|
|
|
|
|
MATH(EXPR dist_ut_port "${dist_ut_port}+50")
|
|
|
|
|
endforeach(TEST_OP)
|
|
|
|
|