|
Zoltan2
Version of the Day
|
#include <Zoltan2_TaskMapping.hpp>


Public Member Functions | |
| virtual | ~CoordinateTaskMapper () |
| CoordinateTaskMapper (const Teuchos::Comm< int > *comm_, const MachineRepresentation< pcoord_t > *machine_, const Zoltan2::Model< typename Adapter::base_adapter_t > *model_, const Zoltan2::PartitioningSolution< Adapter > *soln_, const Environment *envConst) | |
| Constructor. When this constructor is called, in order to calculate the communication metric, the task adjacency graph is created based on the coordinate model input and partitioning of it. if the communication graph is already calculated, use the other constructors. More... | |
| CoordinateTaskMapper (const Teuchos::Comm< int > *comm_, const MachineRepresentation< pcoord_t > *machine_, const Zoltan2::Model< typename Adapter::base_adapter_t > *model_, const Zoltan2::PartitioningSolution< Adapter > *soln_, const Environment *envConst_, ArrayRCP< procId_t >task_communication_xadj_, ArrayRCP< procId_t >task_communication_adj_) | |
| Constructor When this constructor is called, it is assumed that the communication graph is already computed. It is assumed that the communication graph is given in task_communication_xadj_ and task_communication_adj_ parameters. More... | |
| CoordinateTaskMapper (const Environment *env_, CoordinateCommunicationModel< pcoord_t, tcoord_t, procId_t > *proc_task_comm_) | |
| Constructor. Sequential Constructor for test. More... | |
| CoordinateTaskMapper (const Environment *env_, const Teuchos::Comm< int > *comm_, const MachineRepresentation< pcoord_t > *machine_, int taskDim, procId_t taskCount, tcoord_t **taskCoords) | |
| Constructor. Given the machine object and task centers, performs mapping. More... | |
| void | doMapping (int myRank) |
| doMapping function, calls getMapping function of communicationModel object. More... | |
| double | getCommunicationCostMetric () |
| virtual size_t | getLocalNumberOfParts () const |
| Returns the number of parts to be assigned to this process. More... | |
| RCP< Comm< int > > | create_subCommunicatior () |
| creates and returns the subcommunicator for the processor group. More... | |
| void | getBestMapping () |
| finds the lowest cost mapping and broadcasts solution to everyone. More... | |
| virtual void | getProcsForPart (partId_t taskId, int &numProcs, int *procs) const |
| getAssignedProcForTask function, returns the assigned tasks with the number of tasks. More... | |
| procId_t | getAssignedProcForTask (procId_t taskId) |
| getAssignedProcForTask function, returns the assigned processor id for the given task More... | |
| virtual void | getPartsForProc (int procId, partId_t &numParts, partId_t *parts) const |
| getAssignedProcForTask function, returns the assigned tasks with the number of tasks. More... | |
| ArrayView< procId_t > | getAssignedTaksForProc (procId_t procId) |
| void | writeMapping () |
| void | writeMapping2 (int myRank) |
| void | writeGnuPlot (const Teuchos::Comm< int > *comm_, const Zoltan2::PartitioningSolution< Adapter > *soln_, int coordDim, tcoord_t **partCenters) |
Public Attributes | |
| 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 * | env |
Protected Attributes | |
| ArrayRCP< procId_t > | proc_to_task_xadj |
| ArrayRCP< procId_t > | proc_to_task_adj |
| ArrayRCP< procId_t > | task_to_proc |
| bool | isOwnerofModel |
| CoordinateCommunicationModel < pcoord_t, tcoord_t, procId_t > * | proc_task_comm |
| procId_t | nprocs |
| procId_t | ntasks |
| ArrayRCP< procId_t > | task_communication_xadj |
| ArrayRCP< procId_t > | task_communication_adj |
Definition at line 985 of file Zoltan2_TaskMapping.hpp.
|
inlinevirtual |
Definition at line 1009 of file Zoltan2_TaskMapping.hpp.
|
inline |
Constructor. When this constructor is called, in order to calculate the communication metric, the task adjacency graph is created based on the coordinate model input and partitioning of it. if the communication graph is already calculated, use the other constructors.
| comm_ | is the communication object. |
| machine_ | is the machineRepresentation object. Stores the coordinates of machines. |
| model_ | is the input adapter. |
| soln_ | is the solution object. Holds the assignment of points. |
| envConst_ | is the environment object. |
Definition at line 1027 of file Zoltan2_TaskMapping.hpp.
|
inline |
Constructor When this constructor is called, it is assumed that the communication graph is already computed. It is assumed that the communication graph is given in task_communication_xadj_ and task_communication_adj_ parameters.
| machine_ | is the machineRepresentation object. Stores the coordinates of machines. |
| model_ | is the input adapter. |
| soln_ | is the solution object. Holds the assignment of points. |
| envConst_ | is the environment object. |
| task_communication_xadj_ | is the solution object. Holds the assignment of points. |
| task_communication_adj_ | is the environment object. |
Definition at line 1209 of file Zoltan2_TaskMapping.hpp.
|
inline |
Constructor. Sequential Constructor for test.
| env_ | Environment object. |
| proc_task_comm_ | is the template parameter for which the mapping will be obtained with getMapping() function. |
Definition at line 1291 of file Zoltan2_TaskMapping.hpp.
|
inline |
Constructor. Given the machine object and task centers, performs mapping.
| env_ | Environment object. |
| proc_task_comm_ | is the template parameter for which the mapping will be obtained with getMapping() function. |
Definition at line 1311 of file Zoltan2_TaskMapping.hpp.
|
inline |
doMapping function, calls getMapping function of communicationModel object.
Definition at line 1341 of file Zoltan2_TaskMapping.hpp.
|
inline |
Definition at line 1358 of file Zoltan2_TaskMapping.hpp.
|
inlinevirtual |
Returns the number of parts to be assigned to this process.
Implements Zoltan2::PartitionMapping< Adapter >.
Definition at line 1364 of file Zoltan2_TaskMapping.hpp.
|
inline |
creates and returns the subcommunicator for the processor group.
Definition at line 1371 of file Zoltan2_TaskMapping.hpp.
|
inline |
finds the lowest cost mapping and broadcasts solution to everyone.
Definition at line 1415 of file Zoltan2_TaskMapping.hpp.
|
inlinevirtual |
getAssignedProcForTask function, returns the assigned tasks with the number of tasks.
| procId | procId being queried. |
| numProcs | (output), the number of processor the part is assigned to. |
| procs | (output), the list of processors assigned to given part.. |
Implements Zoltan2::PartitionMapping< Adapter >.
Definition at line 1446 of file Zoltan2_TaskMapping.hpp.
|
inline |
getAssignedProcForTask function, returns the assigned processor id for the given task
| taskId | taskId being queried. |
Definition at line 1453 of file Zoltan2_TaskMapping.hpp.
|
inlinevirtual |
getAssignedProcForTask function, returns the assigned tasks with the number of tasks.
| procId | procId being queried. |
| numParts | (output), the number of parts the processor is assigned to. |
| parts | (output), the list of parts assigned to given processor.. |
Implements Zoltan2::PartitionMapping< Adapter >.
Definition at line 1462 of file Zoltan2_TaskMapping.hpp.
|
inline |
Definition at line 1471 of file Zoltan2_TaskMapping.hpp.
|
inline |
Definition at line 1493 of file Zoltan2_TaskMapping.hpp.
|
inline |
Definition at line 1557 of file Zoltan2_TaskMapping.hpp.
|
inline |
Definition at line 1658 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 996 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 997 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 998 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 999 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 1000 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 1001 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 1002 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 1003 of file Zoltan2_TaskMapping.hpp.
|
protected |
Definition at line 1004 of file Zoltan2_TaskMapping.hpp.
|
inherited |
Definition at line 78 of file Zoltan2_PartitionMapping.hpp.
|
inherited |
Definition at line 79 of file Zoltan2_PartitionMapping.hpp.
|
inherited |
Definition at line 80 of file Zoltan2_PartitionMapping.hpp.
|
inherited |
Definition at line 81 of file Zoltan2_PartitionMapping.hpp.
|
inherited |
Definition at line 82 of file Zoltan2_PartitionMapping.hpp.
1.8.5