Skip to content

Commit e825856

Browse files
q10facebook-github-bot
authored andcommitted
Update Nova CI configuration to support B200 (#3868)
Summary: X-link: facebookresearch/FBGEMM#958 - Update Nova CI configuration to support B200 Pull Request resolved: #3868 Reviewed By: spcyppt Differential Revision: D71646490 Pulled By: q10 fbshipit-source-id: d738eec6ee494d3b57ee952c562562f3d6d8db5f
1 parent 7c1cb95 commit e825856

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/scripts/fbgemm_gpu_build.bash

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ __configure_fbgemm_gpu_build_rocm () {
160160
if [ "$fbgemm_variant_targets" != "" ]; then
161161
echo "[BUILD] ROCm targets have been manually provided: ${fbgemm_variant_targets}"
162162
local arch_list="${fbgemm_variant_targets}"
163+
163164
else
164165
if which rocminfo; then
165166
# shellcheck disable=SC2155
@@ -229,6 +230,8 @@ __configure_fbgemm_gpu_build_cuda () {
229230
local arch_list="${fbgemm_variant_targets}"
230231

231232
elif [ "$TORCH_CUDA_ARCH_LIST" != "" ]; then
233+
# NOTE: This is generally set by Nova CI; see:
234+
# .github/scripts/nova_dir.bash
232235
echo "[BUILD] Using the environment-supplied TORCH_CUDA_ARCH_LIST as the CUDA targets ..."
233236
local arch_list="${TORCH_CUDA_ARCH_LIST}"
234237

@@ -251,8 +254,8 @@ __configure_fbgemm_gpu_build_cuda () {
251254
local arch_list="7.0;8.0;9.0;9.0a;10.0;10.0a;12.0;12.0a"
252255

253256
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
256259
local arch_list="7.0;8.0;9.0;9.0a"
257260

258261
else

.github/scripts/nova_dir.bash

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ fi
2222
## Overwrite existing ENV VAR in Nova
2323
if [[ "$CONDA_ENV" != "" ]]; then export CONDA_RUN="conda run --no-capture-output -p ${CONDA_ENV}" && echo "$CONDA_RUN"; fi
2424

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
2932
export TORCH_CUDA_ARCH_LIST="7.0;8.0;9.0;9.0a"
3033
echo "Set TORCH_CUDA_ARCH_LIST to: ${TORCH_CUDA_ARCH_LIST}"
3134

0 commit comments

Comments
 (0)