-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (33 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
45
46
47
48
49
PGMS=mmult_omp_timing matrix_times_vector hello test_mmult mxv_omp_mpi mmult_mpi_omp
all: ${PGMS}
mmult_mpi_omp: mmult.o mmult_mpi_omp.o mat.c
mpicc -o mmult_mpi_omp -fopenmp -O3 mmult.o mmult_mpi_omp.o mat.c
mmult_mpi_omp.o: mmult_mpi_omp.c
mpicc -c -fopenmp -O3 mmult_mpi_omp.c
mmult_omp_timing: mmult.o mmult_omp.o mmult_omp_timing.o mat.c
gcc -o mmult -fopenmp -O3 mmult.o mmult_omp.o mmult_omp_timing.o mat.c -o mmult_omp_timing
mat.o: mat.c
gcc -c mat.c
mmult.o: mmult.c
gcc -c mmult.c
mmult_omp.o: mmult_omp.c
gcc -c -O3 -fopenmp mmult_omp.c
mmult_omp_timing.o: mmult_omp_timing.c
gcc -c -O3 mmult_omp_timing.c
matrix_times_vector: matrix_times_vector.c mat.c
mpicc -O3 -o matrix_times_vector matrix_times_vector.c mat.c
hello: hello.c
mpicc -O3 -o hello hello.c
mxv_omp_mpi: mxv_omp_mpi.c mat.c
mpicc -fopenmp -O3 -o mxv_omp_mpi mxv_omp_mpi.c mat.c
test_mmult: test_mmult.c mmult.c mat.c
gcc test_mmult.c mmult.c mat.c -lm -o test_mmult
autoMmult: autoMmult.c mmult.c mmultOpt.c mat.c
gcc autoMmult.c mmult.c mmultOpt.c mat.c -lm -o autoMult
autoMmultGraph:
gnuplot createGnuplot.gnu
mpiMmult: mmult.c mat.c
mpicc -O3 mmult.c mat.c -o mpiMmult mpiMmult.c
clean:
rm -f *.o
rm -f ${PGMS}