From 7e93b2f4c95de36aaff33be29bcb9f3075751cdd Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 25 Oct 2024 11:27:39 -0600 Subject: [PATCH] AMDGPU example Signed-off-by: Jonathon Anderson --- examples/rockylinux-9.4-amdgpu/Containerfile | 7 +++++++ examples/rockylinux-9.4-amdgpu/README.md | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 examples/rockylinux-9.4-amdgpu/Containerfile create mode 100644 examples/rockylinux-9.4-amdgpu/README.md diff --git a/examples/rockylinux-9.4-amdgpu/Containerfile b/examples/rockylinux-9.4-amdgpu/Containerfile new file mode 100644 index 0000000..d58f9a3 --- /dev/null +++ b/examples/rockylinux-9.4-amdgpu/Containerfile @@ -0,0 +1,7 @@ +FROM ghcr.io/warewulf/warewulf-rockylinux:9.4 + +RUN dnf -y install https://repo.radeon.com/amdgpu-install/6.2.2/el/9.4/amdgpu-install-6.2.60202-1.el9.noarch.rpm \ + && dnf clean all \ + && amdgpu-install -y --usecase=dkms \ + && ls /lib/modules | xargs -n1 /usr/lib/dkms/dkms_autoinstaller start \ + && dkms status diff --git a/examples/rockylinux-9.4-amdgpu/README.md b/examples/rockylinux-9.4-amdgpu/README.md new file mode 100644 index 0000000..baa5036 --- /dev/null +++ b/examples/rockylinux-9.4-amdgpu/README.md @@ -0,0 +1,15 @@ +# Rocky Linux with the AMD GPU driver + +https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/amdgpu-install.html + +This container definition demonstrates building a Rocky Linux based container +incorporating the AMDGPU driver for AMD GPU support. + +The container may be built with Podman. + +```shell + +podman build . +``` + +The host that builds the container does _not_ need to have a GPU installed.