-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·44 lines (34 loc) · 1.2 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
CC = gcc
VALGRINDOPTS = valgrind --log-file="logfile" --leak-check=full --show-leak-kinds=all --track-origins=yes --dsymutil=yes --trace-children=yes -v
# for multithreading
# -fipa-pta -floop-nest-optimize -floop-parallelize-all -ftree-loop-distribution -ftree-parallelize-loops=4 -ftree-vectorize -funroll-loops -flto -ffat-lto-objects -fuse-linker-plugin -funsafe-math-optimizations -freciprocal-math
.PHONY: all
all: test1 test2 test3 test4
test1:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test1 ./mlp_reg.c -lm;
test2:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test2 ./mlp_classification.c -lm;
test3:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test3 ./autoencoder.c -lm;
test4:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test4 ./cnn.c -lm;
.PHONY: test1
test1:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test1 ./mlp_reg.c -lm;
.PHONY: test2
test2:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test2 ./mlp_classification.c -lm;
.PHONY: test3
test3:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test3 ./autoencoder.c -lm;
.PHONY: test4
test4:
cd ./examples/;\
$(CC) -Ofast -march=native -Wall -o ./test4 ./cnn.c -lm;