OPAL (Object Oriented Parallel Accelerator Library)
2021.1.99
OPAL
|
Specifies interface for topology policies. More...
#include <CommTopology.h>
Public Member Functions | |
CommTopology (MPI_Comm comm=MPI_COMM_WORLD) | |
virtual | ~CommTopology () |
virtual void | discover ()=0 |
every implementation must provide a discover method More... | |
int | getRank () const |
int | getNP () const |
unsigned int | getNumDimensions () const |
unsigned int | getCoreID () const |
std::vector< unsigned int > | getCoordinates () const |
std::vector< unsigned int > | getDimensions () const |
Protected Attributes | |
unsigned int | hwID_ |
unsigned int | num_dims_ |
unsigned int | my_core_id_ |
std::vector< unsigned int > | coords_ |
std::vector< unsigned int > | dims_ |
Private Attributes | |
MPI_Comm | comm_ |
int | rank_ |
int | num_procs_ |
Specifies interface for topology policies.
Definition at line 9 of file CommTopology.h.
|
inline |
Definition at line 13 of file CommTopology.h.
References comm_, num_procs_, and rank_.
|
inlinevirtual |
Definition at line 18 of file CommTopology.h.
|
pure virtual |
every implementation must provide a discover method
Implemented in NoCommTopology.
|
inline |
Definition at line 30 of file CommTopology.h.
References coords_.
|
inline |
Definition at line 28 of file CommTopology.h.
References my_core_id_.
|
inline |
Definition at line 31 of file CommTopology.h.
References dims_.
|
inline |
Definition at line 25 of file CommTopology.h.
References num_procs_.
|
inline |
Definition at line 27 of file CommTopology.h.
References num_dims_.
|
inline |
Definition at line 24 of file CommTopology.h.
References rank_.
|
private |
Definition at line 36 of file CommTopology.h.
Referenced by CommTopology().
|
protected |
Definition at line 47 of file CommTopology.h.
Referenced by getCoordinates().
|
protected |
Definition at line 48 of file CommTopology.h.
Referenced by getDimensions().
|
protected |
Definition at line 43 of file CommTopology.h.
|
protected |
Definition at line 45 of file CommTopology.h.
Referenced by getCoreID().
|
protected |
Definition at line 44 of file CommTopology.h.
Referenced by getNumDimensions().
|
private |
Definition at line 38 of file CommTopology.h.
Referenced by CommTopology(), and getNP().
|
private |
Definition at line 37 of file CommTopology.h.
Referenced by CommTopology(), and getRank().