-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (30 loc) · 874 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
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: all host host-cpu jetson-agx-xavier jetson-nano test test-cpu tidy clean
# Default to building for host
all: host
# Build for host
host:
cmake --preset host
cmake --build build/host
# Build for host (CPU only)
host-cpu:
cmake --preset host-cpu
cmake --build build/host
# Build for jetson-agx-xavier
jetson-agx-xavier:
cmake --preset jetson-agx-xavier
cmake --build build/jetson-agx-xavier
# Build for jetson-nano
jetson-nano:
cmake --preset jetson-nano
cmake --build build/jetson-nano
# Test CPU and CUDA backends on host
test: host
ctest --preset host -j 2
test-cpu: host-cpu
ctest --preset host-cpu
# Run clang-tidy on host
tidy: host
clang-tidy -p build/host --config-file=.clang-tidy --use-color $$(find src/ -name '*.cpp' ! -path 'src/backend/nvbuf_utils/*' ! -path 'src/backend/nvutils/*')
# Clean up build directories
clean:
rm -rf build