diff --git a/paddle/fluid/framework/CMakeLists.txt b/paddle/fluid/framework/CMakeLists.txt index b40cbdcc1b1bf73b70b24c59d2ca1825a74fef68..6b724b656ddade356b9a5efd15772cca0bd22df7 100644 --- a/paddle/fluid/framework/CMakeLists.txt +++ b/paddle/fluid/framework/CMakeLists.txt @@ -327,3 +327,6 @@ if(APPLE) ${PADDLE_BINARY_DIR}/paddle/fluid/framework/libpaddle_framework.dylib CACHE INTERNAL "Fluid framework lib") endif() +if(WITH_TESTING) +set_tests_properties(selected_rows_test PROPERTIES TIMEOUT 120) +endif() diff --git a/paddle/fluid/framework/ir/fusion_group/CMakeLists.txt b/paddle/fluid/framework/ir/fusion_group/CMakeLists.txt index fe2bd27524fbfc7f3d2b68f5e3da8feefd46557a..f32a5eafefcefa5ab35299b4ffad81c24d871c97 100644 --- a/paddle/fluid/framework/ir/fusion_group/CMakeLists.txt +++ b/paddle/fluid/framework/ir/fusion_group/CMakeLists.txt @@ -9,3 +9,6 @@ cc_library(fusion_group_pass SRCS fusion_group_pass.cc elementwise_group_detector.cc DEPS subgraph_detector fuse_pass_base code_generator device_code) cc_test(test_fusion_group_pass SRCS fusion_group_pass_tester.cc DEPS fusion_group_pass graph_viz_pass) +if(NOT ON_INFER) +set_tests_properties(test_code_generator PROPERTIES TIMEOUT 120) +endif() diff --git a/paddle/fluid/inference/api/CMakeLists.txt b/paddle/fluid/inference/api/CMakeLists.txt index c0d3b14e0e43e10332d18ddd217a8a50245ab5ed..5a1b6678074a26fff837bdb21973e5770743bf81 100755 --- a/paddle/fluid/inference/api/CMakeLists.txt +++ b/paddle/fluid/inference/api/CMakeLists.txt @@ -68,3 +68,8 @@ elseif (WIN32) cc_test(test_analysis_predictor SRCS analysis_predictor_tester.cc DEPS analysis_predictor benchmark ${inference_deps} ARGS --dirname=${WORD2VEC_MODEL_DIR}) endif() +if(WITH_TESTING) + if(NOT APPLE) + set_tests_properties(test_api_impl PROPERTIES TIMEOUT 120) + endif() +endif() diff --git a/paddle/fluid/inference/tests/api/CMakeLists.txt b/paddle/fluid/inference/tests/api/CMakeLists.txt index 17d2c0c0eef8b6b35770157e1773c7f8efa3ab1b..bfc2984dc65c6079359e342a560ba3615b52a13e 100644 --- a/paddle/fluid/inference/tests/api/CMakeLists.txt +++ b/paddle/fluid/inference/tests/api/CMakeLists.txt @@ -581,3 +581,38 @@ if(WITH_GPU) EXTRA_DEPS ${INFERENCE_EXTRA_DEPS} ARGS --infer_model=${RESNET50_MODEL_DIR}) endif() + +if(WITH_GPU AND TENSORRT_FOUND) + set_tests_properties(trt_resnext_test PROPERTIES TIMEOUT 120) + set_tests_properties(trt_quant_int8_yolov3_r50_test PROPERTIES TIMEOUT 120) + set_tests_properties(trt_resnet50_test PROPERTIES TIMEOUT 120) + set_tests_properties(trt_cascade_rcnn_test PROPERTIES TIMEOUT 120) + set_tests_properties(test_trt_dynamic_shape_ernie_ser_deser PROPERTIES TIMEOUT 120) + set_tests_properties(test_trt_dynamic_shape_ernie PROPERTIES TIMEOUT 120) +endif() + +if(WITH_MKLDNN) + set_tests_properties(test_analyzer_int8_resnet50 PROPERTIES TIMEOUT 120) + set_tests_properties(test_analyzer_int8_mobilenet_ssd PROPERTIES TIMEOUT 120) + set_tests_properties(test_analyzer_quant_performance_benchmark PROPERTIES TIMEOUT 120) + set_tests_properties(test_analyzer_int8_mobilenetv2 PROPERTIES TIMEOUT 120) + set_tests_properties(test_analyzer_int8_mobilenetv1 PROPERTIES TIMEOUT 120) +endif() + +set_tests_properties(lite_resnet50_test PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_mobilenet_transpose PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_resnet50 PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_ner PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_ernie PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_googlenet PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_small_dam PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_transformer PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_bert PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_mobilenet_depthwise_conv PROPERTIES TIMEOUT 120) +if(WITH_GPU AND TENSORRT_FOUND) +set_tests_properties(trt_mobilenet_test PROPERTIES TIMEOUT 120) +set_tests_properties(test_analyzer_bfloat16_resnet50 PROPERTIES TIMEOUT 120) +endif() +if(ON_INFER OR WITH_GPU) +set_tests_properties(test_analyzer_transformer_profile PROPERTIES TIMEOUT 120) +endif() diff --git a/paddle/fluid/operators/distributed/CMakeLists.txt b/paddle/fluid/operators/distributed/CMakeLists.txt index 47fbb42fd6a8145b25260dd219edade436fbce6f..a4c9caf6f69ac7c105ed7ecdbff1469837efa10b 100644 --- a/paddle/fluid/operators/distributed/CMakeLists.txt +++ b/paddle/fluid/operators/distributed/CMakeLists.txt @@ -68,3 +68,7 @@ if(WITH_GPU) DEPS sendrecvop_rpc executor ${RPC_DEPS} selected_rows_functor scope math_function) endif() +if(WITH_TESTING) +set_tests_properties(rpc_server_test PROPERTIES TIMEOUT 120) +set_tests_properties(heart_beat_monitor_test PROPERTIES TIMEOUT 120) +endif() diff --git a/paddle/fluid/operators/jit/CMakeLists.txt b/paddle/fluid/operators/jit/CMakeLists.txt index 1c56efeab416e219206f38b82e124f95af495a3b..95361b17aae6b02d92b629ce049a148e3e3e182c 100644 --- a/paddle/fluid/operators/jit/CMakeLists.txt +++ b/paddle/fluid/operators/jit/CMakeLists.txt @@ -26,3 +26,6 @@ cc_test(jit_kernel_test SRCS test.cc DEPS jit_kernel_helper) if(NOT WIN32) cc_binary(jit_kernel_benchmark SRCS benchmark.cc DEPS jit_kernel_helper device_tracer tensor) endif() +if(WITH_TESTING) +set_tests_properties(jit_kernel_test PROPERTIES TIMEOUT 120) +endif() diff --git a/paddle/fluid/operators/math/CMakeLists.txt b/paddle/fluid/operators/math/CMakeLists.txt index 24ed4fcf6684980b217aad35dc124acef653c9b9..384393d9601e370b8913ee2bfefe9dc276e3b95d 100644 --- a/paddle/fluid/operators/math/CMakeLists.txt +++ b/paddle/fluid/operators/math/CMakeLists.txt @@ -91,3 +91,6 @@ if(WITH_GPU) endif() cc_test(concat_test SRCS concat_test.cc DEPS concat_and_split) cc_test(cpu_vec_test SRCS cpu_vec_test.cc DEPS blas cpu_info) +if(WITH_TESTING) +set_tests_properties(im2col_test PROPERTIES TIMEOUT 120) +endif() diff --git a/python/paddle/fluid/contrib/slim/tests/CMakeLists.txt b/python/paddle/fluid/contrib/slim/tests/CMakeLists.txt index 6c02076eae0de702f4e801c780d2af0f51949efd..0f05d941a9189f29ad2871b149cc4155b978ec04 100644 --- a/python/paddle/fluid/contrib/slim/tests/CMakeLists.txt +++ b/python/paddle/fluid/contrib/slim/tests/CMakeLists.txt @@ -277,4 +277,26 @@ endforeach() if(NOT WIN32) set_tests_properties(test_post_training_quantization_mobilenetv1 PROPERTIES TIMEOUT 250 LABELS "RUN_TYPE=NIGHTLY") set_tests_properties(test_post_training_quantization_resnet50 PROPERTIES TIMEOUT 200 LABELS "RUN_TYPE=NIGHTLY") + set_tests_properties(test_post_training_quantization_mnist PROPERTIES TIMEOUT 120) + set_tests_properties(test_weight_quantization_mobilenetv1 PROPERTIES TIMEOUT 120) +endif() + +set_tests_properties(test_graph PROPERTIES TIMEOUT 120) +set_tests_properties(test_quantization_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_qat_channelwise PROPERTIES TIMEOUT 120) +set_tests_properties(test_user_defined_quantization PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_qat PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_out_scale PROPERTIES TIMEOUT 120) +if(LINUX AND WITH_MKLDNN) + set_tests_properties(test_quant2_int8_mobilenetv1_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(convert_model2dot_ernie PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant2_int8_resnet50_channelwise_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant_int8_mobilenetv2_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant2_int8_resnet50_range_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(save_quant2_model_resnet50 PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant_int8_resnet50_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant_int8_mobilenetv1_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant2_int8_ernie_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant_int8_googlenet_mkldnn PROPERTIES TIMEOUT 120) + set_tests_properties(test_quant2_int8_resnet50_mkldnn PROPERTIES TIMEOUT 120) endif() diff --git a/python/paddle/fluid/contrib/tests/CMakeLists.txt b/python/paddle/fluid/contrib/tests/CMakeLists.txt index 7431b11817894ed002dd3ceb2de661dbe5c76be8..ab84257205460c56540a8ea0392e119ada8b517b 100644 --- a/python/paddle/fluid/contrib/tests/CMakeLists.txt +++ b/python/paddle/fluid/contrib/tests/CMakeLists.txt @@ -4,3 +4,5 @@ string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") foreach(src ${TEST_OPS}) py_test(${src} SRCS ${src}.py) endforeach() +set_tests_properties(test_image_classification_fp16 PROPERTIES TIMEOUT 120) +set_tests_properties(test_weight_decay_extend PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/CMakeLists.txt b/python/paddle/fluid/tests/CMakeLists.txt index 17bc861070fd9559f8b0eb23fe7baaea35e27eb4..bee49945f0074f2e8dc1af9662878ec495d25644 100644 --- a/python/paddle/fluid/tests/CMakeLists.txt +++ b/python/paddle/fluid/tests/CMakeLists.txt @@ -1,6 +1,7 @@ file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") + foreach(src ${TEST_OPS}) py_test(${src} SRCS ${src}.py) endforeach() @@ -11,3 +12,4 @@ add_subdirectory(book) if(NOT APPLE AND NOT WIN32) add_subdirectory(custom_op) endif() +set_tests_properties(test_beam_search_decoder PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/book/CMakeLists.txt b/python/paddle/fluid/tests/book/CMakeLists.txt index 96321aae566d1f910042f4e348d0be8b3e88c341..e78ba297bf1255a9d660ee36ed1b7c88f05d97bb 100644 --- a/python/paddle/fluid/tests/book/CMakeLists.txt +++ b/python/paddle/fluid/tests/book/CMakeLists.txt @@ -6,3 +6,9 @@ foreach(src ${TEST_OPS}) py_test(${src} SRCS ${src}.py) set_tests_properties(${src} PROPERTIES FIXTURES_SETUP ${src}_infer_model) endforeach() +set_tests_properties(test_word2vec PROPERTIES TIMEOUT 120) +set_tests_properties(test_recognize_digits PROPERTIES TIMEOUT 120) +set_tests_properties(test_image_classification PROPERTIES TIMEOUT 120) +set_tests_properties(test_label_semantic_roles PROPERTIES TIMEOUT 120) +set_tests_properties(test_machine_translation PROPERTIES TIMEOUT 120) +set_tests_properties(test_rnn_encoder_decoder PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index de6912e76ddaf43e2591272308d1c6084e5fbace..a344e04ed4d0cceae4f51dda849ef9c3984331b7 100644 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -273,7 +273,7 @@ function(parallel_bash_test_modules TARGET_NAME) cmake_parse_arguments(parallel_bash_test_modules "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) - set(timeout 120) + set(timeout 15) if(${parallel_bash_test_modules_TIMEOUT}) set(timeout ${parallel_bash_test_modules_TIMEOUT}) endif() @@ -612,4 +612,167 @@ if(NOT WIN32 AND NOT APPLE) set_tests_properties(test_layer_norm_op PROPERTIES TIMEOUT 150) set_tests_properties(test_pool3d_op PROPERTIES TIMEOUT 150) set_tests_properties(test_regularizer PROPERTIES TIMEOUT 150) + set_tests_properties(test_parallel_dygraph_sync_batch_norm PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_broadcast_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_allreduce_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_fleet_launch PROPERTIES TIMEOUT 120) + set_tests_properties(test_c_comm_init_op PROPERTIES TIMEOUT 120) + set_tests_properties(test_pipeline PROPERTIES TIMEOUT 120) + set_tests_properties(test_reducescatter_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_broadcast PROPERTIES TIMEOUT 120) + set_tests_properties(test_reducescatter PROPERTIES TIMEOUT 120) + set_tests_properties(test_fleet_checkpoint PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_reduce_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_reduce PROPERTIES TIMEOUT 120) + set_tests_properties(test_allreduce PROPERTIES TIMEOUT 120) + set_tests_properties(test_allgather PROPERTIES TIMEOUT 120) + set_tests_properties(test_launch PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_scatter_api PROPERTIES TIMEOUT 120) + set_tests_properties(test_collective_barrier_api PROPERTIES TIMEOUT 120) +endif() + +if (NOT WIN32) +set_tests_properties(test_multiprocess_reader_exception PROPERTIES TIMEOUT 120) +set_tests_properties(test_layers PROPERTIES TIMEOUT 120) +set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 120) +set_tests_properties(test_ir_memory_optimize_transformer PROPERTIES TIMEOUT 120) +set_tests_properties(test_fleet_utils PROPERTIES TIMEOUT 120) + +endif() + +# setting timeout value as 15S +set_tests_properties(test_sync_batch_norm_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_cross_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_lod_tensor_to_selected_rows PROPERTIES TIMEOUT 120) +set_tests_properties(test_lstm_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_star_gan_with_gradient_penalty PROPERTIES TIMEOUT 120) +set_tests_properties(test_warpctc_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_bicubic_interp_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_deformable_conv_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_nearest_interp_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_profiler PROPERTIES TIMEOUT 120) +set_tests_properties(test_inplace_softmax_with_cross_entropy PROPERTIES TIMEOUT 120) +set_tests_properties(test_cross_entropy2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_sequence_conv PROPERTIES TIMEOUT 120) +set_tests_properties(test_fetch_unmerged PROPERTIES TIMEOUT 120) +set_tests_properties(test_gru_unit_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_activation_nn_grad PROPERTIES TIMEOUT 120) +set_tests_properties(test_empty_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_transformer PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_div_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_regularizer_api PROPERTIES TIMEOUT 120) +set_tests_properties(test_multiclass_nms_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_ir_memory_optimize_nlp PROPERTIES TIMEOUT 120) +set_tests_properties(test_add_reader_dependency PROPERTIES TIMEOUT 120) +set_tests_properties(test_bilateral_slice_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_buffer_shared_memory_reuse_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_fuse_relu_depthwise_conv_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_fleet_util PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_transformer_sorted_gradient PROPERTIES TIMEOUT 120) +set_tests_properties(test_matmul_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_nearest_interp_v2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_trilinear_interp_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_bicubic_interp_v2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_gather_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_static_save_load PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_selected_rows_to_lod_tensor PROPERTIES TIMEOUT 120) +set_tests_properties(test_index_select_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_ssa_graph_inference_feed_partial_data PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_crf PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_save_load PROPERTIES TIMEOUT 120) +set_tests_properties(test_concat_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_partial_eager_deletion_transformer PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_seresnext_with_reduce_gpu PROPERTIES TIMEOUT 120) +set_tests_properties(test_dropout_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_profiler PROPERTIES TIMEOUT 120) +set_tests_properties(test_argsort_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_sequence_pool PROPERTIES TIMEOUT 120) +set_tests_properties(test_gather_nd_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_nn_grad PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_sub_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_row_conv_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_seresnext_with_fuse_all_reduce_gpu PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_min_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_nan_inf PROPERTIES TIMEOUT 120) +set_tests_properties(test_deformable_conv_v1_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_transformer_auto_growth PROPERTIES TIMEOUT 120) +set_tests_properties(test_py_reader_using_executor PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_add_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_weight_decay PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_ptb_rnn_sorted_gradient PROPERTIES TIMEOUT 120) +set_tests_properties(test_crop_tensor_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_eager_deletion_lstm_net PROPERTIES TIMEOUT 120) +set_tests_properties(test_parallel_executor_mnist PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_ptb_rnn PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_save_load_v2 PROPERTIES TIMEOUT 120) +set_tests_properties(test_conv3d_transpose_part2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_prroi_pool_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_multiprocess_dataloader_iterable_dataset_static PROPERTIES TIMEOUT 120) +set_tests_properties(test_lstm_cudnn_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_stack_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_bilinear_interp_v2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_sequence_concat PROPERTIES TIMEOUT 120) +set_tests_properties(test_deformable_psroi_pooling PROPERTIES TIMEOUT 120) +set_tests_properties(test_trilinear_interp_v2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_static_runner_mnist PROPERTIES TIMEOUT 120) +set_tests_properties(test_masked_select_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_sigmoid_cross_entropy_with_logits_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_optimizer_v2 PROPERTIES TIMEOUT 120) +set_tests_properties(test_partial_sum_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_cond PROPERTIES TIMEOUT 120) +set_tests_properties(test_space_to_depth_op PROPERTIES TIMEOUT 200) +set_tests_properties(test_dyn_rnn PROPERTIES TIMEOUT 120) +set_tests_properties(test_sgd_op PROPERTIES TIMEOUT 250) +set_tests_properties(test_parallel_executor_seresnext_base_gpu PROPERTIES TIMEOUT 120) +set_tests_properties(test_norm_nn_grad PROPERTIES TIMEOUT 120) +set_tests_properties(test_matrix_nms_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_generator_dataloader PROPERTIES TIMEOUT 120) +set_tests_properties(test_partial_concat_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_fuse_optimizer_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_softmax_with_cross_entropy_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_reduce_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_adam_optimizer_fp32_fp64 PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_nn_grad PROPERTIES TIMEOUT 120) +set_tests_properties(test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_conv_nn_grad PROPERTIES TIMEOUT 120) +set_tests_properties(test_conv3d_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_program_prune_backward PROPERTIES TIMEOUT 120) +set_tests_properties(test_group_norm_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_optimizer PROPERTIES TIMEOUT 120) +set_tests_properties(test_pool2d_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_transpose_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_eager_deletion_gru_net PROPERTIES TIMEOUT 120) +set_tests_properties(test_activation_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_normal PROPERTIES TIMEOUT 120) +set_tests_properties(test_lstmp_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_bilinear_interp_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_decoupled_py_reader PROPERTIES TIMEOUT 120) +set_tests_properties(test_fuse_bn_act_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_conv2d_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_elementwise_mul_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_cyclic_cifar_dataset PROPERTIES TIMEOUT 120) +set_tests_properties(test_fuse_all_reduce_pass PROPERTIES TIMEOUT 120) +set_tests_properties(test_dygraph_multi_forward PROPERTIES TIMEOUT 120) +set_tests_properties(test_norm_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_ocr_attention_model PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_mnist PROPERTIES TIMEOUT 120) +set_tests_properties(test_fused_elemwise_activation_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_gru_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_layer_norm_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_pool3d_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_regularizer PROPERTIES TIMEOUT 120) +set_tests_properties(test_imperative_resnet PROPERTIES TIMEOUT 200) +set_tests_properties(test_imperative_resnet_sorted_gradient PROPERTIES TIMEOUT 200) +set_tests_properties(test_imperative_se_resnext PROPERTIES TIMEOUT 200) +set_tests_properties(test_matmul_v2_op PROPERTIES TIMEOUT 120) +set_tests_properties(test_slice_op 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) +endif() +if(WITH_GPU AND NOT WIN32) + set_tests_properties(test_collective_allgather_api PROPERTIES TIMEOUT 120) +endif() +if(WITH_GPU) + set_tests_properties(test_imperative_auto_mixed_precision PROPERTIES TIMEOUT 120) endif() 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 629716cc315580a21a2eb0b140ed015402eebf13..e264d6d2a6f518b5dac55c1de06a5c7b856dc78e 100644 --- a/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/dygraph_to_static/CMakeLists.txt @@ -8,3 +8,15 @@ endforeach(TEST_OP) set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900) set_tests_properties(test_tsm PROPERTIES TIMEOUT 900) set_tests_properties(test_yolov3 PROPERTIES TIMEOUT 900) +set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 120) +set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 120) +set_tests_properties(test_cycle_gan PROPERTIES TIMEOUT 120) +set_tests_properties(test_lac PROPERTIES TIMEOUT 120) +set_tests_properties(test_bert PROPERTIES TIMEOUT 120) +set_tests_properties(test_basic_api_transformation PROPERTIES TIMEOUT 120) +set_tests_properties(test_resnet PROPERTIES TIMEOUT 120) +set_tests_properties(test_reinforcement_learning PROPERTIES TIMEOUT 120) +set_tests_properties(test_transformer PROPERTIES TIMEOUT 200) +set_tests_properties(test_mnist PROPERTIES TIMEOUT 120) +set_tests_properties(test_bmn PROPERTIES TIMEOUT 120) +set_tests_properties(test_resnet_v2 PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/unittests/ir/inference/CMakeLists.txt b/python/paddle/fluid/tests/unittests/ir/inference/CMakeLists.txt index e958ba75638fc28b1ad816371ed3bc529957f944..b667f522c094bc60a1bca8ec6e24c750296af1b8 100644 --- a/python/paddle/fluid/tests/unittests/ir/inference/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/ir/inference/CMakeLists.txt @@ -28,3 +28,6 @@ endif() foreach(target ${TEST_INFERENCE_IR_PASSES}) py_test_modules(${target} MODULES ${target}) endforeach() +if(WITH_GPU AND TENSORRT_FOUND) +set_tests_properties(test_trt_subgraph_pass PROPERTIES TIMEOUT 120) +endif() diff --git a/python/paddle/fluid/tests/unittests/mkldnn/CMakeLists.txt b/python/paddle/fluid/tests/unittests/mkldnn/CMakeLists.txt index f71e04c09aa38b8cf7b3a167b84d4dc0e6cc3ec7..51ec17f62d9ac6fd7578fb72164499ea92dec25a 100644 --- a/python/paddle/fluid/tests/unittests/mkldnn/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/mkldnn/CMakeLists.txt @@ -4,3 +4,4 @@ string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") foreach(TEST_OP ${TEST_OPS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP}) endforeach(TEST_OP) +set_tests_properties(test_concat_mkldnn_op PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/unittests/rnn/CMakeLists.txt b/python/paddle/fluid/tests/unittests/rnn/CMakeLists.txt index f71e04c09aa38b8cf7b3a167b84d4dc0e6cc3ec7..0606594c8c25f3b8490ddfbe590b020fe9a3cb84 100644 --- a/python/paddle/fluid/tests/unittests/rnn/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/rnn/CMakeLists.txt @@ -4,3 +4,5 @@ string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") foreach(TEST_OP ${TEST_OPS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP}) endforeach(TEST_OP) +set_tests_properties(test_rnn_nets_static PROPERTIES TIMEOUT 120) +set_tests_properties(test_rnn_nets PROPERTIES TIMEOUT 120) diff --git a/python/paddle/fluid/tests/unittests/sequence/CMakeLists.txt b/python/paddle/fluid/tests/unittests/sequence/CMakeLists.txt index f71e04c09aa38b8cf7b3a167b84d4dc0e6cc3ec7..c6ba82f8cbf0fe686851feefdcc04142611b6b1f 100644 --- a/python/paddle/fluid/tests/unittests/sequence/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/sequence/CMakeLists.txt @@ -4,3 +4,6 @@ string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") foreach(TEST_OP ${TEST_OPS}) py_test_modules(${TEST_OP} MODULES ${TEST_OP}) endforeach(TEST_OP) +set_tests_properties(test_sequence_conv PROPERTIES TIMEOUT 120) +set_tests_properties(test_sequence_concat PROPERTIES TIMEOUT 120) +set_tests_properties(test_sequence_pool PROPERTIES TIMEOUT 120) diff --git a/python/paddle/reader/tests/CMakeLists.txt b/python/paddle/reader/tests/CMakeLists.txt index 969718d3b1837bde2e953778be9a1390cc53bb3d..a6ac586b680cfc2f5cc184a81ef6f7ddc1d963f2 100644 --- a/python/paddle/reader/tests/CMakeLists.txt +++ b/python/paddle/reader/tests/CMakeLists.txt @@ -1 +1,2 @@ py_test(decorator_test SRCS decorator_test.py) +set_tests_properties(decorator_test PROPERTIES TIMEOUT 120) diff --git a/python/paddle/tests/CMakeLists.txt b/python/paddle/tests/CMakeLists.txt index 9f64a6d2b7b677b57fe47199483b979540f37474..50466be0c1b1f93cac28313b99e0bcff570cecec 100644 --- a/python/paddle/tests/CMakeLists.txt +++ b/python/paddle/tests/CMakeLists.txt @@ -39,5 +39,14 @@ foreach(src ${DIST_TEST_OPS}) message(STATUS ${src}) py_dist_test(${src} SRCS ${src}.py) endforeach() - -set_tests_properties(test_pretrained_model PROPERTIES TIMEOUT 600) +set_tests_properties(test_dataset_cifar PROPERTIES TIMEOUT 120) +set_tests_properties(test_pretrained_model PROPERTIES TIMEOUT 120) +set_tests_properties(test_model PROPERTIES TIMEOUT 120) +set_tests_properties(test_dataset_movielens PROPERTIES TIMEOUT 120) +set_tests_properties(test_datasets PROPERTIES TIMEOUT 120) +set_tests_properties(test_dataset_wmt PROPERTIES TIMEOUT 120) +set_tests_properties(test_vision_models PROPERTIES TIMEOUT 120) +set_tests_properties(test_dataset_uci_housing PROPERTIES TIMEOUT 120) +set_tests_properties(test_dataset_imdb PROPERTIES TIMEOUT 120) +set_tests_properties(test_callbacks PROPERTIES TIMEOUT 120) +set_tests_properties(test_pretrained_model PROPERTIES TIMEOUT 600)