CMakeLists.txt 1.7 KB
Newer Older
1 2 3 4
if(NOT LITE_WITH_CUDA)
    return()
endif()

5
get_property(cuda_static_deps GLOBAL PROPERTY CUDA_MODULES)
6 7 8 9 10

nv_library(cuda_activation SRCS activation.cu DEPS ${cuda_static_deps})
nv_library(cuda_scale SRCS scale.cu DEPS ${cuda_static_deps})
nv_library(cuda_type_trans SRCS type_trans.cu DEPS ${cuda_static_deps}) 
nv_library(cuda_transpose SRCS transpose.cu DEPS ${cuda_static_deps})
W
Wilber 已提交
11 12 13
nv_library(cudnn_helper SRCS cudnn_helper.cc DEPS ${cuda_static_deps})
nv_library(cudnn_conv SRCS cudnn_conv.cc DEPS cuda_activation cuda_scale cuda_type_trans cudnn_helper ${cuda_static_deps})
nv_library(cudnn_softmax SRCS cudnn_softmax.cc DEPS cudnn_helper ${cuda_static_deps} tensor)
14
nv_library(cuda_elementwise SRCS elementwise.cu DEPS ${cuda_static_deps})
15
nv_library(cudnn_pool SRCS cudnn_pool.cc DEPS ${cuda_static_deps})
16 17
nv_library(cuda_gru_forward  SRCS gru_forward.cu DEPS cuda_activation ${cuda_static_deps})
nv_library(cuda_sequence2batch  SRCS sequence2batch.cu DEPS ${cuda_static_deps})
18
nv_library(cuda_gemm SRCS gemm.cc  DEPS ${cuda_static_deps})
19
nv_library(cuda_batched_gemm SRCS batched_gemm.cc DEPS ${cuda_static_deps})
20
nv_library(cuda_strided_gemm SRCS strided_gemm.cc DEPS ${cuda_static_deps})
21
nv_library(cuda_sequence_padding SRCS sequence_padding.cu DEPS ${cuda_static_deps})
22
nv_library(cuda_bias SRCS bias.cu DEPS ${cuda_static_deps})
W
Wilber 已提交
23
nv_library(cuda_sequence_helper SRCS sequence_helper.cu DEPS ${cuda_static_deps})
24 25 26 27

set (
 math_cuda
 cudnn_conv
W
Wilber 已提交
28
 cudnn_softmax
29 30 31
 cuda_activation
 cuda_scale
 cuda_type_trans
32
 cuda_transpose
Z
Zhaolong Xing 已提交
33
 cuda_elementwise
34
 cudnn_pool
35 36
 cuda_gru_forward
 cuda_sequence2batch
37
 cuda_gemm
38
 cuda_batched_gemm
39
 cuda_strided_gemm
40
 cuda_sequence_padding
41
 cuda_bias
W
Wilber 已提交
42
 cudnn_helper
W
Wilber 已提交
43
 cuda_sequence_helper
44 45 46
)

set(math_cuda "${math_cuda}" CACHE GLOBAL "math cuda")