Introduction to Parallel Processing Working on the Educational Cluster “hobbit” Guy Tel-Zur
Logging in
Basic Linux Commands
Our First MPI program
Compiling and Executing
Cluster Monitoring http://hobbit5.ee.bgu.ac.il
Different MPI packages You can always try: mpirun -h telzur@gtz2:~mpi>mpd & telzur@gtz2:~/mpi> mpiexec -machinefile ./machinefile -np 4 ./hellow Hello world from process 0 of 4 Hello world from process 1 of 4 Hello world from process 3 of 4 Hello world from process 2 of 4 telzur@gtz2:~/mpi>
cpilog Discuss this program with the students Ref: /home/telzur/mpi/mpe/cpilog.c
Profiling a demo from my laptop telzur@gtz2:~/mpi/mpe> ~/mpich2-install/bin/mpirun -machinefile ../machinefile -np 4 ./cpilog Process 0 running on gtz2 Process 2 running on gtz2 Process 1 running on gtz2 Process 3 running on gtz2 pi is approximately 3.1415926535899028, Error is 0.0000000000001097 wall clock time = 0.106649 Writing logfile.... Enabling the Default clock synchronization... Finished writing logfile ./cpilog.clog2. telzur@gtz2:~/mpi/mpe>
Profiling - log file conversion telzur@gtz2:~/mpi/mpe> clog2TOslog2 ./cpilog.clog2 GUI_LIBDIR is set. GUI_LIBDIR = /usr/local/lib SLOG-2 Header: version = SLOG 2.0.6 NumOfChildrenPerNode = 2 TreeLeafByteSize = 65536 MaxTreeDepth = 0 MaxBufferByteSize = 6010 Categories is FBinfo(635 @ 6118) MethodDefs is FBinfo(0 @ 0) LineIDMaps is FBinfo(232 @ 6753) TreeRoot is FBinfo(6010 @ 108) TreeDir is FBinfo(38 @ 6985) Annotations is FBinfo(0 @ 0) Postamble is FBinfo(0 @ 0) Number of Drawables = 204 Number of Unmatched Events = 0 Total ByteSize of the logfile = 14168 timeElapsed between 1 & 2 = 38 msec timeElapsed between 2 & 3 = 139 msec
Starting Jumpshot4 telzur@gtz2:~/mpi/mpe> ~/mpich2-install/bin/jumpshot ./cpilog.slog2
Parallel Debugger