Skip to content

Commit 963967e

Browse files
committed
MAX: Add snippet to enable GPU acceleration
1 parent 8b09aa8 commit 963967e

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.devcontainer/max-base-nightly/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
// // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-max-nightly-base-root,target=/root,type=bind",
8585
// "workspaceFolder": "/root",
8686

87+
// "runArgs": [
88+
// "--gpus", "device=all",
89+
// "--shm-size", "2g"
90+
// ],
91+
8792
"remoteEnv": {
8893
// By default, BLAS/OpenMP will use as many threads as possible.
8994
// Set the following environment variable to control the exact number to use.

.devcontainer/max-base/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
// // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-max-base-root,target=/root,type=bind",
8585
// "workspaceFolder": "/root",
8686

87+
// "runArgs": [
88+
// "--gpus", "device=all",
89+
// "--shm-size", "2g"
90+
// ],
91+
8792
"remoteEnv": {
8893
// By default, BLAS/OpenMP will use as many threads as possible.
8994
// Set the following environment variable to control the exact number to use.

.devcontainer/max-scipy-nightly/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
// // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-max-nightly-scipy-root,target=/root,type=bind",
8787
// "workspaceFolder": "/root",
8888

89+
// "runArgs": [
90+
// "--gpus", "device=all",
91+
// "--shm-size", "2g"
92+
// ],
93+
8994
"remoteEnv": {
9095
// By default, BLAS/OpenMP will use as many threads as possible.
9196
// Set the following environment variable to control the exact number to use.

.devcontainer/max-scipy/devcontainer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@
8686
// // "workspaceMount": "source=${localWorkspaceFolder}/.devcontainer/bind-mounts/dsdc-max-scipy-root,target=/root,type=bind",
8787
// "workspaceFolder": "/root",
8888

89+
// "runArgs": [
90+
// "--gpus", "device=all",
91+
// "--shm-size", "2g"
92+
// ],
93+
8994
"remoteEnv": {
9095
// By default, BLAS/OpenMP will use as many threads as possible.
9196
// Set the following environment variable to control the exact number to use.

0 commit comments

Comments
 (0)