CMakeLists.txt 577 字节
Newer Older
Q
Qiao Longfei 已提交
1
cc_library(dynamic_loader SRCS dynamic_loader.cc DEPS glog gflags enforce)
2

Y
Yi Wang 已提交
3 4 5 6 7 8 9
list(APPEND CUDA_SRCS cublas.cc cudnn.cc curand.cc)

# There is no macOS version of NCCL.
if (NOT APPLE)
  list(APPEND CUDA_SRCS nccl.cc)
endif()

L
Luo Tao 已提交
10
if (TENSORRT_FOUND)
Y
Yan Chunwei 已提交
11 12 13
  list(APPEND CUDA_SRCS tensorrt.cc)
endif()

14
configure_file(cupti_lib_path.h.in ${CMAKE_CURRENT_BINARY_DIR}/cupti_lib_path.h)
15 16 17 18
if (CUPTI_FOUND)
    list(APPEND CUDA_SRCS cupti.cc)
endif(CUPTI_FOUND)
nv_library(dynload_cuda SRCS ${CUDA_SRCS} DEPS dynamic_loader)
Y
Yiqun Liu 已提交
19
cc_library(dynload_warpctc SRCS warpctc.cc DEPS dynamic_loader warpctc)