Skip to content

Commit 86b759f

Browse files
committed
[ROCm] add gfx1101 to wheels
1 parent 00c8298 commit 86b759f

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
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 & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,7 @@ case ${GPU_ARCH_TYPE} in
9191
TARGET=rocm_final
9292
DOCKER_TAG=rocm${GPU_ARCH_VERSION}
9393
GPU_IMAGE=rocm/dev-centos-7:${GPU_ARCH_VERSION}-complete
94-
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100"
95-
ROCM_REGEX="([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
96-
if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
97-
ROCM_VERSION_INT=$((${BASH_REMATCH[1]}*10000 + ${BASH_REMATCH[2]}*100 + ${BASH_REMATCH[3]:-0}))
98-
else
99-
echo "ERROR: rocm regex failed"
100-
exit 1
101-
fi
102-
if [[ $ROCM_VERSION_INT -ge 60000 ]]; then
103-
PYTORCH_ROCM_ARCH+=";gfx942"
104-
fi
94+
PYTORCH_ROCM_ARCH="gfx900;gfx906;gfx908;gfx90a;gfx1030;gfx1100;gfx1101;gfx942"
10595
DOCKER_GPU_BUILD_ARG="--build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} --build-arg DEVTOOLSET_VERSION=9"
10696
;;
10797
xpu)

0 commit comments

Comments
 (0)