Zoltan2
Public Member Functions | Public Attributes | List of all members
Zoltan2::PartitionMapping< Adapter > Class Template Referenceabstract

PartitionMapping maps a solution or an input distribution to ranks. More...

#include <Zoltan2_PartitionMapping.hpp>

Inheritance diagram for Zoltan2::PartitionMapping< Adapter >:
Inheritance graph
[legend]

Public Member Functions

 PartitionMapping (const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >machine_, const Teuchos::RCP< const Adapter > input_adapter_, const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > >soln_, const Teuchos::RCP< const Environment > envConst_)
 Constructor Constructor builds the map from parts to ranks. KDDKDD WILL NEED THE SOLUTION FOR INTELLIGENT MAPPING KDDKDD BUT MAY WANT TO SET PART SIZES BASED ON CAPABILITY OF A RANK. KDDKDD SO WHEN SHOULD THE MAP BE CREATED? More...
 
 PartitionMapping (const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >machine_, const Teuchos::RCP< const Adapter > input_adapter_, const part_t num_parts_, const part_t *result_parts, const Teuchos::RCP< const Environment > envConst_)
 
 PartitionMapping (const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const Environment > envConst_)
 
 PartitionMapping ()
 
 PartitionMapping (const Teuchos::RCP< const Environment >envConst_)
 
 PartitionMapping (const Teuchos::RCP< const Environment > envConst_, const Teuchos::RCP< const Teuchos::Comm< int > >comm_, const Teuchos::RCP< const MachineRepresentation< pcoord_t, part_t > >machine_)
 
virtual ~PartitionMapping ()
 
virtual size_t getLocalNumberOfParts () const =0
 Returns the number of parts to be assigned to this process. More...
 
virtual void getPartsForProc (int procId, part_t &numParts, part_t *&parts) const =0
 Get the parts belonging to a process. More...
 
virtual void getProcsForPart (part_t partId, part_t &numProcs, part_t *&procs) const =0
 Get the processes containing a part. More...
 

Public Attributes

const Teuchos::RCP< const Teuchos::Comm< int > > comm
 
const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > > machine
 
const Teuchos::RCP< const Adapter > input_adapter
 
const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > > soln
 
const Teuchos::RCP< const Environmentenv
 
const part_t num_parts
 
const part_t * solution_parts
 

Detailed Description

template<typename Adapter>
class Zoltan2::PartitionMapping< Adapter >

PartitionMapping maps a solution or an input distribution to ranks.

Definition at line 64 of file Zoltan2_PartitionMapping.hpp.

Constructor & Destructor Documentation

