318 |
ira |
1 |
|
|
|
2 |
MPICC = mpicc
|
|
|
3 |
CC = gcc
|
|
|
4 |
CFLAGS = -O2 -pipe -DSOLARIS
|
|
|
5 |
MPIRUN = mpirun
|
|
|
6 |
MACFILE = machines
|
|
|
7 |
|
|
|
8 |
# targets:
|
|
|
9 |
|
319 |
ira |
10 |
all: proj2-group proj2-normal
|
318 |
ira |
11 |
|
|
|
12 |
clean:
|
319 |
ira |
13 |
rm -f *~ *.o proj2-group proj2-normal
|
318 |
ira |
14 |
|
|
|
15 |
proj2-group:
|
|
|
16 |
$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
|
|
|
17 |
|
319 |
ira |
18 |
proj2-normal:
|
|
|
19 |
$(MPICC) $(CFLAGS) proj2-normal.c -o proj2-normal
|
|
|
20 |
|
318 |
ira |
21 |
run: all
|
320 |
ira |
22 |
echo "Running tests of size 1000, normal routines"
|
|
|
23 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 1000
|
|
|
24 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 1000
|
|
|
25 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 1000
|
|
|
26 |
echo "Running tests of size 1000, Collective routines"
|
|
|
27 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 1000
|
|
|
28 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 1000
|
|
|
29 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 1000
|
|
|
30 |
echo "Running tests of size 10,000, normal routines"
|
|
|
31 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 10000
|
|
|
32 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 10000
|
|
|
33 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 10000
|
|
|
34 |
echo "Running tests of size 10,000, Collective routines"
|
|
|
35 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 10000
|
|
|
36 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 10000
|
|
|
37 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 10000
|
|
|
38 |
echo "Running tests of size 100,000, normal routines"
|
|
|
39 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 100000
|
|
|
40 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 100000
|
|
|
41 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 100000
|
|
|
42 |
echo "Running tests of size 100,000, Collective routines"
|
|
|
43 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 100000
|
|
|
44 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 100000
|
|
|
45 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 100000
|
318 |
ira |
46 |
|