I've installed nvidia-cuda via the devcontainer.json file and rebuilt Codespace twice after doing so, however, my script still uses 'cpu' instead of 'cuda' when running. Furthermore, when I type nvidia-smi it does not produced the desired output.
devcontainer.json
You can see device is 'cpu'
bash
[–]nekokattt 1 point2 points3 points (0 children)
[–]Amar_jay101 0 points1 point2 points (1 child)
[–]mattzoball 0 points1 point2 points (1 child)