OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
CommCreator Class Reference

#include <CommCreator.h>

Public Types

enum  { MPI , SERIAL , COMMLIBRARIES }
 

Public Member Functions

 CommCreator ()
 
 ~CommCreator ()
 

Static Public Member Functions

static int getNumLibraries ()
 
static const char * getLibraryName (int)
 
static const char * getAllLibraryNames ()
 
static bool supported (int)
 
static bool supported (const char *nm)
 
static bool known (const char *nm)
 
static Communicatecreate (int, int &, char **&, int=(-1), bool=true, MPI_Comm mpicomm=MPI_COMM_WORLD)
 
static Communicatecreate (const char *nm, int &argc, char **&argv, int nodes=(-1), bool doinit=true, MPI_Comm mpicomm=MPI_COMM_WORLD)
 

Static Private Member Functions

static int libindex (const char *)
 

Detailed Description

Definition at line 32 of file CommCreator.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MPI 
SERIAL 
COMMLIBRARIES 

Definition at line 38 of file CommCreator.h.

Constructor & Destructor Documentation

◆ CommCreator()

CommCreator::CommCreator ( )
inline

Definition at line 42 of file CommCreator.h.

◆ ~CommCreator()

CommCreator::~CommCreator ( )
inline

Definition at line 43 of file CommCreator.h.

Member Function Documentation

◆ create() [1/2]

static Communicate * CommCreator::create ( const char *  nm,
int &  argc,
char **&  argv,
int  nodes = (-1),
bool  doinit = true,
MPI_Comm  mpicomm = MPI_COMM_WORLD 
)
inlinestatic

Definition at line 84 of file CommCreator.h.

References create(), and libindex().

Here is the call graph for this function:

◆ create() [2/2]

Communicate * CommCreator::create ( int  cm,
int &  argc,
char **&  argv,
int  nodes = (-1),
bool  doinit = true,
MPI_Comm  mpicomm = MPI_COMM_WORLD 
)
static

Definition at line 95 of file CommCreator.cpp.

References MPI, and SERIAL.

Referenced by create(), and IpplInfo::IpplInfo().

◆ getAllLibraryNames()

const char * CommCreator::getAllLibraryNames ( )
static

Definition at line 53 of file CommCreator.cpp.

Referenced by IpplInfo::IpplInfo(), and IpplInfo::printHelp().

◆ getLibraryName()

const char * CommCreator::getLibraryName ( int  n)
static

Definition at line 41 of file CommCreator.cpp.

References COMMLIBRARIES, and Hypervolume::n.

Referenced by libindex().

◆ getNumLibraries()

static int CommCreator::getNumLibraries ( )
inlinestatic

Definition at line 50 of file CommCreator.h.

References COMMLIBRARIES.

◆ known()

static bool CommCreator::known ( const char *  nm)
inlinestatic

Definition at line 69 of file CommCreator.h.

References libindex().

Referenced by IpplInfo::IpplInfo().

Here is the call graph for this function:

◆ libindex()

int CommCreator::libindex ( const char *  nm)
staticprivate

Definition at line 76 of file CommCreator.cpp.

References COMMLIBRARIES, and getLibraryName().

Referenced by create(), known(), and supported().

Here is the call graph for this function:

◆ supported() [1/2]

static bool CommCreator::supported ( const char *  nm)
inlinestatic

Definition at line 63 of file CommCreator.h.

References libindex(), and supported().

Here is the call graph for this function:

◆ supported() [2/2]

bool CommCreator::supported ( int  cm)
static

Definition at line 61 of file CommCreator.cpp.

References MPI, and SERIAL.

Referenced by IpplInfo::IpplInfo(), and supported().


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