-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (33 loc) · 1.02 KB
/
Makefile
File metadata and controls
46 lines (33 loc) · 1.02 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
CC := gcc
LD := gcc
ROOT ?= ../..
MAKE := make
CFLAGS += -g -O3 -mavx2 -Winline -mavx512f -mavx512dq -mavx512cd -mavx512bw -mavx512vl -Wall
.PHONY: all clean
BINS = test_vec test_novec test_iterative benchmark_vec benchmark_novec benchmark_iterative
all: $(BINS)
benchmark_vec: benchmark.c cmin.c
$(CC) $(CFLAGS) -o $@ $^
benchmark_novec: benchmark.c cmin.c
$(CC) $(CFLAGS) -fno-tree-vectorize -o $@ $^
benchmark_iterative: benchmark.c iterative.c
$(CC) $(CFLAGS) -o $@ $^
benchmark_solution: benchmark.c solution.c
$(CC) $(CFLAGS) -o $@ $^
test_vec: test.c cmin.c
$(CC) $(CFLAGS) -o $@ $^
test_novec: test.c cmin.c
$(CC) $(CFLAGS) -fno-tree-vectorize -o $@ $^
test_iterative: test.c iterative.c
$(CC) $(CFLAGS) -o $@ $^
test_solution: test.c solution.c
$(CC) $(CFLAGS) -o $@ $^
# mtbench_nomut: mtbench.c cmin.c
# $(CC) $(CFLAGS) -DNOMUT -o $@ $^ -lpthread
# mtbench: mtbench.c cmin.c
# $(CC) $(CFLAGS) -o $@ $^ -lpthread
report.pdf: report.tex
pdflatex report.tex
pdflatex report.tex
clean:
rm -f $(BINS) *.o *.so