CMakeLists.txt 462 字节
Newer Older
1 2 3 4 5 6 7
if(NOT LITE_WITH_CUDA)
    return()
endif()

nv_library(cuda_activation SRCS activation.cu)
nv_library(cuda_scale SRCS scale.cu)
nv_library(cuda_type_trans SRCS type_trans.cu)
8
nv_library(cuda_transpose SRCS transpose.cu )
9 10 11 12 13 14 15 16 17
nv_library(cudnn_conv SRCS cudnn_conv.cc DEPS cuda_activation cuda_scale
cuda_type_trans)

set (
 math_cuda
 cudnn_conv
 cuda_activation
 cuda_scale
 cuda_type_trans
18
 cuda_transpose
19 20 21
)

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