Skip to content

Commit a4af92c

Browse files
committed
[ROCm] add gfx1101 to wheels
- Remove older ROCm 5.x build condition
1 parent 43a2a23 commit a4af92c

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

.ci/docker/libtorch/build.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,7 @@ case ${GPU_ARCH_TYPE} in
3939
BASE_TARGET=rocm
4040
DOCKER_TAG=rocm${GPU_ARCH_VERSION}
4141
GPU_IMAGE=rocm/dev-ubuntu-20.04:${GPU_ARCH_VERSION}-complete
42-
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100"
43-
ROCM_REGEX="([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
44-
if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
45-
ROCM_VERSION_INT=$((${BASH_REMATCH[1]}*10000 + ${BASH_REMATCH[2]}*100 + ${BASH_REMATCH[3]:-0}))
46-
else
47-
echo "ERROR: rocm regex failed"
48-
exit 1
49-
fi
50-
if [[ $ROCM_VERSION_INT -ge 60000 ]]; then
51-
PYTORCH_ROCM_ARCH+=";gfx942"
52-
fi
42+
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100;gfx1101;gfx942"
5343
DOCKER_GPU_BUILD_ARG="--build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH}"
5444
;;
5545
*)

.ci/docker/manywheel/build.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,7 @@ case ${GPU_ARCH_TYPE} in
9595
MANY_LINUX_VERSION="2_28"
9696
GPU_IMAGE=rocm/dev-almalinux-8:${GPU_ARCH_VERSION}-complete
9797
fi
98-
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx942;gfx1030;gfx1100"
99-
ROCM_REGEX="([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
100-
if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
101-
ROCM_VERSION_INT=$((${BASH_REMATCH[1]}*10000 + ${BASH_REMATCH[2]}*100 + ${BASH_REMATCH[3]:-0}))
102-
else
103-
echo "ERROR: rocm regex failed"
104-
exit 1
105-
fi
98+
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100;gfx1101;gfx942"
10699
DOCKER_GPU_BUILD_ARG="--build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} --build-arg DEVTOOLSET_VERSION=9"
107100
;;
108101
xpu)

0 commit comments

Comments
 (0)