From 592413364481048f6011c88f0e7b1918ef85e3bb Mon Sep 17 00:00:00 2001 From: Yulong Ao Date: Tue, 16 Aug 2022 08:49:15 +0800 Subject: [PATCH] [Auto Parallel] Move the tests to a standalone folder (#45136) --- .../distributed/auto_parallel/CMakeLists.txt | 16 ---------------- .../auto_parallel/test/CMakeLists.txt | 19 +++++++++++++++++++ .../{ => test}/device_mesh_test.cc | 0 .../{ => test}/dist_attr_test.cc | 0 .../{ => test}/dist_mapper_test.cc | 0 .../{ => test}/process_mesh_test.cc | 0 6 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 paddle/fluid/distributed/auto_parallel/test/CMakeLists.txt rename paddle/fluid/distributed/auto_parallel/{ => test}/device_mesh_test.cc (100%) rename paddle/fluid/distributed/auto_parallel/{ => test}/dist_attr_test.cc (100%) rename paddle/fluid/distributed/auto_parallel/{ => test}/dist_mapper_test.cc (100%) rename paddle/fluid/distributed/auto_parallel/{ => test}/process_mesh_test.cc (100%) diff --git a/paddle/fluid/distributed/auto_parallel/CMakeLists.txt b/paddle/fluid/distributed/auto_parallel/CMakeLists.txt index 22da1d7d57..264172c29f 100644 --- a/paddle/fluid/distributed/auto_parallel/CMakeLists.txt +++ b/paddle/fluid/distributed/auto_parallel/CMakeLists.txt @@ -4,36 +4,20 @@ cc_library( device_mesh SRCS device_mesh.cc DEPS auto_parallel_proto) -cc_test( - device_mesh_test - SRCS device_mesh_test.cc - DEPS device_mesh) cc_library( process_mesh SRCS process_mesh.cc DEPS auto_parallel_proto) -cc_test( - process_mesh_test - SRCS process_mesh_test.cc - DEPS process_mesh) cc_library( dist_attr SRCS dist_attr.cc DEPS process_mesh auto_parallel_proto proto_desc) -cc_test( - dist_attr_test - SRCS dist_attr_test.cc - DEPS dist_attr) cc_library( dist_mapper SRCS dist_mapper.cc DEPS device_mesh auto_parallel_proto) -cc_test( - dist_mapper_test - SRCS dist_mapper_test.cc - DEPS dist_mapper) cc_library(auto_parallel DEPS device_mesh process_mesh dist_attr dist_mapper) diff --git a/paddle/fluid/distributed/auto_parallel/test/CMakeLists.txt b/paddle/fluid/distributed/auto_parallel/test/CMakeLists.txt new file mode 100644 index 0000000000..625beac161 --- /dev/null +++ b/paddle/fluid/distributed/auto_parallel/test/CMakeLists.txt @@ -0,0 +1,19 @@ +cc_test( + device_mesh_test + SRCS device_mesh_test.cc + DEPS device_mesh) + +cc_test( + process_mesh_test + SRCS process_mesh_test.cc + DEPS process_mesh) + +cc_test( + dist_attr_test + SRCS dist_attr_test.cc + DEPS dist_attr) + +cc_test( + dist_mapper_test + SRCS dist_mapper_test.cc + DEPS dist_mapper) diff --git a/paddle/fluid/distributed/auto_parallel/device_mesh_test.cc b/paddle/fluid/distributed/auto_parallel/test/device_mesh_test.cc similarity index 100% rename from paddle/fluid/distributed/auto_parallel/device_mesh_test.cc rename to paddle/fluid/distributed/auto_parallel/test/device_mesh_test.cc diff --git a/paddle/fluid/distributed/auto_parallel/dist_attr_test.cc b/paddle/fluid/distributed/auto_parallel/test/dist_attr_test.cc similarity index 100% rename from paddle/fluid/distributed/auto_parallel/dist_attr_test.cc rename to paddle/fluid/distributed/auto_parallel/test/dist_attr_test.cc diff --git a/paddle/fluid/distributed/auto_parallel/dist_mapper_test.cc b/paddle/fluid/distributed/auto_parallel/test/dist_mapper_test.cc similarity index 100% rename from paddle/fluid/distributed/auto_parallel/dist_mapper_test.cc rename to paddle/fluid/distributed/auto_parallel/test/dist_mapper_test.cc diff --git a/paddle/fluid/distributed/auto_parallel/process_mesh_test.cc b/paddle/fluid/distributed/auto_parallel/test/process_mesh_test.cc similarity index 100% rename from paddle/fluid/distributed/auto_parallel/process_mesh_test.cc rename to paddle/fluid/distributed/auto_parallel/test/process_mesh_test.cc -- GitLab