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

G
Guo Sheng 已提交
3
list(APPEND CUDA_SRCS cublas.cc cudnn.cc curand.cc cusolver.cc)
Y
Yi Wang 已提交
4 5

# There is no macOS version of NCCL.
6
# Disable nvrtc and cuda_driver api on MacOS and Windows, and only do a early test on Linux.
D
dzhwinter 已提交
7
if (NOT APPLE AND NOT WIN32)
8 9 10 11
  list(APPEND CUDA_SRCS nvrtc.cc cuda_driver.cc)
  if (WITH_NCCL)
    list(APPEND CUDA_SRCS nccl.cc)
  endif()
Y
Yi Wang 已提交
12 13
endif()

L
Luo Tao 已提交
14
if (TENSORRT_FOUND)
Y
Yan Chunwei 已提交
15 16 17
  list(APPEND CUDA_SRCS tensorrt.cc)
endif()

18
configure_file(cupti_lib_path.h.in ${CMAKE_CURRENT_BINARY_DIR}/cupti_lib_path.h)
19 20 21 22
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 已提交
23
cc_library(dynload_warpctc SRCS warpctc.cc DEPS dynamic_loader warpctc)
24 25 26 27
if (WITH_MKLML)
    cc_library(dynload_mklml SRCS mklml.cc DEPS dynamic_loader mklml)
endif()
# TODO(TJ): add iomp, mkldnn?