MUQ  0.4.3
muq::SamplingAlgorithms::StaticLoadBalancer Class Referenceabstract

Base class handling the static load balancing of parallel MIMCMC. More...

#include <ParallelFixedSamplesMIMCMC.h>

Inheritance diagram for muq::SamplingAlgorithms::StaticLoadBalancer:

Detailed Description

Base class handling the static load balancing of parallel MIMCMC.

The user can implement a custom load balancing strategy and pass it to the parallel MIMCMC method.

Definition at line 27 of file ParallelFixedSamplesMIMCMC.h.

Classes

struct  WorkerAssignment
 

Public Member Functions

virtual void setup (std::shared_ptr< ParallelizableMIComponentFactory > componentFactory, uint availableRanks)=0
 
virtual int numCollectors (std::shared_ptr< MultiIndex > modelIndex)=0
 Number of collector processes assigned to a model index. More...
 
virtual WorkerAssignment numWorkers (std::shared_ptr< MultiIndex > modelIndex)=0
 Number of worker groups and number of workers per group for a given model index. More...
 

Member Function Documentation

◆ numCollectors()

virtual int muq::SamplingAlgorithms::StaticLoadBalancer::numCollectors ( std::shared_ptr< MultiIndex >  modelIndex)
pure virtual

Number of collector processes assigned to a model index.

Implemented in muq::SamplingAlgorithms::RoundRobinStaticLoadBalancer.

◆ numWorkers()

virtual WorkerAssignment muq::SamplingAlgorithms::StaticLoadBalancer::numWorkers ( std::shared_ptr< MultiIndex >  modelIndex)
pure virtual

Number of worker groups and number of workers per group for a given model index.

Implemented in muq::SamplingAlgorithms::RoundRobinStaticLoadBalancer.

◆ setup()

virtual void muq::SamplingAlgorithms::StaticLoadBalancer::setup ( std::shared_ptr< ParallelizableMIComponentFactory componentFactory,
uint  availableRanks 
)
pure virtual

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