|
TECA
The Toolkit for Extreme Climate Analysis
|
Codes dealing with MPI. More...
Functions | |
| int | equipartition_communicator (MPI_Comm comm, int new_comm_size, MPI_Comm *new_comm) |
| int | split_communicator (MPI_Comm comm, int group_size, MPI_Comm *new_comm) |
| int | mpi_rank_0 (MPI_Comm comm) |
| return non-zero if this process is MPI rank 0 More... | |
Codes dealing with MPI.
| int teca_mpi_util::equipartition_communicator | ( | MPI_Comm | comm, |
| int | new_comm_size, | ||
| MPI_Comm * | new_comm | ||
| ) |
Subset the the communicator comm into a new communicator with new_comm_size ranks. ranks are selected from comm with a uniform stride spreading them approximatelyt equally across nodes.
| int teca_mpi_util::mpi_rank_0 | ( | MPI_Comm | comm | ) |
return non-zero if this process is MPI rank 0
| int teca_mpi_util::split_communicator | ( | MPI_Comm | comm, |
| int | group_size, | ||
| MPI_Comm * | new_comm | ||
| ) |
Split the communicator into a number of new communicators such that each new communicator has group_size ranks.