.. index:: pair: class; gpr::linalg::MpiCommunicator .. _doxid-classgpr_1_1linalg_1_1_mpi_communicator: class gpr::linalg::MpiCommunicator ================================== .. toctree:: :hidden: Owns an independent communication space on the caller's process group. Construction is collective. Components share its lifetime through shared_ptr and borrow :ref:`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. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class MpiCommunicator { public: // construction :target:`MpiCommunicator`(:ref:`MpiCommType` source); :target:`MpiCommunicator`(const MpiCommunicator&); :target:`~MpiCommunicator`(); // methods :ref:`MpiCommunicator`& :target:`operator=`(const :ref:`MpiCommunicator`&); :ref:`MpiContext` :target:`view`() const; };