From e85fbac85fe3be0070a29ffa30c4c841de0c7a21 Mon Sep 17 00:00:00 2001 From: tianshuo78520a <707759223@qq.com> Date: Fri, 5 May 2023 14:17:06 +0800 Subject: [PATCH] Mv cpp_extension test dir (#53330) --- python/paddle/fluid/tests/CMakeLists.txt | 1 - test/CMakeLists.txt | 1 + {python/paddle/fluid/tests => test}/cpp_extension/CMakeLists.txt | 0 .../fluid/tests => test}/cpp_extension/cpp_extension_setup.py | 0 .../fluid/tests => test}/cpp_extension/custom_extension.cc | 0 {python/paddle/fluid/tests => test}/cpp_extension/custom_power.h | 0 .../fluid/tests => test}/cpp_extension/custom_relu_forward.cu | 0 {python/paddle/fluid/tests => test}/cpp_extension/custom_sub.cc | 0 .../fluid/tests => test}/cpp_extension/mix_relu_and_extension.cc | 0 .../tests => test}/cpp_extension/mix_relu_and_extension_setup.py | 0 .../fluid/tests => test}/cpp_extension/test_cpp_extension_jit.py | 0 .../tests => test}/cpp_extension/test_cpp_extension_setup.py | 0 .../tests => test}/cpp_extension/test_mixed_extension_setup.py | 0 {python/paddle/fluid/tests => test}/cpp_extension/utils.py | 0 14 files changed, 1 insertion(+), 1 deletion(-) rename {python/paddle/fluid/tests => test}/cpp_extension/CMakeLists.txt (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/cpp_extension_setup.py (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/custom_extension.cc (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/custom_power.h (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/custom_relu_forward.cu (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/custom_sub.cc (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/mix_relu_and_extension.cc (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/mix_relu_and_extension_setup.py (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/test_cpp_extension_jit.py (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/test_cpp_extension_setup.py (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/test_mixed_extension_setup.py (100%) rename {python/paddle/fluid/tests => test}/cpp_extension/utils.py (100%) diff --git a/python/paddle/fluid/tests/CMakeLists.txt b/python/paddle/fluid/tests/CMakeLists.txt index 8e3a67020b8..711f501e420 100644 --- a/python/paddle/fluid/tests/CMakeLists.txt +++ b/python/paddle/fluid/tests/CMakeLists.txt @@ -9,4 +9,3 @@ foreach(src ${TEST_OPS}) endforeach() add_subdirectory(unittests) -add_subdirectory(cpp_extension) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 96bd6ca3c26..567d9b1e6c3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -102,6 +102,7 @@ if(WITH_TESTING) add_subdirectory(custom_op) add_subdirectory(custom_runtime) add_subdirectory(dataset) + add_subdirectory(cpp_extension) if(WITH_DISTRIBUTE) add_subdirectory(collective) add_subdirectory(auto_parallel) diff --git a/python/paddle/fluid/tests/cpp_extension/CMakeLists.txt b/test/cpp_extension/CMakeLists.txt similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/CMakeLists.txt rename to test/cpp_extension/CMakeLists.txt diff --git a/python/paddle/fluid/tests/cpp_extension/cpp_extension_setup.py b/test/cpp_extension/cpp_extension_setup.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/cpp_extension_setup.py rename to test/cpp_extension/cpp_extension_setup.py diff --git a/python/paddle/fluid/tests/cpp_extension/custom_extension.cc b/test/cpp_extension/custom_extension.cc similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/custom_extension.cc rename to test/cpp_extension/custom_extension.cc diff --git a/python/paddle/fluid/tests/cpp_extension/custom_power.h b/test/cpp_extension/custom_power.h similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/custom_power.h rename to test/cpp_extension/custom_power.h diff --git a/python/paddle/fluid/tests/cpp_extension/custom_relu_forward.cu b/test/cpp_extension/custom_relu_forward.cu similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/custom_relu_forward.cu rename to test/cpp_extension/custom_relu_forward.cu diff --git a/python/paddle/fluid/tests/cpp_extension/custom_sub.cc b/test/cpp_extension/custom_sub.cc similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/custom_sub.cc rename to test/cpp_extension/custom_sub.cc diff --git a/python/paddle/fluid/tests/cpp_extension/mix_relu_and_extension.cc b/test/cpp_extension/mix_relu_and_extension.cc similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/mix_relu_and_extension.cc rename to test/cpp_extension/mix_relu_and_extension.cc diff --git a/python/paddle/fluid/tests/cpp_extension/mix_relu_and_extension_setup.py b/test/cpp_extension/mix_relu_and_extension_setup.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/mix_relu_and_extension_setup.py rename to test/cpp_extension/mix_relu_and_extension_setup.py diff --git a/python/paddle/fluid/tests/cpp_extension/test_cpp_extension_jit.py b/test/cpp_extension/test_cpp_extension_jit.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/test_cpp_extension_jit.py rename to test/cpp_extension/test_cpp_extension_jit.py diff --git a/python/paddle/fluid/tests/cpp_extension/test_cpp_extension_setup.py b/test/cpp_extension/test_cpp_extension_setup.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/test_cpp_extension_setup.py rename to test/cpp_extension/test_cpp_extension_setup.py diff --git a/python/paddle/fluid/tests/cpp_extension/test_mixed_extension_setup.py b/test/cpp_extension/test_mixed_extension_setup.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/test_mixed_extension_setup.py rename to test/cpp_extension/test_mixed_extension_setup.py diff --git a/python/paddle/fluid/tests/cpp_extension/utils.py b/test/cpp_extension/utils.py similarity index 100% rename from python/paddle/fluid/tests/cpp_extension/utils.py rename to test/cpp_extension/utils.py -- GitLab