From d913bc985c9577a95af5edec0f9fb73e0062cf74 Mon Sep 17 00:00:00 2001 From: Allen Guo Date: Mon, 17 Oct 2022 13:11:15 +0800 Subject: [PATCH] fix ut timeout 2 (#45233) (#46867) --- python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt | 8 ++++++-- python/paddle/fluid/tests/unittests/ipu/op_test_ipu.py | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt b/python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt index 2d2f1548f0..9572d236fe 100644 --- a/python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/ipu/CMakeLists.txt @@ -11,10 +11,14 @@ if(WITH_IPU) endforeach() set_tests_properties(test_conv_op_ipu PROPERTIES TIMEOUT 300) - set_tests_properties(test_elemetwise_x_op_ipu PROPERTIES TIMEOUT 300) - set_tests_properties(test_reduce_x_op_ipu PROPERTIES TIMEOUT 600) + set_tests_properties(test_elemetwise_x_op_ipu PROPERTIES TIMEOUT 600) + set_tests_properties(test_reduce_x_op_ipu PROPERTIES TIMEOUT 800) set_tests_properties(test_save_load_ipu PROPERTIES TIMEOUT 600) set_tests_properties(test_activation_ops_ipu PROPERTIES TIMEOUT 600) + set_tests_properties(test_unary_ops_ipu PROPERTIES TIMEOUT 600) + set_tests_properties(test_greater_op_ipu PROPERTIES TIMEOUT 400) + set_tests_properties(test_conv2d_transpose_op_ipu PROPERTIES TIMEOUT 300) + set_tests_properties(test_model_parallel_ipu PROPERTIES TIMEOUT 300) add_subdirectory(custom_ops) diff --git a/python/paddle/fluid/tests/unittests/ipu/op_test_ipu.py b/python/paddle/fluid/tests/unittests/ipu/op_test_ipu.py index 0226ca4ae7..d3473bc2b0 100644 --- a/python/paddle/fluid/tests/unittests/ipu/op_test_ipu.py +++ b/python/paddle/fluid/tests/unittests/ipu/op_test_ipu.py @@ -204,6 +204,14 @@ class IPUOpTest(IPUTest): if self.is_fp16_mode(exec_mode): ipu_strategy.set_precision_config(enable_fp16=True) IPUOpTest.cast_model_to_fp16(self.main_prog) + + # TODO(ipu) remove in the future version of popart + # keep the log clean, no side effects for tests without profiling + ipu_strategy.set_options( + {'engine_options': { + 'debug.retainDebugInformation': 'false' + }}) + program = paddle.static.IpuCompiledProgram( self.main_prog, ipu_strategy=ipu_strategy).compile(self.feed_list, -- GitLab