Rev 319 | Blame | Compare with Previous | Last modification | View Log | RSS feed
MPICC = mpicc
CC = gcc
CFLAGS = -O2 -pipe -DSOLARIS
MPIRUN = mpirun
MACFILE = machines
# targets:
all: proj2-group proj2-normal
clean:
rm -f *~ *.o proj2-group proj2-normal
proj2-group:
$(MPICC) $(CFLAGS) proj2-group.c -o proj2-group
proj2-normal:
$(MPICC) $(CFLAGS) proj2-normal.c -o proj2-normal
run: all
echo "Running tests of size 1000, normal routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 1000
echo "Running tests of size 1000, Collective routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 1000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 1000
echo "Running tests of size 10,000, normal routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 10000
echo "Running tests of size 10,000, Collective routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 10000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 10000
echo "Running tests of size 100,000, normal routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-normal -n 100000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-normal -n 100000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-normal -n 100000
echo "Running tests of size 100,000, Collective routines"
$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj2-group -n 100000
$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj2-group -n 100000
$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj2-group -n 100000