PartitionMapping maps a solution or an input distribution to ranks.
More...
#include <Zoltan2_PartitionMapping.hpp>
|
| PartitionMapping (const Teuchos::Comm< int > *comm_, const Zoltan2::MachineRepresentation< scalar_t > *machine_, const Zoltan2::Model< typename Adapter::base_adapter_t > *model_, const Zoltan2::PartitioningSolution< Adapter > *soln_, 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 () |
|
| PartitionMapping (const Environment *envConst_) |
|
| PartitionMapping (const Environment *envConst_, const Teuchos::Comm< int > *comm_, const MachineRepresentation< scalar_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.
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 88 of file Zoltan2_PartitionMapping.hpp.
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
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 >.
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 >.
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
template<typename Adapter >
The documentation for this class was generated from the following file: