Installing Podman and the NVIDIA Container Toolkit

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.

© Copyright 2022-2023, NVIDIA. Last updated on Sep 11, 2023.