CMakeLists.txt 3.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
cc_test(
  test_copy_dev_api
  SRCS test_copy_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_dot_dev_api
  SRCS test_dot_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_creation_dev_api
  SRCS test_creation_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_flatten_dev_api
  SRCS test_flatten_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_matmul_dev_api
  SRCS test_matmul_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_mean_dev_api
  SRCS test_mean_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_scale_dev_api
  SRCS test_scale_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_cast_dev_api
  SRCS test_cast_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_elementwise_dev_api
  SRCS test_elementwise_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_reshape_dev_api
  SRCS test_reshape_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_sum_dev_api
  SRCS test_sum_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_conj_dev_api
  SRCS test_conj_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_concat_dev_api
  SRCS test_concat_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_split_dev_api
  SRCS test_split_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_sparse_utils_dev_api
  SRCS test_sparse_utils_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_sparse_conv3d_dev_api
  SRCS test_sparse_conv3d_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_sparse_pool_dev_api
  SRCS test_sparse_pool_dev_api.cc
  DEPS phi phi_api_utils)
cc_test(
  test_sparse_activation_dev_api
  SRCS test_sparse_activation_dev_api.cc
  DEPS phi phi_api_utils)
73 74 75 76
cc_test(
  test_sparse_elementwise_dev_api
  SRCS test_sparse_elementwise_dev_api.cc
  DEPS phi phi_api_utils)
77 78 79 80
cc_test(
  test_sparse_transpose_dev_api
  SRCS test_sparse_transpose_dev_api.cc
  DEPS phi phi_api_utils)
81

82 83 84 85
cc_test(
  test_math_function
  SRCS test_math_function.cc
  DEPS math_function)
86
if(WITH_GPU)
87 88 89 90
  nv_test(
    test_math_function_gpu
    SRCS test_math_function.cu
    DEPS math_function)
91 92
endif()
if(WITH_ROCM)
93 94 95 96
  hip_test(
    test_math_function_gpu
    SRCS test_math_function.cu
    DEPS math_function)
97
endif()
F
Feiyu Chan 已提交
98

99 100 101 102
cc_test(
  test_cpu_vec
  SRCS test_cpu_vec.cc
  DEPS blas cpu_info)
J
Jack Zhou 已提交
103 104

# For String Kernels
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
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()
J
Jack Zhou 已提交
120

121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
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()
136 137 138 139 140

cc_test(
  test_memcpy_dev_api
  SRCS test_memcpy_dev_api.cc
  DEPS phi phi_api_utils)
141 142 143 144 145

cc_test(
  test_transfer_layout_dev_api
  SRCS test_transfer_layout_dev_api.cc
  DEPS phi phi_api_utils)