Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit 2e928d9

Browse files
authored
Add NOTES.md for CUDA feature (devcontainers#119)
1 parent 8befe8c commit 2e928d9

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/nvidia-cuda/NOTES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Compatibility
2+
3+
This Feature adds shared libraries for NVIDIA CUDA and is only useful for devcontainers that run on a host machine with an NVIDIA GPU. Within your devcontainer, use the `nvidia-smi` command to ensure that your GPU is available for CUDA.
4+
5+
If the `nvidia-smi` command is not available within your devcontainer, you may need to complete the following steps:
6+
7+
### Install the NVIDIA Container Toolkit
8+
9+
Follow [NVIDIA's instructions to install the NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/overview.html) on your host machine. The NVIDIA Container Toolkit is available on a variety of Linux distributions. Make sure you have installed the NVIDIA driver for your Linux distribution before installing the NVIDIA Container Toolkit.
10+
11+
### Enable GPU passthrough
12+
13+
Enable GPU passthrough to your devcontainer by adding `["--gpus", "all"]` to your devcontainer's `runArgs` property. Here's an example of a devcontainer with this property:
14+
15+
```json
16+
{
17+
"runArgs": ["--gpus", "all"]
18+
}
19+
```

0 commit comments

Comments
 (0)