Subversion Repositories programming

Rev

Rev 318 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 318 Rev 319
Line 5... Line 5...
5
MPIRUN  = mpirun
5
MPIRUN  = mpirun
6
MACFILE = machines
6
MACFILE = machines
7
 
7
 
8
# targets:
8
# targets:
9
 
9
 
10
all: proj2-group
10
all: proj2-group proj2-normal
11
 
11
 
12
clean:
12
clean:
13
	rm -f *~ *.o proj2-group
13
	rm -f *~ *.o proj2-group proj2-normal
14
 
14
 
15
proj2-group:
15
proj2-group:
16
	$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
16
	$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
17
 
17
 
-
 
18
proj2-normal:
-
 
19
	$(MPICC) $(CFLAGS) proj2-normal.c -o proj2-normal
-
 
20
 
18
run: all
21
run: all
19
	echo "Running tests of size 100"
22
	echo "Running tests of size 100"
20
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
23
	$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100
21
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
24
	$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100
22
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100
25
	$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100