In order to get CUDA when launching inside VSCode, the devcontainer.json needs to include gpu arguments for docker run:
{
"runArgs": [
"--gpus",
"all"
]
}
This isn't necessary when using GitHub Codespaces+GPUs. Before changing the devcontainer, we should make sure this change works with that platform.
In order to get CUDA when launching inside VSCode, the
devcontainer.jsonneeds to includegpuarguments fordocker run:{ "runArgs": [ "--gpus", "all" ] }This isn't necessary when using GitHub Codespaces+GPUs. Before changing the devcontainer, we should make sure this change works with that platform.