forked from alextrott16/benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 1.3 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
# ================================================================
# Help
# ================================================================
.DEFAULT_GOAL := help
define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("make %-8s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT
.PHONY: help
help: ## Print this help message
@echo "Here are the available commands:"
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
# ================================================================
# Main targets
# ================================================================
.PHONY: style
style: ## Apply autoformating and run style checks via pre-commit
pre-commit run --all-files
# we don't test the BERT examples since there are no tests yet...
.PHONY: test
test: ## Run all the tests
@echo "================================ Testing CIFAR examples"
bash scripts/test_benchmark.sh cifar
@echo "================================ Testing DeepLab examples"
bash scripts/test_benchmark.sh deeplab
@echo "================================ Testing LLM examples"
bash scripts/test_benchmark.sh llm
@echo "================================ Testing ResNet examples"
bash scripts/test_benchmark.sh resnet