cc_test( test_math_function SRCS test_math_function.cc DEPS math_function) if(WITH_GPU) nv_test( test_math_function_gpu SRCS test_math_function.cu DEPS math_function) nv_test( test_broadcast_gpu SRCS test_ternary_broadcast.cu DEPS gtest) endif() if(WITH_ROCM) hip_test( test_math_function_gpu SRCS test_math_function.cu DEPS math_function) endif() cc_test( test_cpu_vec SRCS test_cpu_vec.cc DEPS blas phi_backends) # For String Kernels cc_test( test_strings_lower_upper_dev_api SRCS test_strings_lower_upper_dev_api.cc DEPS phi phi_api_utils) if(WITH_GPU) nv_test( test_strings_lower_upper_dev_gpu_api SRCS test_strings_lower_upper_dev_api.cu DEPS phi phi_api_utils) elseif(WITH_ROCM) hip_test( test_strings_lower_upper_dev_gpu_api SRCS test_strings_lower_upper_dev_api.cu DEPS phi phi_api_utils) endif() cc_test( test_strings_copy_dev_api SRCS test_strings_copy_dev_api.cc DEPS phi phi_api_utils) if(WITH_GPU) nv_test( test_strings_copy_dev_gpu_api SRCS test_strings_copy_dev_api.cu DEPS phi phi_api_utils) elseif(WITH_ROCM) hip_test( test_strings_copy_dev_gpu_api SRCS test_strings_copy_dev_api.cu DEPS phi phi_api_utils) endif() cc_test( test_memcpy_dev_api SRCS test_memcpy_dev_api.cc DEPS phi phi_api_utils) cc_test( test_transfer_layout_dev_api SRCS test_transfer_layout_dev_api.cc DEPS phi phi_api_utils) if(WITH_GPU) nv_test( test_gpu_timer SRCS test_gpu_timer.cu DEPS gtest) nv_test( test_auto_tune SRCS test_auto_tune.cu DEPS gtest) cc_test( test_multi_tensor_adam_kernel SRCS test_multi_tensor_adam_kernel.cc DEPS gtest phi phi_api_utils) elseif(WITH_ROCM) hip_test( test_gpu_timer SRCS test_gpu_timer.cu DEPS gtest) hip_test( test_auto_tune SRCS test_auto_tune.cu DEPS gtest) endif() cc_test( test_cache SRCS test_cache.cc DEPS gtest cache) cc_test( strided_memcpy_test SRCS strided_memcpy_test.cc DEPS device_context memory)