class gpr::linalg::MpiCommunicator¶
Owns an independent communication space on the caller’s process group. Construction is collective. Components share its lifetime through shared_ptr<const MpiCommunicator> and borrow view() for synchronous work. All participants use the same collective order and destroy their owners before MPI_Finalize. This object neither initializes nor finalizes MPI.
#include <gpr/linalg/MpiCommunicator.h>
class MpiCommunicator {
public:
// construction
MpiCommunicator(MpiCommType source);
MpiCommunicator(const MpiCommunicator&);
~MpiCommunicator();
// methods
MpiCommunicator& operator=(const MpiCommunicator&);
MpiContext view() const;
};