Senior Capstone Design
Senior Capstone Design CS 4960
Popular in Course
Popular in ComputerScienence
Marian Kertzmann DVM
verified elite notetaker
This 13 page Class Notes was uploaded by Marian Kertzmann DVM on Monday October 26, 2015. The Class Notes belongs to CS 4960 at University of Utah taught by Staff in Fall. Since its upload, it has received 26 views. For similar materials see /class/229998/cs-4960-university-of-utah in ComputerScienence at University of Utah.
Reviews for Senior Capstone Design
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/26/15
MPI MPI message passing interface No shared memory More languageneutral than OpenMP 0 Library no new compiler gt essentially a grownup bmsg c O Biased toward C and Fortran but also implemented in other languages Runtime manager helps launch processes Latest version is 20 but 13 is enough for our purposes MPI Program Model Write one program Runtime manager runs it P times Each process discovers its rank gt role Processes coordinate through explicit messages Old MessagePassing Architecture Xclientc X server C up client server server server Old MessagePassing Architecture Xclientc X server C up client server server server MPI Architecture C MPI Architecture 0 MPI runtime MPI Hello World in C include ltstdiohgt include ltmpihgt int mainint argc char argv int numprocs rank namelen char processornameMPIMAXPROCESSORNAME MPIInitampargc ampargv MPICommsizeMPICOMMWORLD ampnumprocs MPICommrankMPICOMMWORLD amprank MPIGetprocessornameprocessorname ampnamelen printfquotProcess d on s out of dnquot rank processorname numprocs MPIFinalize MPI Hello World in Java import mpi class HW public static void mainString args MPIInitargs int sz MPIGOMMWORLDSize int me MPIGOMMWORLDRank String where MPIGetprocessorname SystemoutprintlnquotProcess quot me quot on quot where quot out of quot 2 MPIFinalize MPI Communicators A communicator represents a set of cooperating processes Just use COMMWORLD which is initialized by Init MPI Basic Messages int me MPICOMMWORLDRank int size 1 int array new intsize if me 0 array0 42 MPICOMMWORLDSendarray 0 size MPIINT Systemoutprintlnquotsent quot array0 else MPICOMMWORLDRecvarray 0 size MPIINT Systemoutprintlnquotgot quot array0 1 0 8 8 c I c I Sending a Message To send Specificy data as array size and type Specify target process by its rank Specify a tag 0 A kind of mailbox id within the target process 0 Meaning of a tag is completely up to programmer Receiving a Message To receive Specificy data area as array size and type Specify source process by its rank or use ANYSOURCE Specify a tag or use ANYTAG
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'