-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (64 loc) · 2.6 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
all: cprintarr ReadFile printAll alternative a
ReadFile:
gfortran -pg -c -g ReadFile.f90
a:
gfortran -pg -g ReadFile.o PrintAll.o Replacement.o pureMPI.f90 -o a
printAll:
gfortran -pg -c -g PrintAll.f90
alternative:
gfortran -g -c -O3 cprintarr.o Replacement.f90
cprintarr:
gcc -g -c -ftree-vectorize cprintarr.c -O3
e:
#ifort -c ReadFile.f90
#/opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpif90 -c ReadFile.f90
gfortran -c PrintAll.f90
gfortran -c DataModel.f90
gfortran -c ReadFile.f90 DataModel.o
gcc -O3 -fargument-noalias -c timing.c
#ifort -c PrintAll.f90
#/opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpif90 -c PrintAll.f90
mpif90 -O3 -o pureMPI pureMPI.f90 ReadFile.o PrintAll.o timing.o DataModel.o
gfortran -O3 -o serial serial.f90 ReadFile.o PrintAll.o timing.o DataModel.o
#/opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpif90 -O3 -o a pureMPI.f90 ReadFile.o PrintAll.o
mpif90 -fopenmp -O3 -o m modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
mpif90 -fopenmp -O3 -o d_locality d_locality_modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
gfortran -fopenmp -O3 -o no_mpi no_mpi_modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
00:
gfortran -c ReadFile.f90
gfortran -c PrintAll.f90
gcc -O0 -fargument-noalias -c timing.c
mpif90 -O0 -o pureMPI pureMPI.f90 ReadFile.o PrintAll.o timing.o
mpif90 -fopenmp -O0 -o m modification.f90 ReadFile.o PrintAll.o timing.o
mpgfortran -fopenmp -O0 -o no_mpi no_mpi_modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
#if90 -g -O0 -o d_locality d_locality_modification.f90 ReadFile.o PrintAll.o timing.o
d:
gfortran -g -c DataModel.f90
gfortran -g -c ReadFile.f90 DataModel.o
gfortran -g -c PrintAll.f90
gcc -g -fargument-noalias -c timing.c
mpif90 -g -o pureMPI pureMPI.f90 ReadFile.o PrintAll.o timing.o DataModel.o
gfortran -g -o serial serial.f90 ReadFile.o PrintAll.o timing.o DataModel.o
mpif90 -fopenmp -g -o m modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
mpif90 -fopenmp -g -o d_locality d_locality_modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
gfortran -fopenmp -g -o no_mpi no_mpi_modification.f90 ReadFile.o PrintAll.o timing.o DataModel.o
t:
gfortran -g -c Reproducibility.f90
gcc -g -c cprintarr.c
gfortran -g -c cprintarr.o OptimizedLib.f90 -lc
gfortran -pg -c -g ReadFile.f90
gfortran -O3 -g -o t testcase.f90 OptimizedLib.o ReadFile.o Reproducibility.o cprintarr.o -lc
r:
#mpiexec -np 1 a
mpiexec -np 4 ./pureMPI
s:
#mpiexec -np 1 a
mpiexec -np 1 ./m
n:
mpiexec -np 1 ./d_locality
clean:
-rm *.o
-rm *.mod
-rm pureMPI
-rm m
-rm serial