forked from pytorch/benchmark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (35 loc) · 855 Bytes
/
docker-compose.yml
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
version: "3.7"
services:
torchbench_testing:
build: ./docker/base_env
image: torchbench:latest
command: ./bulk_test.sh
working_dir: /workspace/benchmark
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
torchbench_nb:
build: ./docker/notebook
image: torchbench_notebook:latest
cap_add:
- SYS_ADMIN
working_dir: /workspace/benchmark
deploy:
resources:
reservations:
devices:
- capabilities:
- gpu
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
volumes:
- .:/workspace/benchmark
ports:
- "8888:8888"