-
Notifications
You must be signed in to change notification settings - Fork 57
/
Makefile
58 lines (47 loc) · 1.27 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
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: pick clean download-gtest kepler maxwell pascal volta turing ampere check
pick:
@echo
@echo Please run one of the following:
@echo " make kepler"
@echo " make maxwell"
@echo " make pascal"
@echo " make volta"
@echo " make turing"
@echo " make ampere"
@echo
clean:
make -C samples clean
make -C unit_tests clean
make -C perf_tests clean
download-gtest:
wget 'https://github.com/google/googletest/archive/main.zip' -O googletest-main.zip
unzip googletest-main.zip 'googletest-main/googletest/*'
mv googletest-main/googletest gtest
rmdir googletest-main
rm -f googletest-main.zip
kepler: check
make -C samples kepler
make -C unit_tests kepler
make -C perf_tests kepler
maxwell: check
make -C samples maxwell
make -C unit_tests maxwell
make -C perf_tests maxwell
pascal: check
make -C samples pascal
make -C unit_tests pascal
make -C perf_tests pascal
volta: check
make -C samples volta
make -C unit_tests volta
make -C perf_tests volta
turing: check
make -C samples turing
make -C unit_tests turing
make -C perf_tests turing
ampere: check
make -C samples ampere
make -C unit_tests ampere
make -C perf_tests ampere
check:
@if [ -z "$(GTEST_HOME)" -a ! -d "gtest" ]; then echo "Google Test framework required, see documentation"; exit 1; fi