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

【paddle_test No.8】编译优化 paddle_test 推全 #60918

Closed
wants to merge 3 commits into from
Closed
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
76 changes: 25 additions & 51 deletions test/cpp/phi/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
cc_test(
test_custom_kernel
SRCS test_custom_kernel.cc
DEPS phi common)
cc_test(
test_dense_tensor
SRCS test_dense_tensor.cc
DEPS phi common)
cc_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_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)
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
@@ -45,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(
@@ -77,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()
5 changes: 1 addition & 4 deletions test/cpp/phi/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
cc_test(
test_math_function
SRCS test_math_function.cc
DEPS phi common)
paddle_test(test_math_function SRCS test_math_function.cc DEPS phi common)
if(WITH_GPU)
nv_test(
test_math_function_gpu