fpmas 1.6
Public Member Functions | List of all members
fpmas::api::graph::LoadBalancing< T > Class Template Referenceabstract

#include <load_balancing.h>

Inheritance diagram for fpmas::api::graph::LoadBalancing< T >:
Inheritance graph
[legend]

Public Member Functions

virtual PartitionMap balance (NodeMap< T > nodes)=0
 
virtual PartitionMap balance (NodeMap< T > nodes, PartitionMode partition_mode)=0
 

Detailed Description

template<typename T>
class fpmas::api::graph::LoadBalancing< T >

Load balancing API.

Member Function Documentation

◆ balance() [1/2]

template<typename T >
virtual PartitionMap fpmas::api::graph::LoadBalancing< T >::balance ( NodeMap< T >  nodes)
pure virtual

◆ balance() [2/2]

template<typename T >
virtual PartitionMap fpmas::api::graph::LoadBalancing< T >::balance ( NodeMap< T >  nodes,
PartitionMode  partition_mode 
)
pure virtual

Computes a node partition from the input nodes.

This functions is synchronous and blocks until all processes call it.

Each process calls the functions with its own node map, so that the global set of nodes to balance corresponds to the union of all the local node maps specified as arguments.

Parameters
nodeslocal nodes to balance
partition_modepartitioning strategy
Returns
balanced partition map

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