Subversion Repositories programming

Rev

Rev 319 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
318 ira 1
 
2
MPICC   = mpicc
3
CC      = gcc
4
CFLAGS  = -O2 -pipe -DSOLARIS
5
MPIRUN  = mpirun
6
MACFILE = machines
7
 
8
# targets:
9
 
10
all: proj2-group
11
 
12
clean:
13
	rm -f *~ *.o proj2-group
14
 
15
proj2-group:
16
	$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
17
 
18
run: all
19
	echo "Running tests of size 100"
20
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
21
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
22
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100
23
	echo "Running tests of size 1,000"
24
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 1000
25
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 1000
26
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 1000
27
	echo "Running tests of size 10,000"
28
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 10000
29
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 10000
30
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 10000
31