@@ -214,8 +214,11 @@ function(py_test_modules TARGET_NAME)
214214 if (py_test_modules_SERIAL)
215215 set_property (TEST ${TARGET_NAME} PROPERTY RUN_SERIAL 1)
216216 endif ()
217-
218- set_tests_properties (${TARGET_NAME} PROPERTIES TIMEOUT 15)
217+ if (WIN32 )
218+ set_tests_properties (${TARGET_NAME} PROPERTIES TIMEOUT 150)
219+ else ()
220+ set_tests_properties (${TARGET_NAME} PROPERTIES TIMEOUT 15)
221+ endif ()
219222 endif ()
220223endfunction ()
221224
@@ -606,38 +609,22 @@ endif()
606609
607610# setting timeout value for old unittests
608611# set_tests_properties(test_dist_fleet_sparse_embedding_ctr PROPERTIES TIMEOUT 200)
609- if (NOT WIN32 AND NOT APPLE )
610- set_tests_properties (test_fused_elemwise_activation_op PROPERTIES TIMEOUT 150)
611- set_tests_properties (test_gru_op PROPERTIES TIMEOUT 200)
612- set_tests_properties (test_layer_norm_op PROPERTIES TIMEOUT 150)
613- set_tests_properties (test_pool3d_op PROPERTIES TIMEOUT 150)
614- set_tests_properties (test_regularizer PROPERTIES TIMEOUT 150)
615- set_tests_properties (test_parallel_dygraph_sync_batch_norm PROPERTIES TIMEOUT 120)
616- set_tests_properties (test_collective_broadcast_api PROPERTIES TIMEOUT 120)
617- set_tests_properties (test_collective_allreduce_api PROPERTIES TIMEOUT 120)
612+
613+ if (NOT WIN32 )
614+ set_tests_properties (test_multiprocess_reader_exception PROPERTIES TIMEOUT 120)
615+ set_tests_properties (test_layers PROPERTIES TIMEOUT 120)
616+ set_tests_properties (test_ir_memory_optimize_transformer PROPERTIES TIMEOUT 120)
617+ set_tests_properties (test_fleet_utils PROPERTIES TIMEOUT 120)
618+ endif ()
619+
620+ if (WITH_DISTRIBUTE)
621+ set_tests_properties (test_communicator_half_async PROPERTIES TIMEOUT 120)
622+ endif ()
623+ if (WITH_DISTRIBUTE AND NOT APPLE )
618624 set_tests_properties (test_fleet_launch PROPERTIES TIMEOUT 120)
619625 set_tests_properties (test_c_comm_init_op PROPERTIES TIMEOUT 120)
620- set_tests_properties (test_pipeline PROPERTIES TIMEOUT 120)
621- set_tests_properties (test_reducescatter_api PROPERTIES TIMEOUT 120)
622- set_tests_properties (test_broadcast PROPERTIES TIMEOUT 120)
623- set_tests_properties (test_reducescatter PROPERTIES TIMEOUT 120)
624626 set_tests_properties (test_fleet_checkpoint PROPERTIES TIMEOUT 120)
625- set_tests_properties (test_collective_reduce_api PROPERTIES TIMEOUT 120)
626- set_tests_properties (test_collective_reduce PROPERTIES TIMEOUT 120)
627- set_tests_properties (test_allreduce PROPERTIES TIMEOUT 120)
628- set_tests_properties (test_allgather PROPERTIES TIMEOUT 120)
629627 set_tests_properties (test_launch PROPERTIES TIMEOUT 120)
630- set_tests_properties (test_collective_scatter_api PROPERTIES TIMEOUT 120)
631- set_tests_properties (test_collective_barrier_api PROPERTIES TIMEOUT 120)
632- endif ()
633-
634- if (NOT WIN32 )
635- set_tests_properties (test_multiprocess_reader_exception PROPERTIES TIMEOUT 120)
636- set_tests_properties (test_layers PROPERTIES TIMEOUT 120)
637- set_tests_properties (test_communicator_half_async PROPERTIES TIMEOUT 120)
638- set_tests_properties (test_ir_memory_optimize_transformer PROPERTIES TIMEOUT 120)
639- set_tests_properties (test_fleet_utils PROPERTIES TIMEOUT 120)
640-
641628endif ()
642629
643630# setting timeout value as 15S
@@ -756,11 +743,11 @@ set_tests_properties(test_dygraph_multi_forward PROPERTIES TIMEOUT 120)
756743set_tests_properties (test_norm_op PROPERTIES TIMEOUT 120)
757744set_tests_properties (test_imperative_ocr_attention_model PROPERTIES TIMEOUT 120)
758745set_tests_properties (test_imperative_mnist PROPERTIES TIMEOUT 120)
759- set_tests_properties (test_fused_elemwise_activation_op PROPERTIES TIMEOUT 120 )
760- set_tests_properties (test_gru_op PROPERTIES TIMEOUT 120 )
761- set_tests_properties (test_layer_norm_op PROPERTIES TIMEOUT 120 )
762- set_tests_properties (test_pool3d_op PROPERTIES TIMEOUT 120 )
763- set_tests_properties (test_regularizer PROPERTIES TIMEOUT 120 )
746+ set_tests_properties (test_fused_elemwise_activation_op PROPERTIES TIMEOUT 150 )
747+ set_tests_properties (test_gru_op PROPERTIES TIMEOUT 200 )
748+ set_tests_properties (test_layer_norm_op PROPERTIES TIMEOUT 150 )
749+ set_tests_properties (test_pool3d_op PROPERTIES TIMEOUT 150 )
750+ set_tests_properties (test_regularizer PROPERTIES TIMEOUT 150 )
764751set_tests_properties (test_imperative_resnet PROPERTIES TIMEOUT 200)
765752set_tests_properties (test_imperative_resnet_sorted_gradient PROPERTIES TIMEOUT 200)
766753set_tests_properties (test_imperative_se_resnext PROPERTIES TIMEOUT 200)
@@ -772,8 +759,21 @@ if(WITH_COVERAGE)
772759endif ()
773760if (WITH_GPU AND NOT WIN32 )
774761 set_tests_properties (test_collective_allgather_api PROPERTIES TIMEOUT 120)
762+ set_tests_properties (test_collective_broadcast_api PROPERTIES TIMEOUT 120)
763+ set_tests_properties (test_collective_allreduce_api PROPERTIES TIMEOUT 120)
764+ set_tests_properties (test_pipeline PROPERTIES TIMEOUT 120)
765+ set_tests_properties (test_reducescatter_api PROPERTIES TIMEOUT 120)
766+ set_tests_properties (test_broadcast PROPERTIES TIMEOUT 120)
767+ set_tests_properties (test_reducescatter PROPERTIES TIMEOUT 120)
768+ set_tests_properties (test_collective_reduce_api PROPERTIES TIMEOUT 120)
769+ set_tests_properties (test_collective_reduce PROPERTIES TIMEOUT 120)
770+ set_tests_properties (test_allreduce PROPERTIES TIMEOUT 120)
771+ set_tests_properties (test_allgather PROPERTIES TIMEOUT 120)
772+ set_tests_properties (test_collective_scatter_api PROPERTIES TIMEOUT 120)
773+ set_tests_properties (test_collective_barrier_api PROPERTIES TIMEOUT 120)
775774endif ()
776775if (WITH_GPU)
777776 set_tests_properties (test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120)
777+ set_tests_properties (test_parallel_dygraph_sync_batch_norm PROPERTIES TIMEOUT 120)
778778endif ()
779779set_tests_properties (test_inplace_addto_strategy PROPERTIES TIMEOUT 120)
0 commit comments