Skip to content

Commit 3ab3874

Browse files
committed
[CINN][migrate tests part2] move cinn tests (poly,runtime,utils) to test
1 parent b3afa7b commit 3ab3874

16 files changed

+17
-7
lines changed

paddle/cinn/poly/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ gather_srcs(
1616
graph.cc
1717
compute_at_transform.cc)
1818

19-
cinn_cc_test(test_compute_at_transform SRCS compute_at_transform_test.cc DEPS
20-
cinncore)
2119
cinn_cc_test(test_isl_utils SRCS isl_utils_test.cc DEPS cinncore)

paddle/cinn/runtime/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ cinn_cc_library(
1313
cinn_runtime SRCS cinn_runtime.cc buffer.cc #cinn_x86_device_impl.cc
1414
)
1515

16-
cinn_cc_test(test_cinn_runtime SRCS cinn_runtime_test.cc DEPS cinn_runtime)
17-
1816
if(WITH_OPENMP)
1917
cinn_cc_library(tiny_runtime STATIC SRCS tiny_runtime.cc)
2018
endif()

paddle/cinn/runtime/cuda/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ gather_srcs(
1414
cuda_instrinsics_float16.cc
1515
cuda_instrinsics_bfloat16.cc)
1616

17-
cinn_nv_test(test_cuda_module SRCS cuda_module_test.cc DEPS cinncore)
1817
cinn_nv_library(cuda_runtime SRCS cinn_cuda_runtime_source.cuh)

paddle/cinn/utils/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ gather_srcs(
1717
external_func_names.cc)
1818

1919
cinn_cc_test(test_string SRCS string_test.cc DEPS cinncore)
20-
cinn_cc_test(test_sized_multi_set SRCS sized_multi_set_test.cc DEPS cinncore)
21-
cinn_cc_test(test_multi_threading SRCS multi_threading_test.cc DEPS cinncore)
2220
cinn_cc_test(
2321
test_functional
2422
SRCS

test/cpp/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ add_subdirectory(inference)
1212
add_subdirectory(eager)
1313
add_subdirectory(fluid)
1414
add_subdirectory(utils)
15+
if(WITH_CINN)
16+
add_subdirectory(cinn)
17+
endif()

test/cpp/cinn/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
add_subdirectory(poly)
2+
add_subdirectory(runtime)
3+
add_subdirectory(utils)

test/cpp/cinn/poly/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cinn_cc_test(test_compute_at_transform SRCS compute_at_transform_test.cc DEPS
2+
cinncore)

test/cpp/cinn/runtime/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cinn_cc_test(test_cinn_runtime SRCS cinn_runtime_test.cc DEPS cinn_runtime)
2+
add_subdirectory(cuda)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if(NOT WITH_CUDA)
2+
return()
3+
endif()
4+
5+
cinn_nv_test(test_cuda_module SRCS cuda_module_test.cc DEPS cinncore)

test/cpp/cinn/utils/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cinn_cc_test(test_sized_multi_set SRCS sized_multi_set_test.cc DEPS cinncore)
2+
cinn_cc_test(test_multi_threading SRCS multi_threading_test.cc DEPS cinncore)

0 commit comments

Comments
 (0)