-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (40 loc) · 1.72 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
###############################################################################
###############################################################################
##### Forest Trimble, #######################################
##### David Vorick, #######################################
##### Scott Todd #######################################
##### {trimbf,voricd,todds}@rpi.edu #######################################
##### Assignment 4: #######################################
##### MPI Matrix Multiply and #######################################
##### Performance Analysis with #######################################
##### multithreading #######################################
##### Due: April 9, 2013 #######################################
###############################################################################
###############################################################################
SOURCES=src/mm.c
OUTPUT=mm_threaded
BLUEOUTDIR=~/data-sb
DEBUG=-Wall -DDEBUG_MODE
KRATOS=-O7 -DKRATOS -pthread
BLUE=-O3 -DBLUE
REPORT=findings.aux \
findings.log \
findings.pdf
GETDATA=kratosscripts/runscript.sh
MAKEDATA=sbatch bluegene/size_test.slurm; sbatch bluegene/thread_test.slurm
all: $(REPORT)
quick: kratos
kratos: $(OUTPUT) $(REPORT)
mm_threaded: $(SOURCES)
mpicc $(SOURCES) $(KRATOS) -o $(OUTPUT)
findings.aux: findings.pdf
findings.log: findings.pdf
findings.pdf: output/bluegene
$(GETDATA)
blue:
mpicc $(SOURCES) $(BLUE) -o $(BLUEOUTDIR)/$(OUTPUT)
$(MAKEDATA)
debug:
mpicc $(DEBUG) $(KRATOS) $(SOURCES) -o $(OUTPUT)
clean:
rm -r *~ $(OUTPUT) $(REPORT) data/ plots/ $(BLUEOUTDIR)/*