diff --git a/python/paddle/fluid/tests/CMakeLists.txt b/python/paddle/fluid/tests/CMakeLists.txt index 8e3a67020b82ea3d8994f449a8f1a8b5c7993c37..711f501e420223cff9df25652deaeba7a62f0184 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 96bd6ca3c263d293125e145de9c11b75c43ab373..567d9b1e6c32fa1aac57e309dafaf34a5b1cce56 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