CMakeLists.txt 1.0 KB
Newer Older
1
if(WITH_GPU)
2 3
  nv_test(
    test_phi_tensor
4
    SRCS test_phi_tensor.cc
5
    DEPS phi_tensor glog selected_rows)
6
elseif(WITH_ROCM)
7 8
  hip_test(
    test_phi_tensor
9
    SRCS test_phi_tensor.cc
10
    DEPS phi_tensor glog selected_rows)
11
else()
12 13
  cc_test(
    test_phi_tensor
14
    SRCS test_phi_tensor.cc
15
    DEPS phi_tensor glog selected_rows)
16 17
endif()

18 19
cc_test(
  test_phi_exception
20
  SRCS test_phi_exception.cc
21
  DEPS gtest)
22

23
set(COMMON_API_TEST_DEPS phi_tensor phi_api phi_api_utils)
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
cc_test(
  test_to_api
  SRCS test_to_api.cc
  DEPS ${COMMON_API_TEST_DEPS})
cc_test(
  test_slice_api
  SRCS test_slice_api.cc
  DEPS ${COMMON_API_TEST_DEPS})
cc_test(
  test_scale_benchmark
  SRCS test_scale_benchmark.cc
  DEPS ${COMMON_API_TEST_DEPS})
cc_test(
  test_data_transform
  SRCS test_data_transform.cc
  DEPS ${COMMON_API_TEST_DEPS})
cc_test(
  test_strings_empty_api
  SRCS test_strings_empty_api.cc
  DEPS ${COMMON_API_TEST_DEPS})
cc_test(
  test_strings_lower_upper_api
  SRCS test_strings_lower_upper_api.cc
  DEPS ${COMMON_API_TEST_DEPS})