From 5e63038a3e4a149401a2f5daff8b04532a80ee2a Mon Sep 17 00:00:00 2001 From: Happyd99 <115518051+Happyd99@users.noreply.github.com> Date: Fri, 7 Apr 2023 10:22:13 +0800 Subject: [PATCH] [Test MV] standalone_executor (#52520) * [Test MV] standalone_executor * update as * update as * update codestyle --- python/paddle/fluid/tests/unittests/CMakeLists.txt | 2 -- test/CMakeLists.txt | 2 +- .../unittests => test}/standalone_executor/CMakeLists.txt | 0 .../standalone_executor/test_standalone_controlflow.py | 0 .../standalone_executor/test_standalone_cross_step_overlap.py | 0 .../test_standalone_cuda_graph_multi_stream.py | 4 +++- .../standalone_executor/test_standalone_custom_stream.py | 0 .../standalone_executor/test_standalone_executor.py | 0 .../test_standalone_executor_aot_choose_kernel.py | 0 .../standalone_executor/test_standalone_multiply_write.py | 0 .../standalone_executor/test_standalone_op_priority.py | 0 11 files changed, 4 insertions(+), 4 deletions(-) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/CMakeLists.txt (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_controlflow.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_cross_step_overlap.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_cuda_graph_multi_stream.py (97%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_custom_stream.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_executor.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_executor_aot_choose_kernel.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_multiply_write.py (100%) rename {python/paddle/fluid/tests/unittests => test}/standalone_executor/test_standalone_op_priority.py (100%) diff --git a/python/paddle/fluid/tests/unittests/CMakeLists.txt b/python/paddle/fluid/tests/unittests/CMakeLists.txt index a49e4780723..1eb9e24eef8 100755 --- a/python/paddle/fluid/tests/unittests/CMakeLists.txt +++ b/python/paddle/fluid/tests/unittests/CMakeLists.txt @@ -852,8 +852,6 @@ endif() add_subdirectory(ir) -add_subdirectory(standalone_executor) - set_tests_properties( test_buffer_shared_memory_reuse_pass_and_fuse_optimization_op_pass test_data_norm_op test_dataloader_keep_order test_dataloader_unkeep_order diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b089f1e746f..d9d9cb5504f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -123,7 +123,7 @@ if(WITH_TESTING) # add_subdirectory(rnn) add_subdirectory(rpc) # add_subdirectory(sequence) - # add_subdirectory(standalone_executor) + add_subdirectory(standalone_executor) # add_subdirectory(tokenizer) # add_subdirectory(white_list) add_subdirectory(xpu) diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/CMakeLists.txt b/test/standalone_executor/CMakeLists.txt similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/CMakeLists.txt rename to test/standalone_executor/CMakeLists.txt diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_controlflow.py b/test/standalone_executor/test_standalone_controlflow.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_controlflow.py rename to test/standalone_executor/test_standalone_controlflow.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_cross_step_overlap.py b/test/standalone_executor/test_standalone_cross_step_overlap.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_cross_step_overlap.py rename to test/standalone_executor/test_standalone_cross_step_overlap.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_cuda_graph_multi_stream.py b/test/standalone_executor/test_standalone_cuda_graph_multi_stream.py similarity index 97% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_cuda_graph_multi_stream.py rename to test/standalone_executor/test_standalone_cuda_graph_multi_stream.py index 51881410756..f6deb87d1c6 100644 --- a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_cuda_graph_multi_stream.py +++ b/test/standalone_executor/test_standalone_cuda_graph_multi_stream.py @@ -21,7 +21,9 @@ import paddle from paddle.device.cuda.graphs import CUDAGraph sys.path.append("..") -from test_cuda_graph_static_mode import build_program +from paddle.fluid.tests.unittests.test_cuda_graph_static_mode import ( + build_program, +) paddle.enable_static() diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py b/test/standalone_executor/test_standalone_custom_stream.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_custom_stream.py rename to test/standalone_executor/test_standalone_custom_stream.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_executor.py b/test/standalone_executor/test_standalone_executor.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_executor.py rename to test/standalone_executor/test_standalone_executor.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_executor_aot_choose_kernel.py b/test/standalone_executor/test_standalone_executor_aot_choose_kernel.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_executor_aot_choose_kernel.py rename to test/standalone_executor/test_standalone_executor_aot_choose_kernel.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_multiply_write.py b/test/standalone_executor/test_standalone_multiply_write.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_multiply_write.py rename to test/standalone_executor/test_standalone_multiply_write.py diff --git a/python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_op_priority.py b/test/standalone_executor/test_standalone_op_priority.py similarity index 100% rename from python/paddle/fluid/tests/unittests/standalone_executor/test_standalone_op_priority.py rename to test/standalone_executor/test_standalone_op_priority.py -- GitLab