ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::MPIEnvironment Class Reference

MPI started for the life of the object, and ended with it. More...

#include <ADS/distributed/MPIExecutor.h>

Public member functions

 MPIEnvironment (int &argc, char **&argv, int level=MPI_THREAD_FUNNELED)
 MPI started by MPI_Init_thread() at the level level (funneled by default), unless it already was.
 MPIEnvironment (const MPIEnvironment &)=delete
 no copy, since MPI ends once
MPIEnvironment & operator= (const MPIEnvironment &)=delete
 no copy, since MPI ends once
 ~MPIEnvironment ()
 MPI ended by MPI_Finalize(), if this object started it.
int level (void) const
 the level of threads that MPI provides, if this object started it

Detailed description

MPI started for the life of the object, and ended with it.

Constructor and destructor documentation

◆ MPIEnvironment() [1/2]

ADS::MPIEnvironment::MPIEnvironment ( int & argc,
char **& argv,
int level = MPI_THREAD_FUNNELED )
inline

MPI started by MPI_Init_thread() at the level level (funneled by default), unless it already was.

◆ MPIEnvironment() [2/2]

ADS::MPIEnvironment::MPIEnvironment ( const MPIEnvironment & )
delete

no copy, since MPI ends once

◆ ~MPIEnvironment()

ADS::MPIEnvironment::~MPIEnvironment ( )
inline

MPI ended by MPI_Finalize(), if this object started it.

Member function documentation

◆ level()

int ADS::MPIEnvironment::level ( void ) const
inlinenodiscard

the level of threads that MPI provides, if this object started it

◆ operator=()

MPIEnvironment & ADS::MPIEnvironment::operator= ( const MPIEnvironment & )
delete

no copy, since MPI ends once


The documentation for this class was generated from the following file: