CMakeLists.txt 1.0 KB
Newer Older
1 2 3 4 5 6 7
if(WITH_ROCM)
  hip_test(test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor glog)
else()
  cc_test(test_pten_tensor SRCS test_pten_tensor.cc DEPS pten_tensor glog)
endif()

cc_test(test_pten_exception SRCS test_pten_exception.cc DEPS gtest)
8 9
cc_test(test_framework_storage SRCS test_storage.cc DEPS pten_api_utils)
cc_test(test_framework_tensor_utils SRCS test_tensor_utils.cc DEPS pten_api_utils)
10 11 12 13 14 15 16

cc_test(test_mean_api SRCS test_mean_api.cc DEPS pten_tensor pten_api pten_api_utils)
cc_test(test_dot_api SRCS test_dot_api.cc DEPS pten_tensor pten_api pten_api_utils)
cc_test(test_matmul_api SRCS test_matmul_api.cc DEPS pten_tensor pten_api pten_api_utils)
cc_test(test_fill_api SRCS test_fill_api.cc DEPS pten_tensor pten_api pten_api_utils)
cc_test(test_flatten_api SRCS test_flatten_api.cc DEPS pten_tensor pten_api pten_api_utils)
cc_test(test_elementwise_api SRCS test_elementwise_api.cc DEPS pten_tensor pten_api pten_api_utils)
17
cc_test(test_reshape_api SRCS test_reshape_api.cc DEPS pten_tensor pten_api pten_api_utils)