CMakeLists.txt 843 字节
Newer Older
1 2 3 4
if(NOT LITE_WITH_CUDA)
    return()
endif()

5 6 7 8 9 10 11
set(cuda_static_deps cudnn_static cublas_static curand_static
    culibos_static cudart_static)

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})
12
nv_library(cudnn_conv SRCS cudnn_conv.cc DEPS cuda_activation cuda_scale
13 14
cuda_type_trans ${cuda_static_deps})
nv_library(cuda_elementwise SRCS elementwise.cu DEPS ${cuda_static_deps})
15
nv_library(cuda_gemm SRCS gemm.cc  DEPS ${cuda_static_deps})
16 17 18 19 20 21 22

set (
 math_cuda
 cudnn_conv
 cuda_activation
 cuda_scale
 cuda_type_trans
23
 cuda_transpose
Z
Zhaolong Xing 已提交
24
 cuda_elementwise
25
 cuda_gemm
26 27 28
)

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