-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (45 loc) · 993 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake: build
cd build && \
make
build:
mkdir build
cd build && \
cmake -D CMAKE_BUILD_TYPE=Release ..
gpu_build:
mkdir gpu_build
cd gpu_build && \
cmake -D CMAKE_CXX_COMPILER=nvc++ -D CMAKE_BUILD_TYPE=Release -D ACC_TARGET=gpu ..
gpu: gpu_build
cd gpu_build && \
make
debug_build:
mkdir debug_build
cd debug_build && \
cmake -D CMAKE_BUILD_TYPE=Debug ..
debug: debug_build
cd debug_build && \
make
test: cmake
cd build && \
./unitTests
@echo "Starting E2E"
for f in ./test/e2e/*; do \
if [ -d "$$f" -a $$(echo -n "$$f" | tail -c 1) != "-" ]; then \
mkdir ./test-submission/ && \
cp -r ./build/* ./test-submission/ && \
cp -r $$f/* ./test-submission/ && \
cd ./test-submission && $(MAKE) -s test && \
cd ../ && \
rm -rf ./test-submission/; \
fi \
done
@echo "[info] All tests PASS \e[33m ^_^ \e[39m"
plots: cmake
cd plots && \
./make.sh
clean:
rm -rf build
rm -rf debug_build
rm -rf ./test-submission/
rm -rf ind-*
rm -rf gpu_build