On May 19, 2022 NVIDIA made a release of their Open GPU kernel modules for their newer GPU platforms (Turing and newer) with Risc-V system processor. Meanwhile we have packages available in our currently supported openSUSE/SLE distributions. If you want to use these you need to install nvidia-open-driver-G06-signed and kernel-firmware-nvidia-gspx-G06 packages.

Installation

Installation instructions since Leap 15.5/SLE15-SP4 and Tumbleweed:

# will install needed packages
zypper in nvidia-open-driver-G06-signed-kmp-default kernel-firmware-nvidia-gspx-G06

Find supported Turing/Ampere/Hopper GPUs here. Check with inxi -aG. Use hwinfo --gfxcard on SLE.

Display Drivers

nvidia-video-G06, nvidia-gl-G06 and nvidia-compute-G06 packages are available via NVIDIA’s openSUSE/SLE repositories, which then can be used together with NVIDIA’s Open GPU kernel modules above.

Installing Display Drivers on Leap 15.x/Tumbleweed/SLE15-SPx

# if you have not added this repository yet
# Leap 15.5
zypper addrepo -p 99 https://download.nvidia.com/opensuse/leap/15.5/  nvidia
# Leap 15.6
zypper addrepo -p 99 https://download.nvidia.com/opensuse/leap/15.6/  nvidia
# Tumbleweed
https://download.nvidia.com/opensuse/tumbleweed/
# SLE15-SP4 (only LTSS)
zypper addrepo -p 99 https://download.nvidia.com/suse/sle15sp4/  nvidia
# SLE15-SP5
zypper addrepo -p 99 https://download.nvidia.com/suse/sle15sp5/  nvidia
# SLE15-SP6
zypper addrepo -p 99 https://download.nvidia.com/suse/sle15sp6/  nvidia

# install all required packages
zypper in nvidia-video-G06 nvidia-gl-G06 nvidia-compute-G06

CUDA

With that - after installing nvidia-compute-G06 (contains libcuda) - you can experiment with CUDA. Install CUDA stack from NVIDIA’s webserver.

Installing CUDA on Leap 15.x/Tumbleweed/SLE15-SPx

# if you have not added this repository yet
# Leap 15.x/Tumbleweed
zypper addrepo -p 100 https://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/  cuda
# SLE15-SPx (x86_64)
zypper addrepo -p 100 https://developer.download.nvidia.com/compute/cuda/repos/sles15/x86_64/  cuda
# SLE15-SPx (aarch64)
zypper addrepo -p 100 https://developer.download.nvidia.com/compute/cuda/repos/sles15/sbsa/  cuda

# will install needed CUDA packages
zypper in cuda-12-3

Let’s have a first test for using libcuda.

/usr/local/cuda-12.3/extras/demo_suite/deviceQuery
# Unfortunately this is not available for aarch64; but there are
# other samples available below /usr/local/cuda-12.3/extras/ ...

CUDA Minimal Installation

Repository and Package Dependancies as Overview

CUDA: Repository and Package Dependancies

Explained in Detail

These CUDA Packages and Proprietary:X11:Drivers repositories on the picture right above are hosted on the NVIDIA server.

What happens is that package cuda requires package cuda-runtime (both in CUDA packages repo), which again requires cuda-drivers. The last one is provided by our nvidia-compute-utils-G06 package in Proprietary:X11:Drivers repository. It has higher priority than the cuda-drivers meta package from CUDA Packages repository, which would require in addition the display driver packages nvidia-video-G06 and nvidia-gl-G06 with all kind of dependancies we would like to avoid for a CUDA Minimal Installation. Our nvidia-compute-utils-G06 package in Proprietary:X11:Drivers requires nvidia-compute-G06 (same repository), which again requires nvidia-open-driver-G06-signed-kmp package included in our openSUSE/SLE distributions or nvidia-driver-G06-kmp package in Proprietary:X11:Drivers repository. Last but not least kernel-firmware-nvidia-gspx-G06 package is required by nvidia-open-driver-G06-signed-kmp.

Example for installation on openSUSE Leap 15.5:

Minimal CUDA: Zypper Install

Feedback

If you have questions, comments and any kind of feedback regarding this topic, don’t hesitate to contact me via email. Thanks!