-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
# Interactive CLI (default)
arena:
build: .
volumes:
- .:/workspace/gpgpu-arena
working_dir: /workspace/gpgpu-arena
command: bash -c "mkdir -p build && cd build && cmake -DBUILD_GUI=OFF .. && make -j$$(nproc) && ./arena --cli"
stdin_open: true
tty: true
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
# GUI mode
gui:
build: .
volumes:
- .:/workspace/gpgpu-arena
- /tmp/.X11-unix:/tmp/.X11-unix:rw
working_dir: /workspace/gpgpu-arena
environment:
- DISPLAY=${DISPLAY}
- NVIDIA_DRIVER_CAPABILITIES=all
- __GLX_VENDOR_LIBRARY_NAME=nvidia
- __NV_PRIME_RENDER_OFFLOAD=1
command: bash -c "mkdir -p build && cd build && cmake -DBUILD_GUI=ON .. && make -j$$(nproc) && ./arena --gui"
stdin_open: true
tty: true
network_mode: host
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]