-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_gpu_tests.txt
89 lines (51 loc) · 2.23 KB
/
docker_gpu_tests.txt
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
https://hub.docker.com/r/tensorflow/tensorflow
#### Test nvidia-smi with the latest official CUDA image
sudo docker run --gpus all nvidia/cuda:9.0-base nvidia-smi
sudo docker run --gpus all nvidia/cuda nvidia-smi
sudo docker run --gpus all -it nvidia/cuda bash
sudo docker run --gpus all -it tensorflow/tensorflow:latest-gpu bash
sudo docker run --gpus all -it tensorflow/tensorflow:latest-gpu-py3 bash
# tensorflow:1.14.0
sudo docker run --gpus all -it tensorflow/tensorflow:1.14.0-gpu-py3 bash
[nur CPU]
sudo docker run --rm -it tensorflow/tensorflow:1.14.0-py3 bash
# data
sudo docker run --gpus all -it -v /media/lukas/TeraTest/temp/alltours/BigSetFull/:/data/ tensorflow/tensorflow:latest-gpu bash
# tensorflow:latest-gpu-py3
sudo docker run --gpus all -it -v /media/lukas/TeraTest/temp/alltours:/data tensorflow/tensorflow:latest-gpu-py3 bash
sudo docker run --gpus all -it -v /media/lukas/TeraTest/temp/alltours/BigSetFull:/data tensorflow/tensorflow:1.14.0-gpu-py3 bash
sudo docker run --gpus all -it \
-v /media/lukas/TeraTest/temp_data/alltours:/data \
tensorflow/tensorflow:latest-gpu-py3 bash
[nur CPU]
sudo docker run --rm -it -v /media/lukas/TeraTest/temp/alltours/BigSetFull/:/data/ tensorflow/tensorflow:1.14.0-py3 bash
# benchmarks
sudo docker run --gpus all --rm -it -v /home/lukas/benchmark:/app tensorflow/tensorflow:1.14.0-gpu-py3 bash
# paperspace
sudo docker run --gpus all --rm -it -v ~/app:/app tensorflow/tensorflow:1.14.0-gpu-py3 bash
## restart
# tensorflow:1.14.0-gpu-py3
sudo docker start -ai ad35225e4bf0
# tensorflow:latest-gpu-py3
sudo docker start -ai d5dd3c33df3d
# -v /media/lukas/TeraTest/temp_data/alltours:/data
sudo docker start -ai fc0697014ad5
# py in Docker
pip install pillow
pip install scipy
pip install pandas
# How to use Tensorflow-gpu with Docker: run / commit / start / stop
https://medium.com/@RouYunPan/how-to-use-tensorflow-gpu-with-docker-2b72f784fdf3
# common commands
sudo docker ps -as
## templates
# tensorflow:1.14.0-gpu-py3
sudo docker run --gpus all -it \
-v ~/app:/app \
-v ~/data:/data \
tensorflow/tensorflow:1.14.0-gpu-py3 bash
# tensorflow:latest-gpu-py3
sudo docker run --gpus all -it \
-v ~/app:/app \
-v ~/data:/data \
tensorflow/tensorflow:latest-gpu-py3 bash