Skip to content

Commit fc8df56

Browse files
committed
Enable sm 9.0 for cuda 12.1
1 parent 0baa308 commit fc8df56

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/scripts/fbgemm_gpu_build.bash

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ __configure_fbgemm_gpu_build_cuda () {
103103

104104
else
105105
echo "[BUILD] Using the default CUDA targets ..."
106-
local arch_list="7.0;8.0"
106+
# For cuda version 12.1, enable sm 9.0
107+
cuda_version_nvcc=$(nvcc --version)
108+
echo "$cuda_version_nvcc"
109+
if [[ $cuda_version_nvcc == *"V12.1"* ]]; then
110+
local arch_list="7.0;8.0;9.0"
111+
else
112+
local arch_list="7.0;8.0"
113+
fi
107114
fi
108115

109116
# Unset the environment-supplied TORCH_CUDA_ARCH_LIST because it will take

0 commit comments

Comments
 (0)