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

D
dzhwinter 已提交
5
if(WITH_GPU AND NOT WIN32)
D
Dong Zhihong 已提交
6
  nv_library(nccl_common SRCS nccl_gpu_common.cc DEPS device_context operator )
D
Dong Zhihong 已提交
7
endif()
W
Wu Yi 已提交
8 9 10 11 12 13 14 15 16 17

if(WITH_GPU)
    op_library(nccl_op DEPS nccl_common)
    file(APPEND ${pybind_file} "USE_CUDA_ONLY_OP(ncclAllReduce);\n")
    set(OPERATOR_DEPS ${OPERATOR_DEPS} nccl_common PARENT_SCOPE)
endif()

if(NOT WIN32)
    nv_test(nccl_op_test SRCS nccl_op_test.cu.cc DEPS nccl_op gpu_info device_context)
endif()