From 45b03d924a268bcdda2bdc84c4d5eb1c39aa94fd Mon Sep 17 00:00:00 2001 From: Joe Schoonover Date: Thu, 5 Feb 2026 11:38:06 -0500 Subject: [PATCH 1/2] add epel --- envs/x86/rocm/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/envs/x86/rocm/Dockerfile b/envs/x86/rocm/Dockerfile index 376c685..f9a4290 100644 --- a/envs/x86/rocm/Dockerfile +++ b/envs/x86/rocm/Dockerfile @@ -166,6 +166,9 @@ COPY --from=builder /opt/software /opt/software COPY ./envs/x86/rocm/rocm.repo /etc/yum.repos.d/rocm.repo ARG GPU_BACKEND_VERSION=6.4.3 RUN sed -i "s/@GPU_BACKEND_VERSION@/${GPU_BACKEND_VERSION}/g" /etc/yum.repos.d/rocm.repo && \ + && dnf update -y \ + && dnf install -y epel-release \ + && dnf update -y \ dnf clean all && \ dnf update -y && \ dnf --enablerepo epel install -y rocm-hip-libraries rocm-hip-runtime \ From e517b78920b2e96da88617cf7a0fcf47afd126d7 Mon Sep 17 00:00:00 2001 From: Joe Schoonover Date: Thu, 5 Feb 2026 12:16:08 -0500 Subject: [PATCH 2/2] Split rocm and base tools install --- envs/x86/rocm/Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/envs/x86/rocm/Dockerfile b/envs/x86/rocm/Dockerfile index f9a4290..dcde990 100644 --- a/envs/x86/rocm/Dockerfile +++ b/envs/x86/rocm/Dockerfile @@ -162,16 +162,10 @@ FROM docker.io/rockylinux:9 COPY --from=builder /opt/spack-environment /opt/spack-environment COPY --from=builder /opt/software /opt/software -# Install HIP # -COPY ./envs/x86/rocm/rocm.repo /etc/yum.repos.d/rocm.repo -ARG GPU_BACKEND_VERSION=6.4.3 -RUN sed -i "s/@GPU_BACKEND_VERSION@/${GPU_BACKEND_VERSION}/g" /etc/yum.repos.d/rocm.repo && \ - && dnf update -y \ +RUN dnf update -y \ && dnf install -y epel-release \ && dnf update -y \ - dnf clean all && \ - dnf update -y && \ - dnf --enablerepo epel install -y rocm-hip-libraries rocm-hip-runtime \ + && dnf --enablerepo epel install -y \ bzip2 \ cmake \ curl-minimal \ @@ -181,6 +175,14 @@ RUN sed -i "s/@GPU_BACKEND_VERSION@/${GPU_BACKEND_VERSION}/g" /etc/yum.repos.d/r gcc \ gcc-gfortran +# Install HIP # +COPY ./envs/x86/rocm/rocm.repo /etc/yum.repos.d/rocm.repo +ARG GPU_BACKEND_VERSION=6.4.3 +RUN sed -i "s/@GPU_BACKEND_VERSION@/${GPU_BACKEND_VERSION}/g" /etc/yum.repos.d/rocm.repo \ + && dnf clean all \ + && dnf update -y \ + && dnf install -y rocm-hip-sdk rocm-llvm rocm-smi-lib rocminfo + # paths.view is a symlink, so copy the parent to avoid dereferencing and duplicating it COPY --from=builder /opt/views /opt/views