-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from anderbubble/amdgpu
AMDGPU example
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |