Skip to content

Commit

Permalink
Fix a couple issues with the auto-detection of the NVCC_GENCODE in NC…
Browse files Browse the repository at this point in the history
…CL (#2459)
  • Loading branch information
benson31 authored Jun 25, 2024
1 parent 0305a0e commit e86dedd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/superbuild/nccl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ endmacro ()

lbann_sb_init_extern_pkg(
NAME NCCL
LANGUAGES C CXX # CUDA <- can't set explicitly; inferred from ${CUDA_HOME}
LANGUAGES C CXX CUDA
GITHUB_URL NVIDIA/nccl
GIT_TAG "master")

Expand Down Expand Up @@ -105,8 +105,8 @@ if (LBANN_SB_FWD_NCCL_NVCC_GENCODE)
elseif (DEFINED $ENV{NVCC_GENCODE})
set(_nccl_nvcc_gencode_opt
"NVCC_GENCODE=$ENV{NVCC_GENCODE}")
elseif (LBANN_NCCL_CUDA_ARCHITECTURES)
set(_cuda_arch ${LBANN_NCCL_CUDA_ARCHITECTURES})
elseif (LBANN_SB_NCCL_CUDA_ARCHITECTURES)
set(_cuda_arch ${LBANN_SB_NCCL_CUDA_ARCHITECTURES})
set(_nccl_nvcc_gencode_opt
"NVCC_GENCODE=-gencode=arch=compute_${_cuda_arch},code=sm_${_cuda_arch}")
else ()
Expand Down

0 comments on commit e86dedd

Please sign in to comment.