| 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
|
|
|
22 |
echo "Running tests of size 100"
|
|
|
23 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
|
|
|
24 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
|
|
|
25 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100
|
|
|
26 |
echo "Running tests of size 1,000"
|
|
|
27 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 1000
|
|
|
28 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 1000
|
|
|
29 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 1000
|
|
|
30 |
echo "Running tests of size 10,000"
|
|
|
31 |
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 10000
|
|
|
32 |
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 10000
|
|
|
33 |
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 10000
|
|
|
34 |
|