MPI_Comm_rank
Determines the rank of a calling process in a communicator
Syntax
rk = MPI_Comm_rank(comm=mpi_comm)
Arguments
- comm=mpi_comm
If the optional argument "comm" is given, this function will use the MPI communicator created by MPI_Create_comm. If not, the default MPI_COMM_WORLD is used.
- rk
The rank of a calling process in a communicator's group.
Description
Gets the rank of the calling process in the group of comm
.
Examples
MPI_Init(); rnk = MPI_Comm_rank(); sizeNodes = MPI_Comm_size(); MPI_Finalize();
See also
- MPI_Init — Initialize the MPI environment
- MPI_Comm_size — Determines the size of the group associated with a communicator
Report an issue | ||
<< MPI_Bcast | Scilab MPI | MPI_Comm_size >> |