MPI_Comm_size
Determines the size of the group associated with a communicator
Syntax
sz = MPI_Comm_size(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.
- sz
The number of processes in the group of
comm
.
Description
Gets the size of the group associated with a communicator.
Examples
MPI_Init(); rnk = MPI_Comm_rank(); sizeNodes = MPI_Comm_size(); MPI_Finalize();
See also
- MPI_Init — Initialize the MPI environment
- MPI_Comm_rank — Determines the rank of a calling process in a communicator
Report an issue | ||
<< MPI_Comm_rank | Scilab MPI | MPI_Create_comm >> |