From c00d1408e0da5c37552ec488fe9bce609730ad7a Mon Sep 17 00:00:00 2001 From: Hannes Vogt Date: Mon, 17 Jun 2024 14:01:51 +0200 Subject: [PATCH] Fix HIP for Ubuntu 24.04 (#92) See #93 Fixes for other images in separate PRs. --- hip/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hip/Dockerfile b/hip/Dockerfile index 5432fb7..ef9c51c 100644 --- a/hip/Dockerfile +++ b/hip/Dockerfile @@ -4,7 +4,11 @@ FROM ${REPOSITORY}:${BASE} LABEL maintainer="Felix Thaler " # from https://docs.amd.com/bundle/ROCm-Installation-Guide-v5.4/page/How_to_Install_ROCm.html -RUN wget https://repo.radeon.com/amdgpu-install/22.40/ubuntu/jammy/amdgpu-install_5.4.50401-1_all.deb && \ +# TODO(havogt): remove jammy packages once official support for 24.04 is there, +# workaround taken from https://github.com/nktice/AMD-AI/blob/99b51b7ce08f339e81ccede05d65a21d10c6a27b/README.md +RUN add-apt-repository -y -s deb http://security.ubuntu.com/ubuntu jammy main universe && \ + add-apt-repository ppa:deadsnakes/ppa -y && \ + wget https://repo.radeon.com/amdgpu-install/22.40/ubuntu/jammy/amdgpu-install_5.4.50401-1_all.deb && \ apt-get update -qq && \ DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ./amdgpu-install_5.4.50401-1_all.deb && \ apt-get update -qq && \