From 16a808149ae3a5e2a67c50ddc6c3aa82257225c3 Mon Sep 17 00:00:00 2001 From: YUNSHEN XIE <1084314248@qq.com> Date: Thu, 19 Nov 2020 17:14:04 +0800 Subject: [PATCH] modfied the timeout value for 5 ut (#28714) * modfied the timeout value for 5 ut * modified timeout value for test_resnet --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 13 ++++++++++--- .../unittests/dygraph_to_static/CMakeLists.txt | 3 +++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index e527ba613b..0efb88987e 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -606,6 +606,7 @@ if(NOT WIN32 AND NOT APPLE) set_tests_properties(test_multiprocess_dataloader_iterable_dataset_static PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE") set_tests_properties(test_multiprocess_dataloader_iterable_dataset_dynamic PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE") set_tests_properties(test_multiprocess_dataloader_dataset PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE") + set_tests_properties(test_multiprocess_dataloader_static PROPERTIES TIMEOUT 120) endif() # setting timeout value for old unittests @@ -764,9 +765,13 @@ set_tests_properties(test_pad3d_op PROPERTIES TIMEOUT 120) set_tests_properties(test_dataloader_keep_order PROPERTIES TIMEOUT 120) set_tests_properties(test_mean_op PROPERTIES TIMEOUT 120) set_tests_properties(test_dataloader_unkeep_order PROPERTIES TIMEOUT 120) -if(WITH_COVERAGE) - set_tests_properties(test_parallel_dygraph_sparse_embedding PROPERTIES TIMEOUT 120) - set_tests_properties(test_parallel_dygraph_transformer PROPERTIES TIMEOUT 120) +set_tests_properties(test_reader_reset PROPERTIES TIMEOUT 120) +set_tests_properties(test_pool3d_api PROPERTIES TIMEOUT 120) +if(WITH_GPU AND WITH_NCCL) + if(${NCCL_VERSION} VERSION_GREATER_EQUAL 2212) + set_tests_properties(test_parallel_dygraph_sparse_embedding PROPERTIES TIMEOUT 120) + set_tests_properties(test_parallel_dygraph_transformer PROPERTIES TIMEOUT 120) + endif() endif() if(WITH_GPU AND NOT WIN32) set_tests_properties(test_collective_allgather_api PROPERTIES TIMEOUT 120) @@ -782,6 +787,8 @@ if(WITH_GPU AND NOT WIN32) set_tests_properties(test_allgather PROPERTIES TIMEOUT 120) set_tests_properties(test_collective_scatter_api PROPERTIES TIMEOUT 120) set_tests_properties(test_collective_barrier_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_scatter PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_sendrecv PROPERTIES TIMEOUT 120) endif() if(WITH_GPU) set_tests_properties(test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt index b6acf58847..6eb72b2f94 100644 --- a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt @@ -23,3 +23,6 @@ if(NOT WIN32) set_tests_properties(test_resnet_v2 PROPERTIES TIMEOUT 120) set_tests_properties(test_resnet PROPERTIES TIMEOUT 120) endif() +if(WIN32) + set_tests_properties(test_resnet PROPERTIES TIMEOUT 300) +endif() -- GitLab