Skip to content

Commit a01e8a2

Browse files
chuanqi129pytorchmergebot
authored andcommitted
[BE] Update xpu driver repo for CD used almalinux 8.10 (pytorch#157356)
XPU CD docker image built on `quay.io/pypa/manylinux_2_28_x86_64`, which based on almalinux 8.10 Pull Request resolved: pytorch#157356 Approved by: https://github.com/EikanWang, https://github.com/malfet
1 parent 7fff317 commit a01e8a2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.ci/docker/common/install_xpu.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,13 @@ function install_ubuntu() {
6464

6565
function install_rhel() {
6666
. /etc/os-release
67-
if [[ "${ID}" == "rhel" ]]; then
68-
if [[ ! " 8.8 8.10 9.0 9.2 9.3 " =~ " ${VERSION_ID} " ]]; then
69-
echo "RHEL version ${VERSION_ID} not supported"
70-
exit
71-
fi
72-
elif [[ "${ID}" == "almalinux" ]]; then
73-
# Workaround for almalinux8 which used by quay.io/pypa/manylinux_2_28_x86_64
74-
VERSION_ID="8.8"
67+
if [[ ! " 8.8 8.10 9.0 9.2 9.3 " =~ " ${VERSION_ID} " ]]; then
68+
echo "RHEL version ${VERSION_ID} not supported"
69+
exit
70+
fi
71+
# Using testing channel for CD build
72+
if [[ "${ID}" == "almalinux" ]]; then
73+
XPU_DRIVER_VERSION="/testing"
7574
fi
7675

7776
dnf install -y 'dnf-command(config-manager)'

0 commit comments

Comments
 (0)