File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ jobs:
146
146
strategy :
147
147
matrix :
148
148
base : [base]
149
+ version : ["6.2.2"]
149
150
steps :
150
151
- uses : actions/checkout@v2
151
152
- name : Free Disk Space (Ubuntu)
@@ -159,17 +160,18 @@ jobs:
159
160
docker build
160
161
--progress=plain
161
162
--cache-from $CR_REPOSITORY:${{ matrix.base }}
162
- --cache-from $CR_REPOSITORY:${{ matrix.base }}-rocm-6.2
163
+ --cache-from $CR_REPOSITORY:${{ matrix.base }}-rocm-${{ matrix.version }}
163
164
--build-arg BUILDKIT_INLINE_CACHE=1
164
- --tag $CR_REPOSITORY:${{ matrix.base }}-rocm-6.2
165
+ --tag $CR_REPOSITORY:${{ matrix.base }}-rocm-${{ matrix.version }}
165
166
--build-arg REPOSITORY=$CR_REPOSITORY
166
167
--build-arg BASE=${{ matrix.base }}
168
+ --build-arg ROCM_VERSION=${{ matrix.version }}
167
169
hip
168
170
- name : Push
169
171
if : ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.repository == 'GridTools/gridtools-docker' }}
170
172
run : >
171
173
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin &&
172
- docker push $CR_REPOSITORY:${{ matrix.base }}-rocm-6.2 &&
174
+ docker push $CR_REPOSITORY:${{ matrix.base }}-rocm-${{ matrix.version }} &&
173
175
docker logout ghcr.io
174
176
175
177
hpx :
Original file line number Diff line number Diff line change @@ -3,14 +3,18 @@ ARG BASE
3
3
FROM ${REPOSITORY}:${BASE}
4
4
LABEL maintainer=
"Felix Thaler <[email protected] >"
5
5
6
- # NOTE: If you change the ROCm version here, also change it in the build.yml to avoid overwriting the old image,
7
- # see https://github.com/GridTools/gridtools-docker/issues/97.
8
- RUN wget https://repo.radeon.com/amdgpu-install/6.2.1/ubuntu/noble/amdgpu-install_6.2.60201-1_all.deb && \
6
+ ARG ROCM_VERSION
7
+ ENV ROCM_VERSION ${ROCM_VERSION}
8
+
9
+ # NOTE: the newest ROCm release should allow to also install older releases. However, older releases
10
+ # might not necessarily be available on the current Ubuntu version. For example, on Ubuntu 24.04,
11
+ # ROCm 6.2 is currently the only available release.
12
+ RUN wget https://repo.radeon.com/amdgpu-install/6.2.2/ubuntu/noble/amdgpu-install_6.2.60202-1_all.deb && \
9
13
apt-get update -qq && \
10
- DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ./amdgpu-install_6.2.60201 -1_all.deb && \
14
+ DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ./amdgpu-install_6.2.60202 -1_all.deb && \
11
15
apt-get update -qq && \
12
- amdgpu-install -y --usecase=rocm,hip --no-dkms && \
16
+ amdgpu-install -y --usecase=hiplibsdk --no-dkms --rocmrelease=${ROCM_VERSION} && \
13
17
rm -rf /var/lib/apt/lists/*
14
18
15
- ENV ROCM_PATH=/opt/rocm
19
+ ENV ROCM_PATH=/opt/rocm-${ROCM_VERSION}
16
20
ENV PATH=${ROCM_PATH}/bin:${PATH} CXX=${ROCM_PATH}/bin/hipcc
You can’t perform that action at this time.
0 commit comments