Rev 305 | Blame | Compare with Previous | Last modification | View Log | RSS feed
MPICC = mpiccCC = gccCFLAGS = -O2 -pipeMPIRUN = mpirunMACFILE = machines# targets:all: proj1-seq proj1-parclean:rm -f *~ *.o proj1-seq proj1-parproj1-seq:$(CC) $(CFLAGS) proj1-sequential.c -o proj1-seqproj1-par:$(MPICC) $(CFLAGS) proj1-parallel.c -o proj1-parrun: allecho "Running tests of size 100"$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 100$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 100$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 100echo "Running tests of size 1,000"$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 1000$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 1000$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 1000echo "Running tests of size 10,000"$(MPIRUN) -machinefile $(MACFILE) -np 1 ./proj1-par -n 10000$(MPIRUN) -machinefile $(MACFILE) -np 2 ./proj1-par -n 10000$(MPIRUN) -machinefile $(MACFILE) -np 4 ./proj1-par -n 10000