You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mlir-tensorrt/CONTRIBUTING.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,35 @@ described here: https://llvm.org/docs/CodingStandards.html
9
9
10
10
Python files are formatted using the [`black` formatter](https://black.readthedocs.io/en/stable/).
11
11
12
+
## Development Environment
13
+
14
+
This project provides a pre-configured CUDA 12.5 development environment using [Dev Containers](https://containers.dev/). We offer configurations for both `ubuntu` and `rockylinux8`, located in the `.devcontainer` directory.
15
+
16
+
### VS Code (Recommended)
17
+
1. Install the [Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
18
+
2. Open the project in VS Code.
19
+
3. When prompted, click "Reopen in Container" and select your preferred OS configuration.
20
+
21
+
VS Code will automatically build the container and connect to the development environment.
22
+
23
+
### Dev Containers CLI
24
+
If you are not using VS Code, you can manage the environment with the [Dev Containers CLI](https://github.com/devcontainers/cli).
25
+
26
+
1. Install the CLI.
27
+
2. Choose one of the available configurations from the `.devcontainer` directory (e.g., `cuda12.5-ubuntu-llvm17`).
28
+
3. From the project root, build and start the container by running the `up` command. Replace `<config-name>` with your chosen configuration.
29
+
```bash
30
+
devcontainer up --workspace-folder . --config .devcontainer/<config-name>/devcontainer.json
31
+
```
32
+
For example:
33
+
```bash
34
+
devcontainer up --workspace-folder . --config .devcontainer/cuda12.5-ubuntu-llvm17/devcontainer.json
35
+
```
36
+
4. To open a shell inside the running container, use the `exec` command:
0 commit comments