Skip to content

Commit 3b0dedf

Browse files
authored
[CINN][migrate tests part2] move cinn tests (poly,runtime,utils) to test (#70426)
* [CINN][migrate tests part2] move cinn tests (poly,runtime,utils) to test * revert functional_test.cc
1 parent dcb9419 commit 3b0dedf

14 files changed

+14
-11
lines changed

paddle/cinn/poly/CMakeLists.txt

-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ gather_srcs(
1515
ast_gen.cc
1616
graph.cc
1717
compute_at_transform.cc)
18-
19-
cinn_cc_test(test_compute_at_transform SRCS compute_at_transform_test.cc DEPS
20-
cinncore)

paddle/cinn/runtime/CMakeLists.txt

-2
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

-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ gather_srcs(
1414
cuda_intrinsics_float16.cc
1515
cuda_intrinsics_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

-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ gather_srcs(
1616
random_engine.cc
1717
external_func_names.cc)
1818

19-
cinn_cc_test(test_sized_multi_set SRCS sized_multi_set_test.cc DEPS cinncore)
20-
cinn_cc_test(test_multi_threading SRCS multi_threading_test.cc DEPS cinncore)
2119
cinn_cc_test(
2220
test_functional
2321
SRCS

test/cpp/cinn/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ add_subdirectory(ast_gen_ius)
55
# add_subdirectory(ir)
66
# add_subdirectory(lang)
77
# add_subdirectory(optim)
8-
# add_subdirectory(poly)
9-
# add_subdirectory(runtime)
10-
# add_subdirectory(utils)
8+
add_subdirectory(poly)
9+
add_subdirectory(runtime)
10+
add_subdirectory(utils)

test/cpp/cinn/poly/CMakeLists.txt

+2
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

+2
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)
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

+2
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)