Skip to content

Commit

Permalink
8
Browse files Browse the repository at this point in the history
  • Loading branch information
DrRyanHuang committed Jan 17, 2024
1 parent 237a7a8 commit e60b5f0
Showing 1 changed file with 22 additions and 42 deletions.
64 changes: 22 additions & 42 deletions test/cpp/phi/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
paddle_test(test_custom_kernel SRCS test_custom_kernel.cc DEPS phi common)
paddle_test(test_dense_tensor SRCS test_dense_tensor.cc DEPS phi common)
paddle_test(test_intrusive_ptr SRCS test_intrusive_ptr.cc)
cc_test(test_type_info SRCS test_type_info.cc)
cc_test(
test_kernel_factory
SRCS test_kernel_factory.cc
DEPS phi common)
cc_test(
test_sparse_coo_tensor
SRCS test_sparse_coo_tensor.cc
DEPS phi common)
cc_test(
test_sparse_csr_tensor
SRCS test_sparse_csr_tensor.cc
DEPS phi common)
cc_test(
test_op_utils
SRCS test_op_utils.cc
DEPS op_compat_infos)
cc_test(
test_meta_fn_utils
SRCS test_meta_fn_utils.cc
DEPS phi common)
paddle_test(test_type_info SRCS test_type_info.cc)
paddle_test(test_kernel_factory SRCS test_kernel_factory.cc DEPS phi common)
paddle_test(test_sparse_coo_tensor SRCS test_sparse_coo_tensor.cc DEPS phi
common)
paddle_test(test_sparse_csr_tensor SRCS test_sparse_csr_tensor.cc DEPS phi
common)
paddle_test(test_op_utils SRCS test_op_utils.cc DEPS op_compat_infos)
paddle_test(test_meta_fn_utils SRCS test_meta_fn_utils.cc DEPS phi common)

cc_test(
test_ddim
SRCS test_ddim.cc
DEPS phi common)
paddle_test(test_ddim SRCS test_ddim.cc DEPS phi common)
if(WITH_GPU)
nv_test(
test_dim
Expand All @@ -39,26 +23,17 @@ elseif(WITH_ROCM)
DEPS phi common)
endif()

cc_test(
selected_rows_test
SRCS test_selected_rows.cc
DEPS phi common)
paddle_test(selected_rows_test SRCS test_selected_rows.cc DEPS phi common)
if(WITH_TESTING AND TEST selected_rows_test)
set_tests_properties(selected_rows_test PROPERTIES TIMEOUT 120)
endif()
if(NOT WIN32)
cc_test(test_rw_lock SRCS test_rw_lock.cc)
paddle_test(test_rw_lock SRCS test_rw_lock.cc)
endif()
cc_test(
test_string_tensor
SRCS test_string_tensor.cc
DEPS phi common)
cc_test(unroll_array_ops_test SRCS unroll_array_ops_test.cc)
paddle_test(test_string_tensor SRCS test_string_tensor.cc DEPS phi common)
paddle_test(unroll_array_ops_test SRCS unroll_array_ops_test.cc)

cc_test(
test_tensor_array
SRCS test_tensor_array.cc
DEPS phi common)
paddle_test(test_tensor_array SRCS test_tensor_array.cc DEPS phi common)

if(WITH_GPU)
nv_test(
Expand All @@ -71,8 +46,13 @@ elseif(WITH_ROCM)
SRCS test_mixed_vector.cc test_mixed_vector.cu
DEPS place phi common tensor)
else()
cc_test(
paddle_test(
test_mixed_vector
SRCS test_mixed_vector.cc
DEPS place phi common tensor)
SRCS
test_mixed_vector.cc
DEPS
place
phi
common
tensor)
endif()

0 comments on commit e60b5f0

Please sign in to comment.