-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,14 +3,18 @@ ARG BASE | |
FROM ${REPOSITORY}:${BASE} | ||
LABEL maintainer="Felix Thaler <[email protected]>" | ||
|
||
# NOTE: If you change the ROCm version here, also change it in the build.yml to avoid overwriting the old image, | ||
# see https://github.com/GridTools/gridtools-docker/issues/97. | ||
RUN wget https://repo.radeon.com/amdgpu-install/6.2.1/ubuntu/noble/amdgpu-install_6.2.60201-1_all.deb && \ | ||
ARG ROCM_VERSION | ||
ENV ROCM_VERSION ${ROCM_VERSION} | ||
|
||
# NOTE: the newest ROCm release should allow to also install older releases. However, older releases | ||
# might not necessarily be available on the current Ubuntu version. For example, on Ubuntu 24.04, | ||
# ROCm 6.2 is currently the only available release. | ||
RUN wget https://repo.radeon.com/amdgpu-install/6.2.2/ubuntu/noble/amdgpu-install_6.2.60202-1_all.deb && \ | ||
apt-get update -qq && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ./amdgpu-install_6.2.60201-1_all.deb && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ./amdgpu-install_6.2.60202-1_all.deb && \ | ||
apt-get update -qq && \ | ||
amdgpu-install -y --usecase=rocm,hip --no-dkms && \ | ||
amdgpu-install -y --usecase=hiplibsdk --no-dkms --rocmrelease=${ROCM_VERSION} && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV ROCM_PATH=/opt/rocm | ||
ENV ROCM_PATH=/opt/rocm-${ROCM_VERSION} | ||
ENV PATH=${ROCM_PATH}/bin:${PATH} CXX=${ROCM_PATH}/bin/hipcc |