◆ PartitionMapping() [1/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( const Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >  machine_,
const Teuchos::RCP< const Adapter >  input_adapter_,
const Teuchos::RCP< const Zoltan2::PartitioningSolution< Adapter > >  soln_,
const Teuchos::RCP< const Environment envConst_ 
)
inline

Constructor Constructor builds the map from parts to ranks. KDDKDD WILL NEED THE SOLUTION FOR INTELLIGENT MAPPING KDDKDD BUT MAY WANT TO SET PART SIZES BASED ON CAPABILITY OF A RANK. KDDKDD SO WHEN SHOULD THE MAP BE CREATED?

Definition at line 92 of file Zoltan2_PartitionMapping.hpp.

◆ PartitionMapping() [2/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( const Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
const Teuchos::RCP< const Zoltan2::MachineRepresentation< pcoord_t, part_t > >  machine_,
const Teuchos::RCP< const Adapter >  input_adapter_,
const part_t  num_parts_,
const part_t *  result_parts,
const Teuchos::RCP< const Environment envConst_ 
)
inline

Definition at line 110 of file Zoltan2_PartitionMapping.hpp.

◆ PartitionMapping() [3/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( const Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
const Teuchos::RCP< const Environment envConst_ 
)
inline

Definition at line 129 of file Zoltan2_PartitionMapping.hpp.

◆ PartitionMapping() [4/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( )
inline

Definition at line 142 of file Zoltan2_PartitionMapping.hpp.

◆ PartitionMapping() [5/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( const Teuchos::RCP< const Environment envConst_)
inline

Definition at line 150 of file Zoltan2_PartitionMapping.hpp.

◆ PartitionMapping() [6/6]

template<typename Adapter >
Zoltan2::PartitionMapping< Adapter >::PartitionMapping ( const Teuchos::RCP< const Environment envConst_,
const Teuchos::RCP< const Teuchos::Comm< int > >  comm_,
const Teuchos::RCP< const MachineRepresentation< pcoord_t, part_t > >  machine_ 
)
inline

Definition at line 158 of file Zoltan2_PartitionMapping.hpp.

◆ ~PartitionMapping()

template<typename Adapter >
virtual Zoltan2::PartitionMapping< Adapter >::~PartitionMapping ( )
inlinevirtual

Definition at line 171 of file Zoltan2_PartitionMapping.hpp.

Member Function Documentation

◆ getLocalNumberOfParts()

template<typename Adapter >
virtual size_t Zoltan2::PartitionMapping< Adapter >::getLocalNumberOfParts ( ) const
pure virtual

Returns the number of parts to be assigned to this process.

Implemented in Zoltan2::CoordinateTaskMapper< Adapter, part_t >.

◆ getPartsForProc()

template<typename Adapter >
virtual void Zoltan2::PartitionMapping< Adapter >::getPartsForProc ( int  procId,
part_t &  numParts,
part_t *&  parts 
) const
pure virtual

Get the parts belonging to a process.

Parameters
procIda process rank
numPartson return will be set the number of parts belonging to the process.
partson return will be a pointer to the parts assigned to procId

Implemented in Zoltan2::CoordinateTaskMapper< Adapter, part_t >.

◆ getProcsForPart()

template<typename Adapter >
virtual void Zoltan2::PartitionMapping< Adapter >::getProcsForPart ( part_t  partId,
part_t &  numProcs,
part_t *&  procs 
) const
pure virtual

Get the processes containing a part.

Parameters
partIda part number from 0 to one less than the global number of parts.
numProcson return will be the number of procs owning partId
procson return will be prointer to the procs owning partId

Implemented in Zoltan2::CoordinateTaskMapper< Adapter, part_t >.

Member Data Documentation

◆ comm

template<typename Adapter >
const Teuchos::RCP<const Teuchos::Comm<int> > Zoltan2::PartitionMapping< Adapter >::comm

Definition at line 77 of file Zoltan2_PartitionMapping.hpp.

◆ machine

template<typename Adapter >
const Teuchos::RCP<const Zoltan2::MachineRepresentation <pcoord_t,part_t> > Zoltan2::PartitionMapping< Adapter >::machine

Definition at line 78 of file Zoltan2_PartitionMapping.hpp.

◆ input_adapter

template<typename Adapter >
const Teuchos::RCP<const Adapter > Zoltan2::PartitionMapping< Adapter >::input_adapter

Definition at line 79 of file Zoltan2_PartitionMapping.hpp.

◆ soln

template<typename Adapter >
const Teuchos::RCP<const Zoltan2::PartitioningSolution<Adapter> > Zoltan2::PartitionMapping< Adapter >::soln

Definition at line 80 of file Zoltan2_PartitionMapping.hpp.

◆ env

template<typename Adapter >
const Teuchos::RCP<const Environment > Zoltan2::PartitionMapping< Adapter >::env

Definition at line 81 of file Zoltan2_PartitionMapping.hpp.

◆ num_parts

template<typename Adapter >
const part_t Zoltan2::PartitionMapping< Adapter >::num_parts

Definition at line 82 of file Zoltan2_PartitionMapping.hpp.

◆ solution_parts

template<typename Adapter >
const part_t* Zoltan2::PartitionMapping< Adapter >::solution_parts

Definition at line 83 of file Zoltan2_PartitionMapping.hpp.


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