-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 776 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 776 Bytes
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
all: std mpf
.PHONY: all
FLAGS = -O3 -Wall -pedantic
std: addition.c
gcc $(FLAGS) $< -o $@ -lm && ./$@
phi: addition.c
icc $(FLAGS) -xmic-avx512 -fp-model strict $< -o $@ && ./$@
spf: addition.c
gcc $(FLAGS) -D_SINGLE_PRECISION_ -include "mpfr.h" $< -o $@ -lm -lmpfr && ./$@
mpf: addition.c
gcc $(FLAGS) -include "mpfr.h" $< -o $@ -lm -lmpfr && ./$@
unsafe: addition.c
gcc $(FLAGS) -funsafe-math-optimizations $< -o $@ -lm && ./$@
shuffle: summation.cpp
g++ $(FLAGS) -std=c++11 $< -o $@ && ./$@
shuffle10: summation.cpp
g++ $(FLAGS) -std=c++11 -DDECIMAL $< -o $@ && ./$@
shufflePhi: summation.cpp
icc $(FLAGS) -std=c++11 -DDECIMAL -xmic-avx512 -fp-model strict $< -o $@ && ./$@
.PHONY: clean
clean:
rm -f std phi spf mpf unsafe shuffle shuffle10 shufflePhi