nvdocker is library built on top of the docker-py python sdk to build and run docker containers using nvidia-docker. Targets nvidia-docker2
Project description
nvdocker is library built on top of the docker-py python sdk to build and run docker containers using nvidia-docker.
Targets nvidia-docker2
Installation
Install nvidia-docker
Install nvdocker
pip install nvdocker
Usage
These variables are already set in NVIDIA’s official CUDA images.
visible_devices
This variable controls which GPUs will be made accessible inside the container.
Possible values:
0,1,2, GPU-fef8089b …: a comma-separated list of GPU UUID(s) or index(es),
all: all GPUs will be accessible, this is the default value in our container images,
none: no GPU will be accessible, but driver capabilities will be enabled.
void or empty or unset: nvidia-container-runtime will have the same behavior as runc.
driver_capabilites
This option controls which driver libraries/binaries will be mounted inside the container.
Possible values
compute,video,graphics,utility …: a comma-separated list of driver features the container needs,
all: enable all available driver capabilities.
empty or unset: use default driver capability: utility.
Supported driver capabilities
compute: required for CUDA and OpenCL applications,
compat32: required for running 32-bit applications,
graphics: required for running OpenGL and Vulkan applications,
utility: required for using nvidia-smi and NVML,
video: required for using the Video Codec SDK.
require
A logical expression to define constraints on the configurations supported by the container.
Supported constraints
cuda: constraint on the CUDA driver version,
driver: constraint on the driver version,
arch: constraint on the compute architectures of the selected GPUs.
Expressions
cuda
The version of the CUDA toolkit used by the container. If the version of the NVIDIA driver is insufficient to run this version of CUDA, the container will not be started.
Possible values
cuda>=7.5, cuda>=8.0, cuda>=9.0 …: any valid CUDA version in the form major.minor.
cuda_vesion
disable_require
Single switch to disable all the constraints of the form
Copyright and License
This project is released under the UIUC/NCSA License. docker-py is licensed under the Apache License 2.0. nvidia-docker and nvidia-container-runtime are licensed under the BSD 3-clause license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nvdocker-0.0.2a4.tar.gz
.
File metadata
- Download URL: nvdocker-0.0.2a4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0ab6274961c1bf72f25983181ae67c9e319d3d902275f9cf7ae946ea6100d1 |
|
MD5 | 948f33a759e281d4850a4301f9876c2f |
|
BLAKE2b-256 | 6568d27d137a8734ef4ad45307d09a3a621903b7f62fc98ce9dd3804b2ff360c |
File details
Details for the file nvdocker-0.0.2a4-py2.py3-none-any.whl
.
File metadata
- Download URL: nvdocker-0.0.2a4-py2.py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64761b7187f5423b609986a202c04448fd3eccaa6862cfef79a8755aaa9c6806 |
|
MD5 | 84b6c62ff5b6f6a63bc115316d0474a2 |
|
BLAKE2b-256 | b26b91625e8afb3684f471096edff53026ca0a3abb3e37ab5e55df0323278831 |