Installing Podman and the NVIDIA Container Toolkit

Red Hat Enterprise Linux with KVM Deployment Guide (0.1.0)

Next, we will install Podman with the following commands.

Note

For help with podman documentation and syntax, please refer to the official podman documentation.

Copy
Copied!
            

Sudo yum update -y Sudo yum install epel-release -y Sudo yum install podman -y

Tip

Optional

To check your podman version, run the following:

Copy
Copied!
            

Podman –version Podman info

Follow the Step 2: Install NVIDIA Container Toolkit to install the NVIDIA Container Toolkit.

Single GPU

Copy
Copied!
            

#### Test nvidia-smi with the latest official CUDA image $ sudo podman run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi

Multiple GPUs

Copy
Copied!
            

#### Test nvidia-smi with the latest official CUDA image on two GPUs $ sudo podman run --rm --gpus 2 nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi

This test should output nvidia-smi information. Additional information on advanced configuration can be found here.

Previous Setting Up NVIDIA vGPU Devices
Next Installing AI and Data Science Applications and Frameworks
© Copyright 2024, NVIDIA. Last updated on Apr 2, 2024.