-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
27 lines (21 loc) · 687 Bytes
/
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
export USER_ID:=$(shell id -u)
export GROUP_ID:=$(shell id -g)
build:
@echo Build docker image...
@docker-compose build project
test: check-env
@echo NVIDIA and CUDA setup
@docker-compose run project nvidia-smi
@echo Pytorch CUDA setup installed?
@docker-compose run project python3 -c "import torch; print(torch.cuda.is_available())"
@echo MinkowskiEngine installed?
@docker-compose run project python3 -c "import MinkowskiEngine as ME; print(ME.__version__)"
run: check-env
@docker-compose run project
clean:
@echo Removing docker image...
@docker-compose rm project
check-env:
ifndef DATA
$(error Please specify where your data is located, export DATA=<path>)
endif