Skip to content

Commit 9bb78f6

Browse files
Set ubuntu distribution correctly for ROCm5.3 and above (#1268)
1 parent 6cec19e commit 9bb78f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

common/install_rocm.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ install_ubuntu() {
4747
ROCM_REPO="xenial"
4848
fi
4949

50+
if [[ $(ver $ROCM_VERSION) -ge $(ver 5.3) ]]; then
51+
ROCM_REPO="${UBUNTU_VERSION_NAME}"
52+
fi
53+
5054
# Add rocm repository
5155
wget -qO - http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add -
5256
local rocm_baseurl="http://repo.radeon.com/rocm/apt/${ROCM_VERSION}"

0 commit comments

Comments
 (0)