forked from hogepodge/tvm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
86 lines (70 loc) · 1.26 KB
/
Makefile
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
SHELL := /bin/bash
tvm-devel:
docker build \
-t tvm-devel \
--progress=plain \
.
devel-nocache:
docker build \
-t tvm-devel \
--progress=plain \
--no-cache \
.
minimal:
docker build \
-t tvm-minimal \
--progress=plain \
-f Dockerfile.minimal \
.
rpc:
docker build \
-t tvm-rpc \
--progress=plain \
-f Dockerfile.rpc \
--no-cache \
.
run:
GIT_USERNAME="$(shell git config user.name)" \
GIT_EMAIL="$(shell git config user.email)" \
docker run \
-v $(HOME)/.ssh:/home/tvm/.ssh:ro \
-v $(HOME)/.vim:/home/tvm/.vim:ro \
-e GIT_USERNAME \
-e GIT_EMAIL \
-e GITHUB_USERNAME \
-p 8081:8081 \
-d \
--name tvm_devel \
tvm-devel \
sleep infinity
# -v $(CURDIR)/setup:/home/tvm/.setup:ro \
shell:
docker exec \
-it \
-e GITHUB_USERNAME \
tvm_devel \
bash
sphinx-serve:
docker exec \
-d \
tvm_devel \
bash -c "cd tvm/docs ; sphinx-serve"
docs:
docker exec \
tvm_devel \
bash -c "cd tvm/docs; TVM_TUTORIAL_EXEC_PATTERN=/vta/tutorials make html"
tvm:
docker exec \
tvm_devel \
bash -c "cd tvm/build; make -j 8"
stop:
docker stop tvm_devel
start:
docker start tvm_devel
clean:
docker stop tvm_devel
docker rm tvm_devel
imageclean:
docker image rm tvm-devel
rm:
docker rm $$(docker ps -a -q)