Skip to content

Commit f382f52

Browse files
committed
devcontainer: install cuda toolkit
1 parent c0f8568 commit f382f52

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"clang-format",
3131
"ninja-build",
3232
"findent",
33-
"pandoc",
33+
"pandoc"
3434
]
3535
},
3636
"ghcr.io/unh-hpc/features/adios2:0.0.2": {}
3737
},
3838
// Use 'forwardPorts' to make a list of ports inside the container available locally.
3939
// "forwardPorts": [],
4040
// Use 'postCreateCommand' to run commands after the container is created.
41-
"postCreateCommand": "pip install uv && sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && echo 'export OPENGGCMDIR=/workspaces/openggcm' >> /home/vscode/.bashrc && echo 'shopt -u progcomp' >> /home/vscode/.bashrc && echo 'alias ll=\"ls -lrt\"' >> /home/vscode/.bashrc",
41+
"postCreateCommand": "pip install uv && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg && curl -fsSL https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list > /dev/null && sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit nvidia-cuda-toolkit && sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && echo 'export OPENGGCMDIR=/workspaces/openggcm' >> /home/vscode/.bashrc && echo 'shopt -u progcomp' >> /home/vscode/.bashrc && echo 'alias ll=\"ls -lrt\"' >> /home/vscode/.bashrc",
4242
// "echo export OPENGGCMDIR=/workspaces/openggcm >> ~/.zshrc; echo PATH=$HOME/bin:$PATH >> ~/.zshrc",
4343
"customizations": {
4444
"vscode": {
@@ -53,7 +53,7 @@
5353
"charliermarsh.ruff"
5454
]
5555
}
56-
},
56+
}
5757
// Configure tool-specific properties.
5858
// "customizations": {},
5959
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.

0 commit comments

Comments
 (0)