12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

an mpi tutorial 621D.9 List of MPI CommandsMPI Data Types and OperatorsMPI defines some of its own data types. The following are data types used asarguments to MPI commands.• MPI_Comm: A communicator, used to specify group of nodes, most commonlyMPI_COMM_WORLD for all the nodes.• MPI_Status: A variable holding status information returned by functionssuch as MPI_Recv().• MPI_Datatype: A predefined constant indicating the type of data beingpassed in a function such as MPI_Send() (see below).• MPI_O: A predefined constant indicating the operation to be performed ondata in functions such as MPI_Reduce() (see below).• MPI_Request: A request handle to identify a nonblocking send or receive,for example, when using MPI_Wait() or MPI_Test().Predefined Constants: MPI_Op and MPI_DatatypeFor a more complete list of constants used in MPI, seehttp://www-unix.mcs.anl.gov/mpi/www/www3/Constants.html.MPI_OP Description MPI_Datatype C Data TypeMPI_MAX Maximum MPI_CHAR charMPI_MIN Minimum MPI_SHORT shortMPI_SUM Sum MPI_INT intMPI_PROD Product MPI_LONG longMPI_LAND Logical and MPI_FLOAT floatMPI_BAND Bitwise and MPI_DOUBLE doubleMPI_LOR Logical or MPI_UNSIGNED_CHAR unsigned charMPI_BOR Bitwise or MPI_UNSIGNED_SHORT unsigned shortMPI_LXOR Logical exclusive or MPI_UNSIGNED unsigned intMPI_BXOR Bitwise exclusive or MPI_UNSIGNED_LONG unsigned longMPI_MINLOCMPI_MAXLOCFind node’s min and rankFind node’s max and rankMPI CommandsBelow we list and identify the MPI commands used in this appendix. For thesyntax of each command, along with many more MPI commands, see http://wwwunix.mcs.anl.gov/mpi/www/,where each command is a hyperlink to a fulldescription.−101<strong>COPYRIGHT</strong> <strong>2008</strong>, PRINCET O N UNIVE R S I T Y P R E S SEVALUATION COPY ONLY. NOT FOR USE IN COURSES.ALLpup_06.04 — <strong>2008</strong>/2/15 — Page 621

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!