Zoltan2  Version of the Day
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zoltan2::CommunicationModel< procId_t > Class Template Referenceabstract

CommunicationModel Base Class that performs mapping between the coordinate partitioning result. More...

#include <Zoltan2_TaskMapping.hpp>

Inheritance diagram for Zoltan2::CommunicationModel< procId_t >:
Inheritance graph
[legend]

Public Member Functions

 CommunicationModel ()
 
 CommunicationModel (procId_t no_procs_, procId_t no_tasks_)
 
virtual ~CommunicationModel ()
 
procId_t getNProcs () const
 
procId_t getNTasks () const
 
void calculateCommunicationCost (procId_t *task_to_proc, procId_t *task_communication_xadj, procId_t *task_communication_adj)
 
double getCommunicationCostMetric ()
 
virtual double getProcDistance (int procId1, int procId2) const =0
 
virtual void getMapping (int myRank, RCP< const Environment > env, ArrayRCP< procId_t > &proc_to_task_xadj, ArrayRCP< procId_t > &proc_to_task_adj, ArrayRCP< procId_t > &task_to_proc) const =0
 Function is called whenever nprocs > no_task. Function returns only the subset of processors that are closest to each other. More...
 

Public Attributes

procId_t no_procs
 
procId_t no_tasks
 

Protected Attributes

double commCost
 

Detailed Description

template<typename procId_t>
class Zoltan2::CommunicationModel< procId_t >

CommunicationModel Base Class that performs mapping between the coordinate partitioning result.

Definition at line 587 of file Zoltan2_TaskMapping.hpp.

Constructor & Destructor Documentation

template<typename procId_t >
Zoltan2::CommunicationModel< procId_t >::CommunicationModel ( )
inline

Definition at line 594 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
Zoltan2::CommunicationModel< procId_t >::CommunicationModel ( procId_t  no_procs_,
procId_t  no_tasks_ 
)
inline

Definition at line 595 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
virtual Zoltan2::CommunicationModel< procId_t >::~CommunicationModel ( )
inlinevirtual

Definition at line 599 of file Zoltan2_TaskMapping.hpp.

Member Function Documentation

template<typename procId_t >
procId_t Zoltan2::CommunicationModel< procId_t >::getNProcs ( ) const
inline

Definition at line 600 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
procId_t Zoltan2::CommunicationModel< procId_t >::getNTasks ( ) const
inline

Definition at line 603 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
void Zoltan2::CommunicationModel< procId_t >::calculateCommunicationCost ( procId_t *  task_to_proc,
procId_t *  task_communication_xadj,
procId_t *  task_communication_adj 
)
inline

Definition at line 607 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
double Zoltan2::CommunicationModel< procId_t >::getCommunicationCostMetric ( )
inline

Definition at line 637 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
virtual double Zoltan2::CommunicationModel< procId_t >::getProcDistance ( int  procId1,
int  procId2 
) const
pure virtual
template<typename procId_t >
virtual void Zoltan2::CommunicationModel< procId_t >::getMapping ( int  myRank,
RCP< const Environment >  env,
ArrayRCP< procId_t > &  proc_to_task_xadj,
ArrayRCP< procId_t > &  proc_to_task_adj,
ArrayRCP< procId_t > &  task_to_proc 
) const
pure virtual

Function is called whenever nprocs > no_task. Function returns only the subset of processors that are closest to each other.

Parameters
proc_to_task_xadjholds the pointer to the task array
proc_to_task_xadjholds the indices of tasks wrt to proc_to_task_xadj array.
task_to_procholds the processors mapped to tasks.

Implemented in Zoltan2::CoordinateCommunicationModel< pcoord_t, tcoord_t, procId_t >.

Member Data Documentation

template<typename procId_t >
double Zoltan2::CommunicationModel< procId_t >::commCost
protected

Definition at line 589 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
procId_t Zoltan2::CommunicationModel< procId_t >::no_procs

Definition at line 592 of file Zoltan2_TaskMapping.hpp.

template<typename procId_t >
procId_t Zoltan2::CommunicationModel< procId_t >::no_tasks

Definition at line 593 of file Zoltan2_TaskMapping.hpp.


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