CMakeLists.txt 1.2 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})
11
nv_library(cudnn_conv SRCS cudnn_conv.cc DEPS cuda_activation cuda_scale cuda_type_trans ${cuda_static_deps})
12
nv_library(cuda_elementwise SRCS elementwise.cu DEPS ${cuda_static_deps})
13
nv_library(cudnn_pool SRCS cudnn_pool.cc DEPS ${cuda_static_deps})
14
nv_library(cuda_gemm SRCS gemm.cc  DEPS ${cuda_static_deps})
15
nv_library(cuda_batched_gemm SRCS batched_gemm.cc DEPS ${cuda_static_deps})
16
nv_library(cuda_strided_gemm SRCS strided_gemm.cc DEPS ${cuda_static_deps})
17
nv_library(cuda_sequence_padding SRCS sequence_padding.cu DEPS ${cuda_static_deps})
18 19 20 21 22 23 24

set (
 math_cuda
 cudnn_conv
 cuda_activation
 cuda_scale
 cuda_type_trans
25
 cuda_transpose
Z
Zhaolong Xing 已提交
26
 cuda_elementwise
27
 cudnn_pool
28
 cuda_gemm
29
 cuda_batched_gemm
30
 cuda_strided_gemm
31
 cuda_sequence_padding
32 33 34
)

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