Skip to content

Commit 6b0627f

Browse files
authored
Create ROCm 6.2 Installers (#369)
* Add ROCm 6.2 to CPACK workflow. * Update APT-Get packages - hipcc is no longer included in hip-runtime-amd meta packages. This change standardizes the installs with the other OSes. * Bump version to 1.11.4 --------- Signed-off-by: David Galiffi <[email protected]>
1 parent d0d9749 commit 6b0627f

File tree

4 files changed

+23
-21
lines changed

4 files changed

+23
-21
lines changed

.github/workflows/cpack.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
- os-distro: "ubuntu"
5555
os-version: "20.04"
5656
rocm-version: "6.1"
57+
- os-distro: "ubuntu"
58+
os-version: "20.04"
59+
rocm-version: "6.2"
5760
# ubuntu 22.04
5861
- os-distro: "ubuntu"
5962
os-version: "22.04"
@@ -76,6 +79,9 @@ jobs:
7679
- os-distro: "ubuntu"
7780
os-version: "22.04"
7881
rocm-version: "6.1"
82+
- os-distro: "ubuntu"
83+
os-version: "22.04"
84+
rocm-version: "6.2"
7985
# opensuse 15.3
8086
- os-distro: "opensuse"
8187
os-version: "15.3"
@@ -130,6 +136,9 @@ jobs:
130136
- os-distro: "opensuse"
131137
os-version: "15.5"
132138
rocm-version: "6.1"
139+
- os-distro: "opensuse"
140+
os-version: "15.5"
141+
rocm-version: "6.2"
133142
# RHEL 8.7
134143
- os-distro: "rhel"
135144
os-version: "8.7"
@@ -175,6 +184,9 @@ jobs:
175184
- os-distro: "rhel"
176185
os-version: "8.9"
177186
rocm-version: "6.1"
187+
- os-distro: "rhel"
188+
os-version: "8.9"
189+
rocm-version: "6.2"
178190
# RHEL 9.1
179191
- os-distro: "rhel"
180192
os-version: "9.1"
@@ -211,6 +223,9 @@ jobs:
211223
- os-distro: "rhel"
212224
os-version: "9.3"
213225
rocm-version: "6.1"
226+
- os-distro: "rhel"
227+
os-version: "9.3"
228+
rocm-version: "6.2"
214229

215230
steps:
216231
- name: Free Disk Space

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.11.3
1+
1.11.4

docker/Dockerfile.ubuntu

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ARG ROCM_REPO_VERSION="debian"
1919
ARG ROCM_VERSION="0.0"
2020
ARG ROCM_REPO_DIST="ubuntu"
2121
ARG PYTHON_VERSIONS="6 7 8 9 10 11 12"
22+
ARG AMDGPU_DEB=6.0/ubuntu/focal/amdgpu-install_6.0.60000-1_all.deb
2223
ENV PATH ${HOME}/.local/bin:${PATH}
2324

2425
RUN apt-get update && \
@@ -27,19 +28,10 @@ RUN apt-get update && \
2728
python3 -m pip install 'cmake==3.21.4'
2829

2930
RUN if [ "${ROCM_VERSION}" != "0.0" ]; then \
30-
if [ -d /etc/apt/trusted.gpg.d ]; then \
31-
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/rocm.gpg; \
32-
else \
33-
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add -; \
34-
fi && \
35-
echo "deb [arch=amd64] https://repo.radeon.com/rocm/apt/${ROCM_REPO_VERSION}/ ${ROCM_REPO_DIST} main" | tee /etc/apt/sources.list.d/rocm.list && \
31+
wget https://repo.radeon.com/amdgpu-install/${ROCM_VERSION}/ubuntu/${ROCM_REPO_DIST}/${AMDGPU_DEB} && \
32+
apt-get install -y ./${AMDGPU_DEB} && \
3633
apt-get update && \
37-
apt-get dist-upgrade -y && \
38-
apt-get install -y hsa-amd-aqlprofile hsa-rocr-dev hsakmt-roct-dev && \
39-
apt-get install -y hip-base hip-runtime-amd hip-dev && \
40-
apt-get install -y rocm-llvm rocm-core rocm-smi-lib rocm-device-libs && \
41-
apt-get install -y roctracer-dev rocprofiler-dev rccl-dev ${EXTRA_PACKAGES} && \
42-
if [ "$(echo ${ROCM_VERSION} | awk -F '.' '{print $1}')" -lt "5" ]; then apt-get install -y rocm-dev; fi && \
34+
apt-get install -y rocm-dev rocm-smi-lib roctracer-dev rocprofiler-dev rccl-dev libpciaccess0 ${EXTRA_PACKAGES} && \
4335
apt-get autoclean; \
4436
fi
4537

docker/build-docker.sh

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,28 +174,23 @@ do
174174
ROCM_REPO_DIST="ubuntu"
175175
ROCM_REPO_VERSION=${ROCM_VERSION}
176176
case "${ROCM_VERSION}" in
177-
4.1* | 4.0*)
178-
ROCM_REPO_DIST="xenial"
179-
;;
180177
5.3 | 5.3.* | 5.4 | 5.4.* | 5.5 | 5.5.* | 5.6 | 5.6.* | 5.7 | 5.7.* | 6.*)
181178
case "${VERSION}" in
182179
22.04)
183-
ROCM_REPO_DIST="ubuntu"
180+
ROCM_REPO_DIST="jammy"
184181
;;
185182
20.04)
186183
ROCM_REPO_DIST="focal"
187184
;;
188-
18.04)
189-
ROCM_REPO_DIST="bionic"
190-
;;
191185
*)
192186
;;
193187
esac
188+
ROCM_DEB=amdgpu-install_${ROCM_MAJOR}.${ROCM_MINOR}.${ROCM_VERSN}-1_all.deb
194189
;;
195190
*)
196191
;;
197192
esac
198-
verbose-build docker build . ${PULL} --progress plain -f ${DOCKER_FILE} --tag ${CONTAINER} --build-arg DISTRO=${DISTRO} --build-arg VERSION=${VERSION} --build-arg ROCM_VERSION=${ROCM_VERSION} --build-arg ROCM_REPO_VERSION=${ROCM_REPO_VERSION} --build-arg ROCM_REPO_DIST=${ROCM_REPO_DIST} --build-arg PYTHON_VERSIONS=\"${PYTHON_VERSIONS}\"
193+
verbose-build docker build . ${PULL} --progress plain -f ${DOCKER_FILE} --tag ${CONTAINER} --build-arg DISTRO=${DISTRO} --build-arg VERSION=${VERSION} --build-arg ROCM_VERSION=${ROCM_VERSION} --build-arg ROCM_REPO_VERSION=${ROCM_REPO_VERSION} --build-arg ROCM_REPO_DIST=${ROCM_REPO_DIST} --build-arg AMDGPU_DEB=${ROCM_DEB} --build-arg PYTHON_VERSIONS=\"${PYTHON_VERSIONS}\"
199194
elif [ "${DISTRO}" = "rhel" ]; then
200195
if [ -z "${VERSION_MINOR}" ]; then
201196
send-error "Please provide a major and minor version of the OS. Supported: >= 8.7, <= 9.3"

0 commit comments

Comments
 (0)