-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
39 lines (31 loc) · 1.24 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
.PHONY: build podbuild run podrun podsh log watch-results jupyter
build:
docker build -t borealtc .
podbuild:
buildah build --layers -t borealtc .
run: build
docker run --gpus all -e CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES --rm --ipc host \
--mount type=bind,source=.,target=/code/ \
--mount type=bind,source=/dev/shm,target=/dev/shm \
borealtc python3 main.py
podrun: podbuild
podman run --device nvidia.com/gpu=all --rm --ipc host \
--mount type=bind,source=.,target=/code/ \
--mount type=bind,source=/dev/shm,target=/dev/shm \
borealtc python3 main.py
podsh: podbuild
podman run --device nvidia.com/gpu=all -it --rm --ipc host \
--mount type=bind,source=.,target=/code/ \
--mount type=bind,source=/dev/shm,target=/dev/shm \
borealtc bash
log:
xdg-open http://localhost:6006 && tensorboard --logdir tb_logs
watch-results:
watch "(ls results/husky/ && ls results/vulpi/) | wc"
jupyter: podbuild
@echo "Running jupyter-server"
podman run \
-v .:/code \
-p 8887:8888 \
--rm borealtc \
jupyter server --ip 0.0.0.0 --no-browser --NotebookApp.token='iros-2024' --NotebookApp.password='' --NotebookApp.allow_origin='*' --NotebookApp.ip='0.0.0.0' --allow-root --ServerApp.notebook_dir=/code --ServerApp.root_dir=/code