BioCMAMC-ST
HostImportantLoadBalancer Class Referencefinal

Let host to have different particle number based on alpha where number of host is alpha times number on other rank. More...

#include <impl_lb.hpp>

Inheritance diagram for HostImportantLoadBalancer:
[legend]
Collaboration diagram for HostImportantLoadBalancer:
[legend]

Public Member Functions

 HostImportantLoadBalancer (uint32_t s, double _alpha)
Public Member Functions inherited from ILoadBalancer
virtual ~ILoadBalancer ()=default
 ILoadBalancer (uint32_t s)
 ILoadBalancer ()=delete
 ILoadBalancer (const ILoadBalancer &)=delete
 ILoadBalancer (ILoadBalancer &&)=delete
ILoadBalanceroperator= (ILoadBalancer &&)=delete
ILoadBalanceroperator= (const ILoadBalancer &)=delete
bool check (uint64_t n=0) const
uint64_t balance (uint32_t rank, uint64_t n)
 returns the number of particle for rank: 'rank' if the total number is 'n'

Protected Member Functions

double getRatio (uint64_t n, uint32_t rank) const noexcept final
Protected Member Functions inherited from ILoadBalancer
auto size () const noexcept

Private Attributes

double alpha

Detailed Description

Let host to have different particle number based on alpha where number of host is alpha times number on other rank.

Constructor & Destructor Documentation

◆ HostImportantLoadBalancer()

HostImportantLoadBalancer::HostImportantLoadBalancer ( uint32_t s,
double _alpha )
Here is the call graph for this function:

Member Function Documentation

◆ getRatio()

double HostImportantLoadBalancer::getRatio ( uint64_t n,
uint32_t rank ) const
nodiscardfinalprotectedvirtualnoexcept

Implements ILoadBalancer.

Here is the call graph for this function:

Member Data Documentation

◆ alpha

double HostImportantLoadBalancer::alpha
private

The documentation for this class was generated from the following files:
  • apps/core/includes/load_balancing/impl_lb.hpp
  • apps/core/src/load_balancing/impl_lb.cpp