“24509f4af942bb250564756ad636691c7921e1df”上不存在“python/paddle/fluid/tests/unittests/test_auc_op.py”
CMakeLists.txt 724 字节
Newer Older
1
if(WITH_CUSTOM_DEVICE AND NOT WITH_GPU)
2 3 4 5 6 7
  file(
    GLOB TEST_OPS
    RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
    "test_*.py")
  string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")

8
  list(REMOVE_ITEM TEST_OPS test_collective_process_group_xccl)
9 10 11
  foreach(TEST_OP ${TEST_OPS})
    py_test(${TEST_OP} SRCS ${TEST_OP}.py)
  endforeach()
12 13 14 15 16 17 18

  bash_test_modules(
    test_fleet_launch_custom_device START_BASH
    test_fleet_launch_custom_device.sh ENVS
    PADDLE_BINARY_DIR=${PADDLE_BINARY_DIR})

  set_tests_properties(test_custom_cpu_plugin PROPERTIES TIMEOUT 120)
19
  set_tests_properties(test_custom_cpu_profiler_plugin PROPERTIES TIMEOUT 120)
20
  set_tests_properties(test_fleet_launch_custom_device PROPERTIES TIMEOUT 120)
21
endif()