-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
83 lines (64 loc) · 2.33 KB
/
Copy pathMakefile
File metadata and controls
83 lines (64 loc) · 2.33 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.PHONY: help clean benchmark-bootstrap docs fix ci ci_env typecheck test test-cpu test-cov release \
test-cu11 test-cu12 test-cu13 ci-cu11 ci-cu12 ci-cu13 dockers
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " clean to clean the directory tree"
@echo " benchmark-bootstrap to download all benchmark models upfront"
@echo " docs to generate the documentation"
@echo " fix to auto-fix formatting and lint issues"
@echo " ci to run GitHub Actions workflows locally (act or gh act)"
@echo " ci_env to create the CI environment"
@echo " typecheck to run the ty static type checker"
@echo " test to run the tests"
@echo " test-cpu to run CPU-only tests"
@echo " test-cov to run tests with coverage"
@echo " release to perform all actions required for a release"
@echo " dockers to build all project Docker images (see docker/build.sh --help)"
@echo " test-cu11 to run tests in CUDA 11 Docker container"
@echo " test-cu12 to run tests in CUDA 12 Docker container"
@echo " test-cu13 to run tests in CUDA 13 Docker container"
@echo " ci-cu11 to run full CI in CUDA 11 Docker container"
@echo " ci-cu12 to run full CI in CUDA 12 Docker container"
@echo " ci-cu13 to run full CI in CUDA 13 Docker container"
clean:
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf trtutils/*.egg-info
rm -rf src/trtutils/*.egg-info
pyclean .
rm -rf .ruff_cache
benchmark-bootstrap:
python3 benchmark/run.py --bootstrap --model all
docs:
./ci/make_docs.sh
test:
./ci/run_tests.sh
test-cpu:
python3 -m pytest -rP -v tests/ -m cpu
test-cov:
python3 -m pytest --cov=src/trtutils --cov-branch --cov-report=term-missing --cov-report=json:.coverage.json tests/
fix:
./ci/run_ruff.sh --format
./ci/run_ruff.sh --lint
ci:
./ci/act.sh $(ACT_ARGS)
typecheck:
./ci/run_ci.sh --typecheck
release: clean ci test docs
ci_env:
./ci/make_venv.sh
test-cu11:
./ci/test_cuda.sh 11 --test
test-cu12:
./ci/test_cuda.sh 12 --test
test-cu13:
./ci/test_cuda.sh 13 --test
ci-cu11:
./ci/test_cuda.sh 11 --all
ci-cu12:
./ci/test_cuda.sh 12 --all
ci-cu13:
./ci/test_cuda.sh 13 --all
dockers:
./docker/build.sh --all