Skip to content

Commit d574ab2

Browse files
committed
Install CUDA in devcontainer
1 parent 52db9ef commit d574ab2

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
22
// README at: https://github.com/devcontainers/templates/tree/main/src/python
33
{
4-
"name": "Python 3",
4+
"name": "ODM",
55
// The cpp image includes python and we need the c++ toolchains to build our dependencies.
66
"image": "mcr.microsoft.com/devcontainers/cpp:ubuntu-24.04",
77
"features": {
8-
"ghcr.io/devcontainers/features/common-utils:2": {}
8+
"ghcr.io/devcontainers/features/common-utils:2": {},
9+
"ghcr.io/devcontainers/features/nvidia-cuda:3": {}
910
},
10-
11-
"postCreateCommand": "apt install python3-gdal"
11+
"hostRequirements": {
12+
"gpu": "optional"
13+
},
14+
"postCreateCommand": "bash configure.sh install"
1215
}

0 commit comments

Comments
 (0)