Go to file
Evan Lezar f4981f0876
Add cuda-compat-mode config option
This change adds an nvidia-container-runtime.modes.legacy.cuda-compat-mode
config option. This can be set to one of four values:

* ldconfig (default): the --cuda-compat-mode=ldconfig flag is passed to the nvidia-container-cli
* mount: the --cuda-compat-mode=mount flag is passed to the nvidia-conainer-cli
* disabled: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli
* hook: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli AND the
  enable-cuda-compat hook is used to provide forward compatibility.

Note that the disable-cuda-compat-lib-hook feature flag will prevent the enable-cuda-compat
hook from being used. This change also means that the allow-cuda-compat-libs-from-container
feature flag no longer has any effect.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2025-05-13 21:49:53 +02:00
.github Merge pull request #1063 from NVIDIA/dependabot/github_actions/main/slackapi/slack-github-action-2.1.0 2025-05-07 17:19:08 +02:00
cmd Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
deployments Bump nvidia/cuda in /deployments/container 2025-05-08 08:38:12 +00:00
docker Add support for building ubuntu22.04 on arm64 2025-04-06 18:06:36 +03:00
hack [no-relnote] Fix typo in script 2024-10-16 10:53:45 +02:00
internal Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
packaging Move nvidia-ctk hook command into own binary 2024-05-21 12:19:44 +02:00
pkg Allow container runtime executable path to be specified 2025-04-07 17:28:11 +02:00
scripts [no-relnote] Use centos:stream9 for signing container 2025-03-12 12:44:35 +02:00
testdata Add imex mode to CDI spec generation 2024-11-25 13:46:43 +01:00
tests Bump golang.org/x/crypto from 0.37.0 to 0.38.0 in /tests 2025-05-06 08:42:33 +00:00
third_party Bump third_party/libnvidia-container from a198166 to d26524a 2025-05-13 19:48:20 +00:00
vendor Fix mode detection on Thor-based systems 2025-05-13 21:25:11 +02:00
.common-ci.yml Updated .release:staging to stage images in nvstaging 2025-04-17 14:02:33 +02:00
.dockerignore Add dockerfile and makefile to build toolkit-container 2021-10-22 11:57:55 +02:00
.gitignore Rename test folder to tests 2025-01-23 11:46:14 +01:00
.gitlab-ci.yml [no-relnote] Add toolkit install unit test 2024-11-05 14:23:35 -08:00
.gitmodules Update libnvidia-container to github ref 2024-02-01 16:36:10 +01:00
.golangci.yml [no-relnote] Migrate golangci-lint config to v2 2025-04-02 14:18:32 +02:00
.nvidia-ci.yml add ngc image signing job for auto signing 2024-06-12 13:20:35 +05:30
CHANGELOG.md Bump version for v1.17.4 release 2025-02-10 13:24:41 +01:00
CONTRIBUTING.md Ensure LICENSE and CONTRIBUTING.md files are present 2019-10-31 12:56:46 -07:00
DEVELOPMENT.md Rename test folder to tests 2025-01-23 11:46:14 +01:00
go.mod Fix mode detection on Thor-based systems 2025-05-13 21:25:11 +02:00
go.sum Fix mode detection on Thor-based systems 2025-05-13 21:25:11 +02:00
LICENSE Ensure LICENSE and CONTRIBUTING.md files are present 2019-10-31 12:56:46 -07:00
Makefile [no-relnote] Use --exit-code instead of --quiet for mod check 2025-03-06 11:33:48 +02:00
README.md Change master references to main 2022-04-12 14:52:38 +02:00
RELEASE.md [no-relnote] Add RELEASE.md 2024-07-15 14:25:12 +02:00
versions.mk Bump version for v1.17.4 release 2025-02-10 13:24:27 +01:00

NVIDIA Container Toolkit

GitHub license Documentation Package repository

nvidia-container-stack

Introduction

The NVIDIA Container Toolkit allows users to build and run GPU accelerated containers. The toolkit includes a container runtime library and utilities to automatically configure containers to leverage NVIDIA GPUs.

Product documentation including an architecture overview, platform support, and installation and usage guides can be found in the documentation repository.

Getting Started

Make sure you have installed the NVIDIA driver for your Linux Distribution Note that you do not need to install the CUDA Toolkit on the host system, but the NVIDIA driver needs to be installed

For instructions on getting started with the NVIDIA Container Toolkit, refer to the installation guide.

Usage

The user guide provides information on the configuration and command line options available when running GPU containers with Docker.

Issues and Contributing

Checkout the Contributing document!