message: Fix nccl build script to allow non-GPU or multi-arch GPU compilation.
diff: @@ -2,6 +2,8 @@ set(NCCL_NAME nccl)
  # set(NCCL_CUDA_ARCH "-gencode=arch=compute_${CUDA_ARCH},code=sm_${CUDA_ARCH}")
  # message("NCCL_CUDA_ARCH: ${NCCL_CUDA_ARCH}")
  +list(TRANSFORM CUDA_GENCODE PREPEND "NVCC_GENCODE=" OUTPUT_VARIABLE NCCL_BUILD_NVCC_GENCODE)
  +
  ExternalProject_Add(${NCCL_NAME}
  SOURCE_DIR ${PROJECT_SOURCE_DIR}/deps/${NCCL_NAME}
  PREFIX ${CMAKE_BINARY_DIR}/deps/${NCCL_NAME}
  @@ -9,7 +11,7 @@ ExternalProject_Add(${NCCL_NAME}
  BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/deps/${NCCL_NAME}/lib/libnccl${LIBEXT}
  INSTALL_COMMAND ""
  CONFIGURE_COMMAND ""
  - BUILD_COMMAND make src.build "NVCC_GENCODE=${CUDA_GENCODE}" "CUDA_HOME=${CUDA_TOOLKIT_ROOT_DIR}" "BUILDDIR=${CMAKE_BINARY_DIR}/deps/${NCCL_NAME}"
  + BUILD_COMMAND make src.build "${NCCL_BUILD_NVCC_GENCODE}" "CUDA_HOME=${CUDA_TOOLKIT_ROOT_DIR}" "BUILDDIR=${CMAKE_BINARY_DIR}/deps/${NCCL_NAME}"
  BUILD_IN_SOURCE 1
  )
  