File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ __configure_fbgemm_gpu_build_rocm () {
160
160
if [ " $fbgemm_variant_targets " != " " ]; then
161
161
echo " [BUILD] ROCm targets have been manually provided: ${fbgemm_variant_targets} "
162
162
local arch_list=" ${fbgemm_variant_targets} "
163
+
163
164
else
164
165
if which rocminfo; then
165
166
# shellcheck disable=SC2155
@@ -229,6 +230,8 @@ __configure_fbgemm_gpu_build_cuda () {
229
230
local arch_list=" ${fbgemm_variant_targets} "
230
231
231
232
elif [ " $TORCH_CUDA_ARCH_LIST " != " " ]; then
233
+ # NOTE: This is generally set by Nova CI; see:
234
+ # .github/scripts/nova_dir.bash
232
235
echo " [BUILD] Using the environment-supplied TORCH_CUDA_ARCH_LIST as the CUDA targets ..."
233
236
local arch_list=" ${TORCH_CUDA_ARCH_LIST} "
234
237
@@ -251,8 +254,8 @@ __configure_fbgemm_gpu_build_cuda () {
251
254
local arch_list=" 7.0;8.0;9.0;9.0a;10.0;10.0a;12.0;12.0a"
252
255
253
256
elif [[ $cuda_version_nvcc == * " V12.6" * ]] ||
254
- [[ $cuda_version_nvcc == * " V12.1 " * ]] ||
255
- [[ $cuda_version_nvcc == * " V12.4 " * ]]; then
257
+ [[ $cuda_version_nvcc == * " V12.4 " * ]] ||
258
+ [[ $cuda_version_nvcc == * " V12.1 " * ]]; then
256
259
local arch_list=" 7.0;8.0;9.0;9.0a"
257
260
258
261
else
Original file line number Diff line number Diff line change 22
22
# # Overwrite existing ENV VAR in Nova
23
23
if [[ " $CONDA_ENV " != " " ]]; then export CONDA_RUN=" conda run --no-capture-output -p ${CONDA_ENV} " && echo " $CONDA_RUN " ; fi
24
24
25
- if [[ " $CU_VERSION " == " cu121" ]] ||
26
- [[ " $CU_VERSION " == " cu124" ]] ||
27
- [[ " $CU_VERSION " == " cu126" ]] ||
28
- [[ " $CU_VERSION " == " cu128" ]]; then
25
+ if [[ " $CU_VERSION " == " cu128" ]]; then
26
+ export TORCH_CUDA_ARCH_LIST=" 7.0;8.0;9.0;9.0a;10.0;10.0a;12.0;12.0a"
27
+ echo " Set TORCH_CUDA_ARCH_LIST to: ${TORCH_CUDA_ARCH_LIST} "
28
+
29
+ elif [[ " $CU_VERSION " == " cu126" ]] ||
30
+ [[ " $CU_VERSION " == " cu124" ]] ||
31
+ [[ " $CU_VERSION " == " cu121" ]]; then
29
32
export TORCH_CUDA_ARCH_LIST=" 7.0;8.0;9.0;9.0a"
30
33
echo " Set TORCH_CUDA_ARCH_LIST to: ${TORCH_CUDA_ARCH_LIST} "
31
34
You can’t perform that action at this time.
0 commit comments