Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CINN][migrate tests part2] move cinn tests (poly,runtime,utils) to test #70426

Merged
merged 4 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions paddle/cinn/poly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ gather_srcs(
ast_gen.cc
graph.cc
compute_at_transform.cc)

cinn_cc_test(test_compute_at_transform SRCS compute_at_transform_test.cc DEPS
cinncore)
2 changes: 0 additions & 2 deletions paddle/cinn/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ cinn_cc_library(
cinn_runtime SRCS cinn_runtime.cc buffer.cc #cinn_x86_device_impl.cc
)

cinn_cc_test(test_cinn_runtime SRCS cinn_runtime_test.cc DEPS cinn_runtime)

if(WITH_OPENMP)
cinn_cc_library(tiny_runtime STATIC SRCS tiny_runtime.cc)
endif()
Expand Down
1 change: 0 additions & 1 deletion paddle/cinn/runtime/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ gather_srcs(
cuda_intrinsics_float16.cc
cuda_intrinsics_bfloat16.cc)

cinn_nv_test(test_cuda_module SRCS cuda_module_test.cc DEPS cinncore)
cinn_nv_library(cuda_runtime SRCS cinn_cuda_runtime_source.cuh)
2 changes: 0 additions & 2 deletions paddle/cinn/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ gather_srcs(
random_engine.cc
external_func_names.cc)

cinn_cc_test(test_sized_multi_set SRCS sized_multi_set_test.cc DEPS cinncore)
cinn_cc_test(test_multi_threading SRCS multi_threading_test.cc DEPS cinncore)
cinn_cc_test(
test_functional
SRCS
Expand Down
6 changes: 3 additions & 3 deletions test/cpp/cinn/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ add_subdirectory(ast_gen_ius)
# add_subdirectory(ir)
# add_subdirectory(lang)
# add_subdirectory(optim)
# add_subdirectory(poly)
# add_subdirectory(runtime)
# add_subdirectory(utils)
add_subdirectory(poly)
add_subdirectory(runtime)
add_subdirectory(utils)
2 changes: 2 additions & 0 deletions test/cpp/cinn/poly/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cinn_cc_test(test_compute_at_transform SRCS compute_at_transform_test.cc DEPS
cinncore)
2 changes: 2 additions & 0 deletions test/cpp/cinn/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cinn_cc_test(test_cinn_runtime SRCS cinn_runtime_test.cc DEPS cinn_runtime)
add_subdirectory(cuda)
5 changes: 5 additions & 0 deletions test/cpp/cinn/runtime/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if(NOT WITH_CUDA)
return()
endif()

cinn_nv_test(test_cuda_module SRCS cuda_module_test.cc DEPS cinncore)
2 changes: 2 additions & 0 deletions test/cpp/cinn/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cinn_cc_test(test_sized_multi_set SRCS sized_multi_set_test.cc DEPS cinncore)
cinn_cc_test(test_multi_threading SRCS multi_threading_test.cc DEPS cinncore)
Loading