Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
file ( GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py" )
string ( REPLACE ".py" "" TEST_OPS "${TEST_OPS}" )
set ( GC_ENVS FLAGS_eager_delete_tensor_gb=0.0 FLAGS_fast_eager_deletion_mode=1 FLAGS_memory_fraction_of_eager_deletion=1.0 )
set ( dist_ENVS http_proxy= "" https_proxy= "" )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
file ( GLOB DIST_TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_dist_*.py" )
if ( NOT WITH_NCCL )
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_mnist_dgc_nccl" )
endif ( )
string ( REPLACE ".py" "" DIST_TEST_OPS "${DIST_TEST_OPS}" )
list ( APPEND DIST_TEST_OPS test_parallel_dygraph_mnist )
list ( APPEND DIST_TEST_OPS test_parallel_dygraph_se_resnext )
list ( APPEND DIST_TEST_OPS test_listen_and_serv_op )
set ( MIXED_DIST_TEST_OPS ${ DIST_TEST_OPS } )
#remove distribute unittests.
list ( APPEND MIXED_DIST_TEST_OPS test_dgc_op )
list ( APPEND MIXED_DIST_TEST_OPS test_dgc_momentum_op )
list ( APPEND MIXED_DIST_TEST_OPS test_dgc_optimizer )
list ( APPEND MIXED_DIST_TEST_OPS test_simple_dist_transpiler )
list ( APPEND MIXED_DIST_TEST_OPS test_nce_remote_table_op )
list ( APPEND MIXED_DIST_TEST_OPS test_recv_save_op )
list ( APPEND MIXED_DIST_TEST_OPS test_transpiler_ops )
list ( APPEND MIXED_DIST_TEST_OPS test_lookup_remote_table_op )
list ( APPEND MIXED_DIST_TEST_OPS test_launch )
list ( APPEND MIXED_DIST_TEST_OPS test_launch_ps )
list ( APPEND MIXED_DIST_TEST_OPS test_communicator_async )
list ( APPEND MIXED_DIST_TEST_OPS test_communicator_geo )
list ( APPEND MIXED_DIST_TEST_OPS test_communicator_half_async )
list ( APPEND MIXED_DIST_TEST_OPS test_communicator_sync )
list ( APPEND MIXED_DIST_TEST_OPS test_fleet_api_input )
list ( APPEND MIXED_DIST_TEST_OPS test_fleet_checkpoint )
list ( APPEND MIXED_DIST_TEST_OPS test_collective_optimizer )
foreach ( TEST_OP ${ MIXED_DIST_TEST_OPS } )
list ( REMOVE_ITEM TEST_OPS ${ TEST_OP } )
endforeach ( )
if ( NOT WITH_GPU OR WIN32 )
LIST ( REMOVE_ITEM TEST_OPS test_c_comm_init_all_op )
LIST ( REMOVE_ITEM TEST_OPS test_allgather )
LIST ( REMOVE_ITEM TEST_OPS test_allreduce )
LIST ( REMOVE_ITEM TEST_OPS test_broadcast )
LIST ( REMOVE_ITEM TEST_OPS test_reducescatter )
LIST ( REMOVE_ITEM TEST_OPS test_reducescatter_api )
endif ( )
if ( WIN32 )
LIST ( REMOVE_ITEM TEST_OPS test_boxps )
LIST ( REMOVE_ITEM TEST_OPS test_paddlebox_datafeed )
LIST ( REMOVE_ITEM TEST_OPS test_trainer_desc )
LIST ( REMOVE_ITEM TEST_OPS test_multiprocess_reader_exception )
LIST ( REMOVE_ITEM TEST_OPS test_avoid_twice_initialization )
endif ( )
if ( NOT ${ WITH_GPU } )
LIST ( REMOVE_ITEM TEST_OPS test_conv2d_fusion_op )
LIST ( REMOVE_ITEM TEST_OPS test_rank_attention_op ) # TODO(shenliang03): rank_attention_op support CPU device in future
LIST ( REMOVE_ITEM TEST_OPS test_parallel_dygraph_mnist ) # TODO(Yancey1989): parallel dygraph support CPU device in future
elseif ( ${ CUDNN_VERSION } VERSION_LESS 7100 )
LIST ( REMOVE_ITEM TEST_OPS test_conv2d_fusion_op )
endif ( )
if ( NOT WITH_GPU OR WIN32 )
LIST ( REMOVE_ITEM TEST_OPS test_pipeline )
LIST ( REMOVE_ITEM TEST_OPS test_boxps )
LIST ( REMOVE_ITEM TEST_OPS test_paddlebox_datafeed )
endif ( )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
list ( REMOVE_ITEM TEST_OPS test_seq_concat_op ) # FIXME(helin): https://github.com/PaddlePaddle/Paddle/issues/8290
list ( REMOVE_ITEM TEST_OPS test_lstm_unit_op ) # # FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/5185
list ( REMOVE_ITEM TEST_OPS test_cond_op ) # FIXME(qijun): https://github.com/PaddlePaddle/Paddle/issues/5101#issuecomment-339814957
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
list ( REMOVE_ITEM TEST_OPS op_test ) # op_test is a helper python file, not a test
list ( REMOVE_ITEM TEST_OPS decorator_helper ) # decorator_helper is a helper python file, not a test
if ( APPLE )
if ( NOT WITH_DISTRIBUTE )
list ( REMOVE_ITEM TEST_OPS test_desc_clone )
list ( REMOVE_ITEM TEST_OPS test_program_code )
endif ( NOT WITH_DISTRIBUTE )
message ( WARNING "These tests has been disabled in OSX before being fixed:\n test_fuse_elewise_add_act_pass \n test_detection_map_op \n test_dist_se_resnext_*" )
# this op is not support on mac
list ( REMOVE_ITEM TEST_OPS test_fusion_seqexpand_concat_fc_op )
list ( REMOVE_ITEM TEST_OPS test_detection_map_op )
list ( REMOVE_ITEM TEST_OPS test_fuse_elewise_add_act_pass )
endif ( )
if ( NOT WITH_MKLML )
# this op is not support on openblas
list ( REMOVE_ITEM TEST_OPS test_fusion_seqexpand_concat_fc_op )
endif ( )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
if ( NOT WITH_MKL OR NOT WITH_AVX )
list ( REMOVE_ITEM TEST_OPS test_match_matrix_tensor_op )
list ( REMOVE_ITEM TEST_OPS test_var_conv_2d )
endif ( )
if ( WITH_COVERAGE OR NOT WITH_AVX OR WIN32 )
list ( REMOVE_ITEM TEST_OPS test_pyramid_hash_op )
list ( REMOVE_ITEM TEST_OPS test_fleet_pyramid_hash )
endif ( )
Extend Matmul to support matrix multiplication with multiple heads (#18570)
* extend matmul op to support multiple head multiplication
With the support of multiple head, the multiplication of two big matrixes is
split into multiplication of several (head_number) small matrixes. e.g. if
Mat A is [3, 24] and Mat B is [24, 4], when multiple A and B with head_number
as 4, Mat A will be split as 4 matrix of [3, 6] and Mat B will be 4 matrix of
[6, 4]. The result of final matrix will be 4 matrix of [3, 4], i.e. [3, 16].
6 years ago
if ( WITH_GPU OR NOT WITH_MKLML )
# matmul with multiple heads need MKL support
LIST ( REMOVE_ITEM TEST_OPS test_matmul_op_with_head )
endif ( )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
function ( py_test_modules TARGET_NAME )
if ( WITH_TESTING )
set ( options SERIAL )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
set ( oneValueArgs "" )
set ( multiValueArgs MODULES DEPS ENVS )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
cmake_parse_arguments ( py_test_modules "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ ARGN } )
if ( WITH_COVERAGE )
add_test ( NAME ${ TARGET_NAME }
C O M M A N D $ { C M A K E _ C O M M A N D } - E e n v P Y T H O N P A T H = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n $ { p y _ t e s t _ m o d u l e s _ E N V S }
C O V E R A G E _ F I L E = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n - c o v e r a g e . d a t a
$ { P Y T H O N _ E X E C U T A B L E } - m c o v e r a g e r u n - - b r a n c h - p $ { P A D D L E _ S O U R C E _ D I R } / t o o l s / t e s t _ r u n n e r . p y $ { p y _ t e s t _ m o d u l e s _ M O D U L E S }
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } )
else ( )
add_test ( NAME ${ TARGET_NAME }
C O M M A N D $ { C M A K E _ C O M M A N D } - E e n v P Y T H O N P A T H = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n $ { p y _ t e s t _ m o d u l e s _ E N V S }
$ { P Y T H O N _ E X E C U T A B L E } $ { P A D D L E _ S O U R C E _ D I R } / t o o l s / t e s t _ r u n n e r . p y $ { p y _ t e s t _ m o d u l e s _ M O D U L E S }
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } )
endif ( )
if ( py_test_modules_SERIAL )
set_property ( TEST ${ TARGET_NAME } PROPERTY RUN_SERIAL 1 )
endif ( )
set_tests_properties ( ${ TARGET_NAME } PROPERTIES TIMEOUT 350 )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
endif ( )
endfunction ( )
function ( bash_test_modules TARGET_NAME )
if ( NOT WITH_TESTING )
return ( )
endif ( )
set ( options SERIAL )
set ( oneValueArgs "" )
set ( multiValueArgs MODULES DEPS ENVS LABELS )
cmake_parse_arguments ( bash_test_modules "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ ARGN } )
set ( timeout 350 )
if ( ${ bash_test_modules_TIMEOUT } )
set ( timeout ${ bash_test_modules_TIMEOUT } )
endif ( )
if ( WITH_COVERAGE )
add_test ( NAME ${ TARGET_NAME }
C O M M A N D $ { C M A K E _ C O M M A N D } - E e n v P Y T H O N P A T H = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n
T E S T _ T A R G E T _ N A M E = $ { T A R G E T _ N A M E } T E S T _ T I M E O U T = $ { t i m e o u t } $ { b a s h _ t e s t _ m o d u l e s _ E N V S }
W I T H _ C O V E R A G E = O N C O V E R A G E _ F I L E = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n - c o v e r a g e . d a t a
b a s h $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { b a s h _ t e s t _ m o d u l e s _ M O D U L E S }
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } )
else ( )
add_test ( NAME ${ TARGET_NAME }
C O M M A N D $ { C M A K E _ C O M M A N D } - E e n v P Y T H O N P A T H = $ { P A D D L E _ B I N A R Y _ D I R } / p y t h o n
T E S T _ T A R G E T _ N A M E = $ { T A R G E T _ N A M E } T E S T _ T I M E O U T = $ { t i m e o u t } $ { b a s h _ t e s t _ m o d u l e s _ E N V S }
b a s h $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } / $ { b a s h _ t e s t _ m o d u l e s _ M O D U L E S }
W O R K I N G _ D I R E C T O R Y $ { C M A K E _ C U R R E N T _ B I N A R Y _ D I R } )
endif ( )
if ( bash_test_modules_SERIAL )
set_property ( TEST ${ TARGET_NAME } PROPERTY RUN_SERIAL 1 )
endif ( )
if ( bash_test_modules_LABELS )
set_tests_properties ( ${ TARGET_NAME } PROPERTIES TIMEOUT ${ timeout } LABELS ${ bash_test_modules_LABELS } )
else ( )
set_tests_properties ( ${ TARGET_NAME } PROPERTIES TIMEOUT ${ timeout } )
endif ( )
endfunction ( )
Run Python OP tests in a single Python process to improve test time. (#8362)
Currently, our tests run with 2 GPUs, the init time is absurdly long:
about 4s for each process. Currently, we run each OP test on
different processes. This PR:
1. create cmake function py_test_modules which will generate the
Makefile that runs a list of Python unittest module in a single Python
process.
2. move all "python unittest compatible" (e.g., used the unittest
package, not just a regular python file). from fluid/tests to
fluid/tests/unittests.
3. cmake now will run all OP tests in fluid/tests/unittests in a
single process, except the time-consuming tests, they are separated
into different processes to utilize parallelism. Please make sure to
use the unittest package if you put the python test file in
fluid/tests/unittests
4. remove all exit(0) from fluid/tests/unittests/*.py, exit(0) is used
to disable unittest, we can not do it when running all tests in a
single process since it will terminate the process without running the
other tests. Instead, the test is disabled in
fluid/tests/unittests/CMakeLists.txt. FIXME is added for each disabled
item. Please disable the unittest from
fluid/tests/unittests/CMakeLists.txt, instead of adding exit(0) to the
Python file, for all Python file in fluid/tests/unittests/.
5. add an option WITH_FAST_BUNDLE_TEST. When OFF, will run the unit
tests in separate process so that they can be tested individually.
7 years ago
list ( REMOVE_ITEM TEST_OPS test_warpctc_op )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_crf )
list ( REMOVE_ITEM TEST_OPS test_data_norm_op )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_feed )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_transformer )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_transformer_auto_growth )
list ( REMOVE_ITEM TEST_OPS test_bilinear_interp_op )
list ( REMOVE_ITEM TEST_OPS test_nearest_interp_op )
list ( REMOVE_ITEM TEST_OPS test_imperative_resnet )
list ( REMOVE_ITEM TEST_OPS test_imperative_resnet_sorted_gradient )
list ( REMOVE_ITEM TEST_OPS test_imperative_mnist_sorted_gradient )
list ( REMOVE_ITEM TEST_OPS test_imperative_se_resnext )
list ( REMOVE_ITEM TEST_OPS test_imperative_mnist )
list ( REMOVE_ITEM TEST_OPS test_ir_memory_optimize_transformer )
list ( REMOVE_ITEM TEST_OPS test_layers )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_seresnext_base_cpu )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_seresnext_with_reduce_cpu )
list ( REMOVE_ITEM TEST_OPS test_parallel_executor_seresnext_with_fuse_all_reduce_cpu )
list ( REMOVE_ITEM TEST_OPS test_imperative_ocr_attention_model )
list ( REMOVE_ITEM TEST_OPS test_async_ssa_graph_executor_mnist )
list ( REMOVE_ITEM TEST_OPS test_install_check )
list ( REMOVE_ITEM TEST_OPS test_basic_gru_api )
list ( REMOVE_ITEM TEST_OPS test_basic_gru_unit_op )
list ( REMOVE_ITEM TEST_OPS test_basic_lstm_api )
list ( REMOVE_ITEM TEST_OPS test_basic_lstm_unit_op )
Refactor dygraph (#19107)
* refactor dygraph,test=develop
* fix failed unittest,test=develop
* polish code,test=develop
* check windows ci error,test=develop
try to fix windows ci error by np.allclose,test=develop
* polish vlog and profiler, test=develop
* try to fix preceding ops order,test=develop
* test transformer in windows ci, test=develop
* use python c-api to speed up tracer.trace,test=develop
* test=develop, fix docker with paddle nccl problem
* test=develop, add ut for debug string and gradient_accumulator
* test=develop, add tests for layer/gradient_accumulator/prepared_op
* test=develop, fix complie error for test_prepared_op
* test=develop, add more ut for dygraph
* test=develop, create API.spec for dygraph api change
* test=develop, refoctor name to make it easier to understand
* test=develop, refoctor name to make it easier to understand
* test=develop, fix multi-gpu failed problem , add Tracer tests, change PADDLEENFORCE to PADDLEENFORCE_EQ
* test=develop, fix ut failed on parallel se-resnext
* test=develop, change one more PADDLE_ENFORCE
6 years ago
list ( REMOVE_ITEM TEST_OPS test_imperative_debug_string )
list ( REMOVE_ITEM TEST_OPS test_fuse_bn_act_pass )
Implement StaticModelRunner to support dygraph fine-tune static graph pre-training model (#23171)
* static model runner basic implement, test=develop
* add run program op to execute loaded program, test=develop
* refactor static model runner & run program op, test=develop
* reset engine.cc to resolve conflict
* adapt the change of dygraph double grad, test=develop
* refactor impl to solve control flow error, test=develop
* clear debug code, test=develop
* fix ci str compatible error & checkout dygraph grad maker & add example, test=develop
* hide api & add op test, test=develop
* fix run program op test places error, test=develop
* fix program by review comment, test=develop
* delete change var desc name, test=develop
* fix other program by review comment, test=develop
* remove _static_graph_guard, test=develop
* add selectedrows test, test=develop
* remove desc parser, test=develop
* fix detail program, test=develop
* change socpe create & add test, test=develop
5 years ago
list ( REMOVE_ITEM TEST_OPS test_imperative_static_runner_mnist )
list ( REMOVE_ITEM TEST_OPS test_imperative_static_runner_while )
# disable this unittest temporarily
list ( REMOVE_ITEM TEST_OPS test_imperative_data_loader_exception )
if ( APPLE OR WIN32 )
list ( REMOVE_ITEM TEST_OPS test_dataset )
list ( REMOVE_ITEM TEST_OPS test_dataset_dataloader )
list ( REMOVE_ITEM TEST_OPS test_imperative_data_loader_base )
# list(REMOVE_ITEM TEST_OPS test_imperative_data_loader_exception)
Speeding up dygraph DataLoader with multiprocessing (#21762)
* add multiprocess for dygraph data loader, test=develop
* polish code & add safe gurad, test=develop
* refactor dygraph dataloader & add signal handler, test=develop
* fix member initializer compile error on ci, test=develop
* fix member initializer compile error one more, test=develop
* remove useless config, test=develop
* skip windows incompatible problem, test=develop
* add unittest for coverage, test=coverage
* add more exception unittest case, test=develop
* deal with signal handler coverage, test=develop
* polish code & add signal handler tests, test=develop
* deal with coverage ci problem, test=develop
* split data loader test & coverage ci fix, test=develop
* remove test_imperative_data_loader_with_exception, test=develop
* remove singal process except test case, test=develop
* add exception tests again & remove sample list test, test=develop
* split normal and exception unittests to diff class, test=develop
* polish doc for use_multiprocess effect in static mode, test=develop
5 years ago
list ( REMOVE_ITEM TEST_OPS test_imperative_data_loader_process )
Speed up dygraph DataLoader based on shared memory and LoDTensor serialization (#22541)
* add lodtensor share memory & serialization, test=develop
* fix windows compile error, test=develop
* deal vartype pickle & fix unittest matching error message, test=develop
* update timeout variable name, test=develop
* refactor memory map implement, test=develop
* clear mmap file discripter when exit unexpectedly, test=develop
* remove the child process fd in advance, test=develop
* remove mmap fds after Queue.put in child process, test=develop
* add hard unittests for register exit func, test=develop
* fix python2 compatibility problem in unittest, test=develop
* fix exception unittest error, test=develop
* polish code based review comment, test=develop
5 years ago
list ( REMOVE_ITEM TEST_OPS test_imperative_data_loader_fds_clear )
list ( REMOVE_ITEM TEST_OPS test_imperative_data_loader_exit_func )
Speeding up dygraph DataLoader with multiprocessing (#21762)
* add multiprocess for dygraph data loader, test=develop
* polish code & add safe gurad, test=develop
* refactor dygraph dataloader & add signal handler, test=develop
* fix member initializer compile error on ci, test=develop
* fix member initializer compile error one more, test=develop
* remove useless config, test=develop
* skip windows incompatible problem, test=develop
* add unittest for coverage, test=coverage
* add more exception unittest case, test=develop
* deal with signal handler coverage, test=develop
* polish code & add signal handler tests, test=develop
* deal with coverage ci problem, test=develop
* split data loader test & coverage ci fix, test=develop
* remove test_imperative_data_loader_with_exception, test=develop
* remove singal process except test case, test=develop
* add exception tests again & remove sample list test, test=develop
* split normal and exception unittests to diff class, test=develop
* polish doc for use_multiprocess effect in static mode, test=develop
5 years ago
list ( REMOVE_ITEM TEST_OPS test_imperative_signal_handler )
list ( REMOVE_ITEM TEST_OPS test_multiprocess_dataloader_static )
list ( REMOVE_ITEM TEST_OPS test_multiprocess_dataloader_dynamic )
list ( REMOVE_ITEM TEST_OPS test_multiprocess_dataloader_exception )
endif ( )
if ( NOT WITH_GPU OR WIN32 OR APPLE )
list ( REMOVE_ITEM TEST_OPS test_build_strategy_fusion_group_pass )
endif ( )
# Some ops need to check results when gc is enabled
# Currently, only ops that register NoNeedBufferVarsInference need to do this test
set ( TEST_OPS_WITH_GC
t e s t _ a f f i n e _ c h a n n e l _ o p
t e s t _ c o n c a t _ o p
t e s t _ e l e m e n t w i s e _ a d d _ o p
t e s t _ e l e m e n t w i s e _ s u b _ o p
t e s t _ f i l l _ z e r o s _ l i k e 2 _ o p
t e s t _ g a t h e r _ o p
t e s t _ g a t h e r _ n d _ o p
t e s t _ l i n e a r _ c h a i n _ c r f _ o p
t e s t _ l o d _ r e s e t _ o p
t e s t _ l o o k u p _ t a b l e _ o p
t e s t _ m e a n _ o p
t e s t _ p a d 2 d _ o p
t e s t _ s c a t t e r _ o p
t e s t _ s e q u e n c e _ c o n c a t
t e s t _ s e q u e n c e _ c o n v
t e s t _ s e q u e n c e _ p o o l
t e s t _ s e q u e n c e _ e x p a n d _ a s
t e s t _ s e q u e n c e _ e x p a n d
t e s t _ s e q u e n c e _ p a d _ o p
t e s t _ s e q u e n c e _ u n p a d _ o p
t e s t _ s e q u e n c e _ s c a t t e r _ o p
t e s t _ s e q u e n c e _ s l i c e _ o p
t e s t _ s l i c e _ o p
t e s t _ s p a c e _ t o _ d e p t h _ o p
t e s t _ s q u a r e d _ l 2 _ d i s t a n c e _ o p )
foreach ( TEST_OP ${ TEST_OPS_WITH_GC } )
list ( REMOVE_ITEM TEST_OPS ${ TEST_OP } )
py_test_modules ( ${ TEST_OP } MODULES ${ TEST_OP } ENVS ${ GC_ENVS } )
endforeach ( )
foreach ( TEST_OP ${ TEST_OPS } )
py_test_modules ( ${ TEST_OP } MODULES ${ TEST_OP } )
endforeach ( TEST_OP )
py_test_modules ( test_adam_op_multi_thread MODULES test_adam_op ENVS FLAGS_inner_op_parallelism=4 )
py_test_modules ( test_warpctc_op MODULES test_warpctc_op )
py_test_modules ( test_bilinear_interp_op MODULES test_bilinear_interp_op ENVS ${ GC_ENVS } )
py_test_modules ( test_nearest_interp_op MODULES test_nearest_interp_op ENVS ${ GC_ENVS } )
py_test_modules ( test_imperative_resnet MODULES test_imperative_resnet ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 S E R I A L )
set_tests_properties ( test_imperative_resnet PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
py_test_modules ( test_imperative_resnet_sorted_gradient MODULES test_imperative_resnet_sorted_gradient ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 S E R I A L )
set_tests_properties ( test_imperative_resnet_sorted_gradient PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
py_test_modules ( test_imperative_mnist MODULES test_imperative_mnist ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 )
py_test_modules ( test_imperative_mnist_sorted_gradient MODULES test_imperative_mnist_sorted_gradient ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 )
py_test_modules ( test_imperative_se_resnext MODULES test_imperative_se_resnext ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 S E R I A L )
set_tests_properties ( test_imperative_se_resnext PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
py_test_modules ( test_imperative_ocr_attention_model MODULES test_imperative_ocr_attention_model ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 S E R I A L )
py_test_modules ( test_install_check MODULES test_install_check ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 S E R I A L )
set_tests_properties ( test_install_check PROPERTIES LABELS "RUN_TYPE=DIST" )
Refactor dygraph (#19107)
* refactor dygraph,test=develop
* fix failed unittest,test=develop
* polish code,test=develop
* check windows ci error,test=develop
try to fix windows ci error by np.allclose,test=develop
* polish vlog and profiler, test=develop
* try to fix preceding ops order,test=develop
* test transformer in windows ci, test=develop
* use python c-api to speed up tracer.trace,test=develop
* test=develop, fix docker with paddle nccl problem
* test=develop, add ut for debug string and gradient_accumulator
* test=develop, add tests for layer/gradient_accumulator/prepared_op
* test=develop, fix complie error for test_prepared_op
* test=develop, add more ut for dygraph
* test=develop, create API.spec for dygraph api change
* test=develop, refoctor name to make it easier to understand
* test=develop, refoctor name to make it easier to understand
* test=develop, fix multi-gpu failed problem , add Tracer tests, change PADDLEENFORCE to PADDLEENFORCE_EQ
* test=develop, fix ut failed on parallel se-resnext
* test=develop, change one more PADDLE_ENFORCE
6 years ago
py_test_modules ( test_imperative_debug_string MODULES test_imperative_debug_string ENVS FLAGS_dygraph_debug=1 )
Implement StaticModelRunner to support dygraph fine-tune static graph pre-training model (#23171)
* static model runner basic implement, test=develop
* add run program op to execute loaded program, test=develop
* refactor static model runner & run program op, test=develop
* reset engine.cc to resolve conflict
* adapt the change of dygraph double grad, test=develop
* refactor impl to solve control flow error, test=develop
* clear debug code, test=develop
* fix ci str compatible error & checkout dygraph grad maker & add example, test=develop
* hide api & add op test, test=develop
* fix run program op test places error, test=develop
* fix program by review comment, test=develop
* delete change var desc name, test=develop
* fix other program by review comment, test=develop
* remove _static_graph_guard, test=develop
* add selectedrows test, test=develop
* remove desc parser, test=develop
* fix detail program, test=develop
* change socpe create & add test, test=develop
5 years ago
py_test_modules ( test_imperative_static_runner_mnist MODULES test_imperative_static_runner_mnist ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 )
py_test_modules ( test_imperative_static_runner_while MODULES test_imperative_static_runner_while ENVS
F L A G S _ c u d n n _ d e t e r m i n i s t i c = 1 )
if ( WITH_DISTRIBUTE )
# FIXME(typhoonzero): add these tests back
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_transformer" )
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_transpiler" )
#not need
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_base" )
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_fleet_base" )
py_test_modules ( test_lookup_remote_table_op MODULES test_lookup_remote_table_op ENVS ${ dist_ENVS } )
py_test_modules ( test_nce_remote_table_op MODULES test_nce_remote_table_op ENVS ${ dist_ENVS } )
py_test_modules ( test_recv_save_op MODULES test_recv_save_op ENVS ${ dist_ENVS } )
py_test_modules ( test_transpiler_ops MODULES test_transpiler_ops ENVS ${ dist_ENVS } )
py_test_modules ( test_communicator_async MODULES test_communicator_async ENVS ${ dist_ENVS } )
py_test_modules ( test_communicator_geo MODULES test_communicator_geo ENVS ${ dist_ENVS } )
py_test_modules ( test_communicator_half_async MODULES test_communicator_half_async ENVS ${ dist_ENVS } FLAGS_communicator_send_queue_size=1 FLAGS_communicator_max_merge_var_num=1 )
py_test_modules ( test_communicator_sync MODULES test_communicator_sync ENVS ${ dist_ENVS } FLAGS_communicator_send_queue_size=1 FLAGS_communicator_max_merge_var_num=1 )
py_test_modules ( test_collective_optimizer MODULES test_collective_optimizer )
if ( WITH_DGC )
# if with dgc, test all dgc tests.
# NOTE. dist dgc tests is already in DIST_TEST_OPS
py_test_modules ( test_dgc_op MODULES test_dgc_op )
py_test_modules ( test_dgc_momentum_op MODULES test_dgc_momentum_op )
py_test_modules ( test_dgc_optimizer MODULES test_dgc_optimizer )
else ( )
# if not with dgc, must close all dgc tests
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_mnist_dgc_nccl" )
list ( REMOVE_ITEM DIST_TEST_OPS "test_dist_se_resnext_dgc" )
endif ( )
if ( NOT APPLE )
if ( WITH_GPU )
# NOTE. test_launch only work in gpu collective mode
bash_test_modules ( test_launch MODULES test_launch.sh ENVS PADDLE_BINARY_DIR= ${ PADDLE_BINARY_DIR } )
py_test_modules ( test_fleet_checkpoint MODULES test_fleet_checkpoint )
endif ( )
bash_test_modules ( test_launch_ps MODULES test_launch_ps.sh ENVS PADDLE_BINARY_DIR= ${ PADDLE_BINARY_DIR } )
set ( dist_ut_port 1000 )
foreach ( TEST_OP ${ DIST_TEST_OPS } )
bash_test_modules ( ${ TEST_OP } MODULES dist_test.sh SERIAL LABELS "RUN_TYPE=EXCLUSIVE" ENVS "PADDLE_DIST_UT_PORT=${dist_ut_port}" )
MATH ( EXPR dist_ut_port "${dist_ut_port}+50" )
endforeach ( TEST_OP )
endif ( NOT APPLE )
endif ( )
py_test_modules ( test_parallel_executor_crf MODULES test_parallel_executor_crf )
py_test_modules ( test_parallel_executor_transformer MODULES test_parallel_executor_transformer )
py_test_modules ( test_parallel_executor_transformer_auto_growth MODULES test_parallel_executor_transformer_auto_growth ENVS FLAGS_allocator_strategy=auto_growth )
py_test_modules ( test_layers MODULES test_layers ENVS FLAGS_cudnn_deterministic=1 )
py_test_modules ( test_parallel_executor_seresnext_base_cpu MODULES test_parallel_executor_seresnext_base_cpu )
py_test_modules ( test_parallel_executor_seresnext_with_reduce_cpu MODULES test_parallel_executor_seresnext_with_reduce_cpu )
py_test_modules ( test_parallel_executor_seresnext_with_fuse_all_reduce_cpu MODULES test_parallel_executor_seresnext_with_fuse_all_reduce_cpu )
py_test_modules ( test_data_norm_op MODULES test_data_norm_op )
py_test_modules ( test_fuse_bn_act_pass MODULES test_fuse_bn_act_pass ENVS FLAGS_cudnn_deterministic=1 FLAGS_cudnn_batchnorm_spatial_persistent=1 FLAGS_conv_workspace_size_limit=1000 )
if ( NOT WIN32 )
py_test_modules ( test_ir_memory_optimize_transformer MODULES test_ir_memory_optimize_transformer )
# FIXME(zcd): temporally disable test_parallel_executor_fetch_feed in Windows CI because of the random failure.
py_test_modules ( test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed )
set_tests_properties ( test_parallel_executor_fetch_feed PROPERTIES TIMEOUT 450 )
endif ( )
set_tests_properties ( test_parallel_executor_seresnext_base_cpu PROPERTIES TIMEOUT 900 )
set_tests_properties ( test_parallel_executor_seresnext_with_reduce_cpu PROPERTIES TIMEOUT 750 )
set_tests_properties ( test_parallel_executor_seresnext_with_fuse_all_reduce_cpu PROPERTIES TIMEOUT 750 )
add_subdirectory ( sequence )
add_subdirectory ( dygraph_to_static )
if ( WITH_MKLDNN )
add_subdirectory ( mkldnn )
endif ( )
add_subdirectory ( ir )
if ( WITH_TESTING )
set_property ( TEST test_parallel_executor_mnist PROPERTY ENVIRONMENT GLOG_vmodule=all_reduce_deps_pass=10 )
endif ( )
set_tests_properties ( test_parallel_executor_test_while_train test_parallel_executor_mnist
t e s t _ p a r a l l e l _ e x e c u t o r _ f e e d _ p e r s i s t a b l e _ v a r
t e s t _ b u f f e r _ s h a r e d _ m e m o r y _ r e u s e _ p a s s _ a n d _ f u s e _ o p t i m i z a t i o n _ o p _ p a s s
t e s t _ d a t a _ n o r m _ o p t e s t _ i m p e r a t i v e _ u s i n g _ n o n _ z e r o _ g p u t e s t _ f u s e _ b n _ a c t _ p a s s
Reader sequential and inference partial feed (#22699)
* sequential reader stage 1, test=develop
* fix ut, test=develop
* fix iterable=False reset bug, add some logs and polish code, test=develop
* inference feed partial data, test=develop
* Turn on keep_order=True for test, test=develop
* enhance ut to test more cases, test=develop
* test commit for reverting
* Revert "test commit for reverting", test=develop
This reverts commit 80aef42ef52ba1ee79627d6f663a624ec4f12f58.
* add ut of merged and unmerged results, test=develop
* add more uts for coverages and add en doc of api, test=develop
* follow comments, test=develop
* change note style, test=develop
5 years ago
t e s t _ o p t i m i z e r _ i n _ c o n t r o l _ f l o w t e s t _ d a t a l o a d e r _ k e e p _ o r d e r
t e s t _ d a t a l o a d e r _ u n k e e p _ o r d e r
t e s t _ p a r a l l e l _ e x e c u t o r _ i n f e r e n c e _ f e e d _ p a r t i a l _ d a t a
t e s t _ p a r a l l e l _ s s a _ g r a p h _ i n f e r e n c e _ f e e d _ p a r t i a l _ d a t a
Reader sequential and inference partial feed (#22699)
* sequential reader stage 1, test=develop
* fix ut, test=develop
* fix iterable=False reset bug, add some logs and polish code, test=develop
* inference feed partial data, test=develop
* Turn on keep_order=True for test, test=develop
* enhance ut to test more cases, test=develop
* test commit for reverting
* Revert "test commit for reverting", test=develop
This reverts commit 80aef42ef52ba1ee79627d6f663a624ec4f12f58.
* add ut of merged and unmerged results, test=develop
* add more uts for coverages and add en doc of api, test=develop
* follow comments, test=develop
* change note style, test=develop
5 years ago
t e s t _ f e t c h _ u n m e r g e d
Feature/mem opt pass refactor (#18735)
* first version memory optimize pass, test=develop
* remove move_tensor_sharing_pass, test=develop
* refine code comments, add unittests, test=develop
* turn off memory_optimize by default, test=develop
* follow huihuang's comments, test=develop
* follow chengduoZH's comments, test=develop
* fix grammar error, add const qualifier, fix pass_test exception message, test=develop
* follow chengduoZH's comments 2nd, test=develop
6 years ago
t e s t _ b u f f e r _ s h a r e d _ m e m o r y _ r e u s e _ p a s s P R O P E R T I E S L A B E L S " R U N _ T Y P E = D I S T " )
set_tests_properties ( test_parallel_executor_crf test_sync_batch_norm_op test_inplace_abn_op
t e s t _ p a r a l l e l _ e x e c u t o r _ s e r e s n e x t _ b a s e _ g p u
t e s t _ p a r a l l e l _ e x e c u t o r _ s e r e s n e x t _ w i t h _ r e d u c e _ g p u
t e s t _ p a r a l l e l _ e x e c u t o r _ s e r e s n e x t _ w i t h _ f u s e _ a l l _ r e d u c e _ g p u
P R O P E R T I E S L A B E L S " R U N _ T Y P E = D I S T " R U N _ S E R I A L T R U E )
if ( NOT WIN32 AND NOT APPLE )
set_tests_properties ( test_imperative_data_loader_base PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
set_tests_properties ( test_imperative_data_loader_fds_clear PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
# set_tests_properties(test_imperative_data_loader_exception PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE)
set_tests_properties ( test_multiprocess_dataloader_static PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
set_tests_properties ( test_multiprocess_dataloader_dynamic PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
set_tests_properties ( test_multiprocess_dataloader_exception PROPERTIES LABELS "RUN_TYPE=EXCLUSIVE" RUN_SERIAL TRUE )
endif ( )