aboutsummaryrefslogtreecommitdiffhomepage
path: root/.devcontainer/devcontainer.json
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer/devcontainer.json')
-rw-r--r--.devcontainer/devcontainer.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..7cae35a
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,34 @@
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the
+// README at: https://github.com/devcontainers/templates/tree/main/src/rust
+{
+ "name": "zluda",
+ "build": {
+ "dockerfile": "Dockerfile"
+ },
+ "securityOpt": [ "seccomp=unconfined" ],
+ "runArgs": [
+ "--runtime=nvidia",
+ "--device=/dev/kfd",
+ "--device=/dev/dri",
+ "--group-add=video"
+ ],
+ "mounts": [
+ {
+ "source": "${localEnv:HOME}/.cargo/",
+ "target": "/root/.cargo",
+ "type": "bind"
+ }
+ ],
+ // https://containers.dev/features.
+ "features": {
+ "ghcr.io/devcontainers/features/rust:1": {}
+ },
+ // https://aka.ms/dev-containers-non-root.
+ "remoteUser": "root",
+ //"hostRequirements": { "gpu": "optional" }
+ "customizations": {
+ "vscode": {
+ "extensions": [ "mhutchie.git-graph" ],
+ }
+}
+}