


We can run some gpu specific code inside or, just call nvidia-smi inside a podman container. Open /etc/nvidia-container-runtime/config.toml as super user with the text editor of your choice and set no-cgroups to true. sudo yum install nvidia-container-runtime Sudo tee /etc//nvidia-container-runtime.repo distribution=rhel8.3Ĭurl -s -L $distribution/nvidia-container-runtime.repo | \ At the time of writing this article the latest was rhel8.3. First, check which is the latest version of RHEL that has a release for the container runtime here. So what you have to do here is use the release for RHEL.

However, since it's compatible with RHEL, Fedora should be too. Nvidia officially provides conatiner runtime releases for RHEL but not for Fedora. The CUDA version of the driver installed on your host should match the one inside the container. | GPU GI CI PID Type Process name GPU Memory | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. Podman should be installed by default but there's no harm in checking! podman -version Wait for a while (the kernel needs to run mods for the drivers) and then type reboot in the terminal and hit enter. Sudo dnf install xorg-x11-drv-nvidia-cuda Sudo rpm -Uvh $(rpm -E %fedora).noarch.rpm sudo rpm -Uvh $(rpm -E %fedora).noarch.rpm If you don't have it already, then run the following commands to install it. Make sure to have the non free RPM Fusion Nvidia driver installed before you start because nvidia-container-runtime will need that driver. I'm not going into the nitty gritty details on docker vs podman but if you really want to know more you can read this article. It's been a while since Fedora has moved away from docker to podman.
