-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 904 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 904 Bytes
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
SHELL := /bin/bash
.PHONY: setup_cpu setup_gpu_cuda12 test clean clean_cache clean_outputs
# Install dependencies and set up the development environment
setup_cpu:
uv sync --dev --extra cpu && \
uv pip install -e . && \
uv run pre-commit install
setup_gpu_cuda12:
uv sync --dev --extra cuda12 && \
uv pip install -e . && \
uv run pre-commit install
# Run tests using pytest
test:
uv run pytest
# Run the rerun visualizer
rerun:
uv run rerun outputs/rerun_vis_log.rrd configs/rerun_vis_config.rbl
# Clean only caches
clean_cache:
@echo "Cleaning caches..."
rm -rf *_cache .*_cache
find . -type d -name "__pycache__" -exec rm -rf {} +
find . -type d -name "*.egg-info" -exec rm -rf {} +
# Clean outputs
clean_outputs:
@echo "Cleaning outputs..."
rm -rf outputs
# Clean everything (caches and outputs)
clean: clean_cache clean_outputs
@echo "All caches and outputs have been cleaned."