logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

communicator - MPI communicator for C++ (rheolef-7.2)

Author

       Pierre  Saramito  <Pierre.Saramito@imag.fr>

Description

       In a distributed environment, this class wraps the MPI usual communicator for C++, as provided by the
       boost::mpi library. In a sequential environment, a dummy class is provided for compatibility purpose.

Example

       communicator comm;
       cout << 'my_proc = ' << comm.rank() << endl
            << 'nb_proc = ' << comm.size() << endl;

Implementation

       This documentation has been generated from file linalg/lib/communicator.h

       struct communicator {
         typedef std::vector<int>::size_type size_type;
         int size() const;
         int rank() const;
       };

Name

       communicator - MPI communicator for C++ (rheolef-7.2)

See Also