aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamruddhi Khandale <skhandale@microsoft.com>2023-07-11 22:50:29 +0300
committerGitHub <noreply@github.com>2023-07-11 22:50:29 +0300
commit0e8940abead5068668bd78632ec9b20757541c95 (patch)
tree0bcfbad18851ff98cf424be3934ed1dae9b8fbb7
parent07693965d74d289e9a4035907d2414d9683e0773 (diff)
Automated documentation update (#610)
Automated documentation update [skip ci] Co-authored-by: github-actions <github-actions@github.com>
-rw-r--r--src/nvidia-cuda/README.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nvidia-cuda/README.md b/src/nvidia-cuda/README.md
index 38a989a..7a0343d 100644
--- a/src/nvidia-cuda/README.md
+++ b/src/nvidia-cuda/README.md
@@ -32,14 +32,19 @@ Follow [NVIDIA's instructions to install the NVIDIA Container Toolkit](https://d
### Enable GPU passthrough
-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:
+Enable GPU passthrough to your devcontainer by using `hostRequirements`. Here's an example of a devcontainer with this property:
```json
{
- "runArgs": ["--gpus", "all"]
+ "hostRequirements": {
+ "gpu": "optional"
+ }
}
```
+> Note: Setting `gpu` property's value to `true` will work with GPU machine types, but fail with CPUs. Hence, setting it to `optional` works in both cases. See [schema](https://containers.dev/implementors/json_schema/#base-schema) for more configuration details.
+
+
## OS Support