Zoltan2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
Zoltan2::DefaultMachine< nNo_t, nCoord_t > Class Template Reference

A Default MachineRepresentation Class. More...

#include <Zoltan2_MachineTorusLDMS.hpp>

Inheritance diagram for Zoltan2::DefaultMachine< nNo_t, nCoord_t >:
Inheritance graph
[legend]
Collaboration diagram for Zoltan2::DefaultMachine< nNo_t, nCoord_t >:
Collaboration graph
[legend]

Public Member Functions

 MachineRepresentation (const Comm< int > &comm)
 Constructor MachineRepresentation Class. More...
 
 MachineRepresentation (const RCP< Comm< int > > &comm_)
 Constructor MachineRepresentation Class. More...
 
void getMyCoordinate ()
 getMyCoordinate function stores the coordinate of the current processor in procCoords[*][rank] More...
 
void gatherMachineCoordinates ()
 gatherMachineCoordinates function reduces and stores all machine coordinates. More...
 
virtual ~MachineRepresentation ()
 destructor of the class free memory in procCoords. More...
 
int getProcDim () const
 getProcDim function returns the dimension of the physical processor layout. More...
 
nCoord_t ** getProcCoords () const
 getProcDim function returns the coordinates of processors in two dimensional array. More...
 
int getNumProcs () const
 getNumProcs function returns the number of processors. More...
 
- Public Member Functions inherited from Zoltan2::MachineRepresentation< nNo_t, nCoord_t >
 MachineRepresentation (const Teuchos::Comm< int > &comm)
 Constructor MachineRepresentation Class. More...
 
 MachineRepresentation (const Teuchos::Comm< int > &comm, const Teuchos::ParameterList &pl)
 
 ~MachineRepresentation ()
 
bool hasMachineCoordinates () const
 indicates whether or not the machine has coordinates More...
 
int getMachineDim () const
 returns the dimension (number of coords per node) in the machine More...
 
bool getMachineExtent (int *nxyz) const
 sets the number of unique coordinates in each machine dimension More...
 
bool getMachineExtentWrapArounds (bool *wrap_around) const
 if the machine has a wrap-around tourus link in each dimension. More...
 
bool getMyMachineCoordinate (nNo_t *xyz) const
 getMyCoordinate function set the machine coordinate xyz of the current process return true if current process' coordinates are available More...
 
bool getMachineCoordinate (const int rank, nNo_t *xyz) const
 getCoordinate function set the machine coordinate xyz of any rank process return true if coordinates are available by rank More...
 
bool getMachineCoordinate (const char *nodename, nNo_t *xyz) const
 getCoordinate function set the machine coordinate xyz of any node by nodename return true if coordinates are available by nodename More...
 
bool getAllMachineCoordinatesView (nNo_t **&allCoords) const
 getProcDim function set the coordinates of all ranks allCoords[i][j], i=0,...,getMachineDim(), j=0,...,getNumRanks(), is the i-th dimensional coordinate for rank j. return true if coordinates are available for all ranks More...
 
int getNumRanks () const
 return the number of ranks. More...
 
bool getHopCount (int rank1, int rank2, nNo_t &hops) const
 return the hop count between rank1 and rank2 More...
 
nCoord_t getNumUniqueGroups () const
 getNumUniqueGroups function return the number of unique Dragonfly network groups in provided allocation. More...
 
bool getGroupCount (nCoord_t *grp_count) const
 return the number of ranks in each group (RCA X-dim, e.g. first dim) More...
 

Additional Inherited Members

- Public Types inherited from Zoltan2::MachineRepresentation< nNo_t, nCoord_t >
typedef nNo_t machine_pcoord_t
 
typedef nCoord_t machine_part_t
 
typedef MachineForTesting
< nNo_t, nCoord_t > 
machine_t
 
- Static Public Member Functions inherited from Zoltan2::MachineRepresentation< nNo_t, nCoord_t >
static void getValidParameters (Teuchos::ParameterList &pl)
 Set up validators specific to this Problem. More...
 

Detailed Description

template<typename nNo_t, typename nCoord_t>
class Zoltan2::DefaultMachine< nNo_t, nCoord_t >

A Default MachineRepresentation Class.

Work In Progress, use another Machine Type.

Definition at line 15 of file Zoltan2_MachineTorusLDMS.hpp.

Constructor & Destructor Documentation

template<typename nNo_t , typename nCoord_t >
virtual Zoltan2::DefaultMachine< nNo_t, nCoord_t >::~MachineRepresentation ( )
inlinevirtual

destructor of the class free memory in procCoords.

Definition at line 174 of file Zoltan2_MachineTorusLDMS.hpp.

Member Function Documentation

template<typename nNo_t , typename nCoord_t >
Zoltan2::DefaultMachine< nNo_t, nCoord_t >::MachineRepresentation ( const Comm< int > &  comm)
inline

Constructor MachineRepresentation Class.

Parameters
comm_Communication object.

Definition at line 29 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
Zoltan2::DefaultMachine< nNo_t, nCoord_t >::MachineRepresentation ( const RCP< Comm< int > > &  comm_)
inline

Constructor MachineRepresentation Class.

Parameters
comm_RCP Communication object.

Definition at line 75 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
void Zoltan2::DefaultMachine< nNo_t, nCoord_t >::getMyCoordinate ( )
inline

getMyCoordinate function stores the coordinate of the current processor in procCoords[*][rank]

Definition at line 120 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
void Zoltan2::DefaultMachine< nNo_t, nCoord_t >::gatherMachineCoordinates ( )
inline

gatherMachineCoordinates function reduces and stores all machine coordinates.

Definition at line 154 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
int Zoltan2::DefaultMachine< nNo_t, nCoord_t >::getProcDim ( ) const
inline

getProcDim function returns the dimension of the physical processor layout.

Definition at line 186 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
nCoord_t** Zoltan2::DefaultMachine< nNo_t, nCoord_t >::getProcCoords ( ) const
inline

getProcDim function returns the coordinates of processors in two dimensional array.

Definition at line 193 of file Zoltan2_MachineTorusLDMS.hpp.

template<typename nNo_t , typename nCoord_t >
int Zoltan2::DefaultMachine< nNo_t, nCoord_t >::getNumProcs ( ) const
inline

getNumProcs function returns the number of processors.

Definition at line 201 of file Zoltan2_MachineTorusLDMS.hpp.


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