#include <Teuchos_MPIComm.hpp>
Public Member Functions | |
| MPIComm () | |
| Empty constructor builds an object for MPI_COMM_WORLD. | |
| int | getRank () const |
| Return process rank. | |
| int | getNProc () const |
| Return number of processors in the communicator. | |
| void | synchronize () const |
| Synchronize all the processors in the communicator. | |
Collective communications | |
| void | allToAll (void *sendBuf, int sendCount, int sendType, void *recvBuf, int recvCount, int recvType) const |
| All-to-all gather-scatter. | |
| void | allToAllv (void *sendBuf, int *sendCount, int *sendDisplacements, int sendType, void *recvBuf, int *recvCount, int *recvDisplacements, int recvType) const |
| Variable-length gather-scatter. | |
| void | allReduce (void *input, void *result, int inputCount, int type, int op) const |
| Do a collective operation, scattering the results to all processors. | |
| void | gather (void *sendBuf, int sendCount, int sendType, void *recvBuf, int recvCount, int recvType, int root) const |
| Gather to root. | |
| void | gatherv (void *sendBuf, int sendCount, int sendType, void *recvBuf, int *recvCount, int *displacements, int recvType, int root) const |
| Gather variable-sized arrays to root. | |
| void | allGather (void *sendBuf, int sendCount, int sendType, void *recvBuf, int recvCount, int recvType) const |
| Gather to all processors. | |
| void | allGatherv (void *sendBuf, int sendCount, int sendType, void *recvBuf, int *recvCount, int *recvDisplacements, int recvType) const |
| Variable-length gather to all processors. | |
| void | bcast (void *msg, int length, int type, int src) const |
| Broadcast. | |
Static Public Member Functions | |
| MPIComm & | world () |
| Get an object representing MPI_COMM_WORLD. | |
Static Public Attributes | |
Data types | |
| const int | INT = 1 |
| Integer data type. | |
| const int | FLOAT = 2 |
| Float data type. | |
| const int | DOUBLE = 3 |
| Double data type. | |
| const int | CHAR = 4 |
| Character data type. | |
Operations | |
| const int | SUM = 5 |
| Summation operation. | |
| const int | MIN = 6 |
| Minimize operation. | |
| const int | MAX = 7 |
| Maximize operation. | |
| const int | PROD = 8 |
| Dot-product (Multiplication) operation. | |
At present, groups are not implemented so the only communicator is MPI_COMM_WORLD.
Definition at line 51 of file Teuchos_MPIComm.hpp.
|
|
Empty constructor builds an object for MPI_COMM_WORLD.
Definition at line 49 of file Teuchos_MPIComm.cpp. |
|
|
Get an object representing MPI_COMM_WORLD.
Definition at line 143 of file Teuchos_MPIComm.cpp. |
|
|
Return process rank.
Definition at line 67 of file Teuchos_MPIComm.hpp. |
|
|
Return number of processors in the communicator.
Definition at line 70 of file Teuchos_MPIComm.hpp. |
|
|
Synchronize all the processors in the communicator.
Definition at line 150 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||
|
All-to-all gather-scatter.
Definition at line 169 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||||||||||
|
Variable-length gather-scatter.
Definition at line 195 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||
|
Do a collective operation, scattering the results to all processors.
Definition at line 354 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||||||
|
Gather to root.
Definition at line 222 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||||||||||
|
Gather variable-sized arrays to root.
Definition at line 249 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||
|
Gather to all processors.
Definition at line 275 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||||||||||||||
|
Variable-length gather to all processors.
Definition at line 303 of file Teuchos_MPIComm.cpp. |
|
||||||||||||||||||||
|
Broadcast.
Definition at line 333 of file Teuchos_MPIComm.cpp. |
|
|
Integer data type.
Definition at line 37 of file Teuchos_MPIComm.cpp. |
|
|
Float data type.
Definition at line 38 of file Teuchos_MPIComm.cpp. |
|
|
Double data type.
Definition at line 39 of file Teuchos_MPIComm.cpp. |
|
|
Character data type.
Definition at line 40 of file Teuchos_MPIComm.cpp. |
|
|
Summation operation.
Definition at line 42 of file Teuchos_MPIComm.cpp. |
|
|
Minimize operation.
Definition at line 43 of file Teuchos_MPIComm.cpp. |
|
|
Maximize operation.
Definition at line 44 of file Teuchos_MPIComm.cpp. |
|
|
Dot-product (Multiplication) operation.
Definition at line 45 of file Teuchos_MPIComm.cpp. |
1.3.9.1