-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (48 loc) · 1.36 KB
/
Makefile
File metadata and controls
61 lines (48 loc) · 1.36 KB
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
.PHONY: help install build package deploy run report all lint test clean
# Default config file
CFG ?= experiments/android_example.yaml
help:
@echo "OVMobileBench - OpenVINO Benchmarking Pipeline"
@echo ""
@echo "Usage: make [target] CFG=path/to/config.yaml"
@echo ""
@echo "Targets:"
@echo " install - Install dependencies using pip"
@echo " build - Build OpenVINO runtime"
@echo " package - Create deployment package"
@echo " deploy - Deploy to device(s)"
@echo " run - Run benchmarks"
@echo " report - Generate reports"
@echo " all - Run complete pipeline"
@echo " lint - Run code linters"
@echo " test - Run tests"
@echo " clean - Clean artifacts"
@echo " devices - List available devices"
install:
pip install -r requirements.txt
pip install -e .
build:
ovmobilebench build -c $(CFG) --verbose
package:
ovmobilebench package -c $(CFG) --verbose
deploy:
ovmobilebench deploy -c $(CFG) --verbose
run:
ovmobilebench run -c $(CFG) --verbose
report:
ovmobilebench report -c $(CFG) --verbose
all:
ovmobilebench all -c $(CFG) --verbose
devices:
ovmobilebench list-devices
lint:
pre-commit run --all-files
test:
pytest tests/ -v
clean:
rm -rf artifacts/
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete