CMakeLists.txt 1.5 KB
Newer Older
1 2 3 4 5 6 7
if(WITH_XPU)
  cc_library(
    beam_search_xpu
    SRCS beam_search_xpu.cc
    DEPS xpu_op_list)
endif()

8
# please add new math_library in alphabetical order
W
Wang Xin 已提交
9
math_library(concat_and_split DEPS concat_and_split_functor)
10 11
math_library(context_project DEPS im2col math_function)
math_library(cos_sim_functor)
Z
Zeng Jinle 已提交
12
math_library(depthwise_conv)
X
xuezhong 已提交
13
math_library(sample_prob)
14
math_library(sampler DEPS generator)
D
dzhwinter 已提交
15

F
Feiyu Chan 已提交
16
# math_library(math_function DEPS blas dense_tensor tensor)
L
lidanqing 已提交
17

18
if(WITH_XPU)
19
  math_library(beam_search DEPS math_function beam_search_xpu)
P
pangyoki 已提交
20
else()
21
  math_library(beam_search DEPS math_function)
P
pangyoki 已提交
22
endif()
W
wopeizl 已提交
23

24
math_library(unpooling)
N
nhzlx 已提交
25
math_library(prelu)
26
math_library(bert_encoder_functor)
Z
zhaozhehao 已提交
27
math_library(tree2col DEPS math_function)
Q
qijun 已提交
28

29 30 31
cc_test(
  selected_rows_functor_test
  SRCS selected_rows_functor_test.cc
32
  DEPS allocator selected_rows_functor)
33 34 35 36 37 38 39 40 41 42 43 44
cc_test(
  im2col_test
  SRCS im2col_test.cc
  DEPS im2col)
cc_test(
  vol2col_test
  SRCS vol2col_test.cc
  DEPS vol2col)
cc_test(
  beam_search_test
  SRCS beam_search_test.cc
  DEPS beam_search)
45
if(WITH_GPU)
46 47 48 49
  nv_test(
    selected_rows_functor_gpu_test
    SRCS selected_rows_functor_test.cu.cc
    DEPS selected_rows_functor math_function)
50
endif()
51
if(WITH_ROCM)
52 53 54 55
  hip_test(
    selected_rows_functor_gpu_test
    SRCS selected_rows_functor_test.cu.cc
    DEPS selected_rows_functor math_function)
56
endif()
57 58 59 60
cc_test(
  concat_test
  SRCS concat_test.cc
  DEPS concat_and_split)
Z
zhangkaihuo 已提交
61

62
if(WITH_TESTING AND TEST im2col_test)
63
  set_tests_properties(im2col_test PROPERTIES TIMEOUT 120)
Y
YUNSHEN XIE 已提交
64
endif()