All programs have to be written in C, translated with mpicc/gcc and turned in with a corresponding Makefile.
Hints:
Turn in pmpi.c, matrix.data, README
./pi o Process 0 on localhost with 8 threads Enter the number of intervals: (0 quits) 1000000 pi is approximately 3.1415926535898708, Error is 0.0000000000000777 wall clock time = 0. 6964 sec.usecs mpirun -np 2 pi Process 0 on login01 with 8 threads Enter the number of intervals: (0 quits) 100000 pi is approximately 3.1415926535981256, Error is 0.0000000000083324 wall clock time = 0. 2846 sec.usecs Process 1 on login01 with 8 threads
Turn in pi.c, README2
ssh <your-unity-id›@psXXOn windows, use your favorite ssh client to log in to optout.csc.ncsu.edu, port 22XX (XX=00..07). There may be a way to create aliases as well, check the manual of you ssh client.
Sample output:
./pi Enter the number of intervals: (0 quits) 2000000 pi is approximately 3.1415926535898016, Error is 0.0000000000000084 elapsed wall time 0.035496 sec.usec Enter the number of intervals: (0 quits) 0 ./pi s Enter the number of intervals: (0 quits) 2000000 pi is approximately 3.1415926535899938, Error is 0.0000000000002007 elapsed wall time 0.108270 sec.usec
Turn in ppu_pi.c, Makefile, spu_pi.c, spu_Makefile, any local header files (if applicable)
Single Author info:
username FirstName MiddleInitial LastName