-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
30 lines (19 loc) · 1.38 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
CC = mpicc
CFLAGS = -O3 -Wall
all: 1 pap recouvrement hybride recouvrement_hybride recouvrement_hybride_pthread
1 : 1.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp
pap : pap.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp
recouvrement : recouvrement.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp
recouvrement_hybride : recouvrement_hybride.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp -lpthread
recouvrement_hybride_pthread : recouvrement_hybride_pthread.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp -lpthread
hybride : hybride.c
${CC} ${CFLAGS} -march=native -mtune=native -funroll-loops -finline-functions -fpeel-loops -ftree-vectorize -ftree-loop-vectorize $^ -o $@ -lm -fopenmp
clean :
rm 1 pap recouvrement hybride recouvrement_hybride recouvrement_hybride_pthread
run :
mpirun ./1 && mpirun -np 2 pap && mpirun -np 2 ./recouvrememt