The gated modifiers used to add support for GDS, Mofed, and CUDA Forward Comatibility only check the NVIDIA_VISIBLE_DEVICES envvar to determine whether GPUs are requested and modifications should be made. This means that use cases where volume mounts are used to request devices (e.g. when using the GPU Device Plugin) are not supported. This patch takes visibleDevicesFromEnvVar private, making VisibleDevices the only exported method to query valid devices. And edits the gated modifiers to use this func, ensuring device requests via mounts are also taken into acount. Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com> |
||
---|---|---|
.github | ||
cmd | ||
deployments | ||
docker | ||
hack | ||
internal | ||
packaging | ||
pkg | ||
scripts | ||
testdata | ||
tests | ||
third_party | ||
vendor | ||
.common-ci.yml | ||
.dockerignore | ||
.gitignore | ||
.gitlab-ci.yml | ||
.gitmodules | ||
.golangci.yml | ||
.nvidia-ci.yml | ||
CHANGELOG.md | ||
CONTRIBUTING.md | ||
DEVELOPMENT.md | ||
go.mod | ||
go.sum | ||
LICENSE | ||
Makefile | ||
README.md | ||
RELEASE.md | ||
SECURITY.md | ||
versions.mk |
NVIDIA Container Toolkit
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!
- Please let us know by filing a new issue
- You can contribute by creating a merge request to our public GitLab repository