|
BioCMAMC-ST
|
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>
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 | |
| ILoadBalancer & | operator= (ILoadBalancer &&)=delete |
| ILoadBalancer & | operator= (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 |
Let host to have different particle number based on alpha where number of host is alpha times number on other rank.
| HostImportantLoadBalancer::HostImportantLoadBalancer | ( | uint32_t | s, |
| double | _alpha ) |
|
nodiscardfinalprotectedvirtualnoexcept |
|
private |