Skip to content

Commit

Permalink
Make gpu requirement optional in devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gonidelis committed Mar 4, 2024
1 parent f6f3000 commit 7c26647
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 30 deletions.
16 changes: 7 additions & 9 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,15 @@ For more information, see the `.devcontainer/make_devcontainers.sh --help` messa

**Note**: When adding or updating supported environments, modify `matrix.yaml` and then rerun this script to synchronize the `devcontainer` configurations.

## Installing Devcontainers on WSL
## Dev Containers on WSL

[!NOTE]

_Make sure you have the Nvidia driver installed in your Windows host before moving further_. Type in `nvidia-smi` for verification.
> [!NOTE]
> _Make sure you have the Nvidia driver installed on your Windows host before moving further_. Type in `nvidia-smi` for verification.
### Install WSL on your Windows host

[!WARNING]

Dsiclaimer: This guide was developed for WSL 2 on Windows 11.
> [!WARNING]
> Dsiclaimer: This guide was developed for WSL 2 on Windows 11.
1. Launch a Windows terminal (_e.g. Powershell_) as an administrator.

Expand Down Expand Up @@ -169,7 +167,7 @@ This should probably install Ubuntu distro as a default.
}
```

and run `sudo systemctl restart docker.service`.
then run `sudo systemctl restart docker.service`.

---
### Build CCCL in WSL using Dev Containers
Expand All @@ -185,7 +183,7 @@ and run `sudo systemctl restart docker.service`.

12. Verify that Dev Container was configured properly by running `./nvidia-smi` in your Dev Container terminal. For a proper configuration set up it is important for the steps in [Install prerequisites and VS Code extensions](#prereqs) to be followed in a precise order.

From that point on, the guide aligns with our [existing Dev Containers native Linux guide](https://github.com/NVIDIA/cccl/blob/main/.devcontainer/README.md) with just one minor potential alteration.
From that point on, the guide aligns with our [existing Dev Containers native Linux guide](https://github.com/NVIDIA/cccl/blob/main/.devcontainer/README.md) with just one minor potential alteration:

13. If WSL was launched without the X-server enabled, when asked to "authenticate Git with your Github credentials", if you answer **Yes**, the browser might not open automatically, with the following error message.

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda11.1-gcc6/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc6-cuda11.1-ubuntu18.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda11.1-gcc7/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc7-cuda11.1-ubuntu18.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda11.1-gcc8/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc8-cuda11.1-ubuntu18.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda11.1-gcc9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc9-cuda11.1-ubuntu18.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda11.1-llvm9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm9-cuda11.1-ubuntu18.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc10/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc10-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc11/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc11-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc12/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc12-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc7/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc7-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc8/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc8-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-gcc9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc9-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm10/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm10-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm11/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm11-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm12/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm12-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm13/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm13-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm14/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm14-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm15/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm15-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm16/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm16-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-llvm9/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-llvm9-cuda12.3-ubuntu20.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/cuda12.3-oneapi2023.2.0/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-oneapi2023.2.0-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"shutdownAction": "stopContainer",
"image": "rapidsai/devcontainers:24.04-cpp-gcc12-cuda12.3-ubuntu22.04",
"hostRequirements": {
"gpu": true
"gpu": "optional"
},
"initializeCommand": [
"/bin/bash",
Expand Down

0 comments on commit 7c26647

Please sign in to comment.