Playa::MPISession Class Reference

This class provides methods for initializing, finalizing, and querying the global MPI session. More...

List of all members.

Static Public Member Functions

static void init (int *argc, void ***argv)
 Initializer, calls MPI_Init() if necessary.
static int getRank ()
 Returns the process rank relative to MPI_COMM_WORLD.
static int getNProc ()
 Returns the number of processors in MPI_COMM_WORLD.
static void finalize ()
 Finalizer, calls MPI_Finalize() if necessary.
static bool & showStartupMessage ()
 Set to true if a message should be written by each processor at startup.

Static Private Attributes

static int rank_ = 0
static int nProc_ = 1


Detailed Description

This class provides methods for initializing, finalizing, and querying the global MPI session.

Definition at line 25 of file PlayaMPISession.hpp.


Member Function Documentation

void Playa::MPISession::finalize (  )  [static]

Finalizer, calls MPI_Finalize() if necessary.

Definition at line 68 of file PlayaMPISession.cpp.

References Playa::MPIOp::clearOpRegistry(), and Playa::MPIDataType::clearTypeRegistry().

static int Playa::MPISession::getNProc (  )  [inline, static]

Returns the number of processors in MPI_COMM_WORLD.

Definition at line 35 of file PlayaMPISession.hpp.

References nProc_.

static int Playa::MPISession::getRank (  )  [inline, static]

Returns the process rank relative to MPI_COMM_WORLD.

Definition at line 32 of file PlayaMPISession.hpp.

References rank_.

void Playa::MPISession::init ( int *  argc,
void ***  argv 
) [static]

Initializer, calls MPI_Init() if necessary.

Definition at line 16 of file PlayaMPISession.cpp.

References nProc_, rank_, and showStartupMessage().

static bool& Playa::MPISession::showStartupMessage (  )  [inline, static]

Set to true if a message should be written by each processor at startup.

Definition at line 42 of file PlayaMPISession.hpp.

Referenced by init().


Member Data Documentation

int Playa::MPISession::nProc_ = 1 [static, private]

Definition at line 46 of file PlayaMPISession.hpp.

Referenced by getNProc(), and init().

int Playa::MPISession::rank_ = 0 [static, private]

Definition at line 45 of file PlayaMPISession.hpp.

Referenced by getRank(), and init().

Site Contact