Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions envs/x86/rocm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +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 clean all && \
dnf update -y && \
dnf --enablerepo epel install -y rocm-hip-libraries rocm-hip-runtime \
RUN dnf update -y \
&& dnf install -y epel-release \
&& dnf update -y \
&& dnf --enablerepo epel install -y \
bzip2 \
cmake \
curl-minimal \
Expand All @@ -178,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

Expand Down