Skip to content

Commit

Permalink
Read GPU Id from .env file.
Browse files Browse the repository at this point in the history
  • Loading branch information
LLautenbacher committed Aug 28, 2023
1 parent 621d36f commit c63e9d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
GID=1000
UID=1000
COMPOSE_PROJECT_NAME=koina_1000
GPU_DEVICE=0
1 change: 1 addition & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
GID=1001
UID=1001
COMPOSE_PROJECT_NAME=koina_ci
GPU_DEVICE=3
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
device_ids: ["${GPU_DEVICE}"]
capabilities: [ gpu ]
shm_size: 2GB
restart: unless-stopped
Expand Down

0 comments on commit c63e9d1

Please sign in to comment.