#include <alsuq/mpi/SimpleLoadBalancer.hpp>
◆ SimpleLoadBalancer()
alsuq::mpi::SimpleLoadBalancer::SimpleLoadBalancer |
( |
const std::vector< size_t > & |
samples | ) |
|
◆ loadBalance()
std::tuple< std::vector< size_t >, ConfigurationPtr, ConfigurationPtr > alsuq::mpi::SimpleLoadBalancer::loadBalance |
( |
int |
multiSample, |
|
|
ivec3 |
multiSpatial, |
|
|
const Configuration & |
mpiConfig |
|
) |
| |
- Parameters
-
multiSample | the number of samples to run in parallel |
multiSpatial | a 3 vector, for which each component is the number of processors to use in each direction. |
- Note
- We require that
multiSample*multiSpatial.x*multiSpatial.y*multiSpatial.z == mpiConfigurationWorld.getNumberOfProcesses();
- Parameters
-
mpiConfig | the relevant mpiConfig |
- Returns
- a tuple, where the first component is the list of samples to compute, the second is the configuration of the statistical domain, and the last is the configuration of the parallel domain.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsuq/include/alsuq/mpi/SimpleLoadBalancer.hpp
- /home/docs/checkouts/readthedocs.org/user_builds/alsvinn/checkouts/stable/alsuq/src/mpi/SimpleLoadBalancer.cpp