Skip to content

Commit e942f9c

Browse files
WBobbyyanyao-wang
authored andcommitted
Fix ROCm installation failure in Ubuntu22.04 (pytorch#1285)
Co-authored-by: Wang, Yanyao <[email protected]>
1 parent 7132452 commit e942f9c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.ci/docker/common/install_rocm.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ install_ubuntu() {
1616
# gpg-agent is not available by default on 20.04
1717
apt-get install -y --no-install-recommends gpg-agent
1818
fi
19+
if [[ $UBUNTU_VERSION == 22.04 ]]; then
20+
apt-get install -y --no-install-recommends gpg-agent
21+
echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \
22+
| sudo tee /etc/apt/preferences.d/rocm-pin-600
23+
fi
1924
apt-get install -y kmod
2025
apt-get install -y wget
2126

0 commit comments

Comments
 (0)