Subversion Repositories programming

Rev

Rev 305 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 305 Rev 308
Line 1... Line 1...
1
 
1
 
2
MPICC   = mpicc
2
MPICC   = mpicc
3
CC      = gcc
3
CC      = gcc
4
CFLAGS  = -O2 -pipe
4
CFLAGS  = -O2 -pipe
5
MPIRUN  = mpirun
5
MPIRUN  = mpirun
-
 
6
MACFILE = machines
6
 
7
 
7
# targets:
8
# targets:
8
 
9
 
9
all: proj1-seq proj1-par
10
all: proj1-seq proj1-par
10
 
11
 
Line 17... Line 18...
17
proj1-par:
18
proj1-par:
18
	$(MPICC) $(CFLAGS) proj1-parallel.c -o proj1-par
19
	$(MPICC) $(CFLAGS) proj1-parallel.c -o proj1-par
19
 
20
 
20
run: all
21
run: all
21
	echo "Running tests of size 100"
22
	echo "Running tests of size 100"
22
	$(MPIRUN) -np 1 ./proj1-par -n 100
23
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
23
	$(MPIRUN) -np 2 ./proj1-par -n 100
24
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
24
	$(MPIRUN) -np 4 ./proj1-par -n 100
25
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100
25
	echo "Running tests of size 1,000"
26
	echo "Running tests of size 1,000"
26
	$(MPIRUN) -np 1 ./proj1-par -n 1000
27
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 1000
27
	$(MPIRUN) -np 2 ./proj1-par -n 1000
28
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 1000
28
	$(MPIRUN) -np 4 ./proj1-par -n 1000
29
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 1000
29
	echo "Running tests of size 10,000"
30
	echo "Running tests of size 10,000"
30
	$(MPIRUN) -np 1 ./proj1-par -n 10000
31
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 10000
31
	$(MPIRUN) -np 2 ./proj1-par -n 10000
32
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 10000
32
	$(MPIRUN) -np 4 ./proj1-par -n 10000
33
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 10000
-
 
34