PartitionMapping maps a solution or an input distribution to ranks.
More...
#include <Zoltan2_PartitionMapping.hpp>
|
| 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...
|
|
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.
◆ PartitionMapping() [1/6]
template<typename Adapter >
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 >
◆ PartitionMapping() [3/6]
template<typename Adapter >
◆ PartitionMapping() [4/6]
template<typename Adapter >
◆ PartitionMapping() [5/6]
template<typename Adapter >
◆ PartitionMapping() [6/6]
template<typename Adapter >
◆ ~PartitionMapping()
template<typename Adapter >
◆ getLocalNumberOfParts()
template<typename Adapter >
◆ getPartsForProc()
template<typename Adapter >
Get the parts belonging to a process.
- Parameters
-
procId | a process rank |
numParts | on return will be set the number of parts belonging to the process. |
parts | on 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
-
partId | a part number from 0 to one less than the global number of parts. |
numProcs | on return will be the number of procs owning partId |
procs | on return will be prointer to the procs owning partId |
Implemented in Zoltan2::CoordinateTaskMapper< Adapter, part_t >.
◆ comm
template<typename Adapter >
◆ machine
template<typename Adapter >
◆ input_adapter
template<typename Adapter >
◆ soln
template<typename Adapter >
◆ env
template<typename Adapter >
◆ num_parts
template<typename Adapter >
◆ solution_parts
template<typename Adapter >
The documentation for this class was generated from the following file: