From 8439fe6ae9bdc5b0dc7534e19a2920dd61092348 Mon Sep 17 00:00:00 2001 From: Ann Almgren <asalmgren@lbl.gov> Date: Wed, 26 Feb 2020 09:18:58 -0800 Subject: [PATCH] Update load balancing --- docs/source/InputsLoadBalancing.rst | 4 ++-- docs/source/LoadBalancing.rst | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/source/InputsLoadBalancing.rst b/docs/source/InputsLoadBalancing.rst index e78dcb7..e3eba85 100644 --- a/docs/source/InputsLoadBalancing.rst +++ b/docs/source/InputsLoadBalancing.rst @@ -65,8 +65,8 @@ The following inputs must be preceded by "mfix" and determine how we load balanc +----------------------+-----------------------------------------------------------------------+-------------+--------------+ | load_balance_fluid | Only relevant if (dual_grid); if so do we also regrid mesh data | Int | 1 | +----------------------+-----------------------------------------------------------------------+-------------+--------------+ -| load_balance_type | What strategy to use for load balancing | String | FixedSize | -| | Options are "FixedSize", "KDTree" or "Knapsack" | | | +| load_balance_type | What strategy to use for load balancing | String | KnapSack | +| | Options are "KnapSack"or "SFC" | | | +----------------------+-----------------------------------------------------------------------+-------------+--------------+ | knapsack_weight_type | What weighting function to use if using Knapsack load balancing | String | RunTimeCosts | | | Options are "RunTimeCosts" or "NumParticles"" | | | diff --git a/docs/source/LoadBalancing.rst b/docs/source/LoadBalancing.rst index 7c685d8..cae0845 100644 --- a/docs/source/LoadBalancing.rst +++ b/docs/source/LoadBalancing.rst @@ -11,8 +11,7 @@ Load Balancing The process of load balancing is typically independent of the process of grid creation; the inputs to load balancing are a given set of grids with a set of weights -assigned to each grid. (The exception to this is the KD-tree approach in which the -grid creation process is governed by trying to balance the work in each grid.) +assigned to each grid. Single-level load balancing algorithms are sequentially applied to each AMR level independently, and the resulting distributions are mapped onto the ranks taking into account the weights @@ -20,7 +19,7 @@ already assigned to them (assign heaviest set of grids to the least loaded rank) Options supported by AMReX include: -- Knapsack: the default weight of a grid in the knapsack algorithm is the number of grid cells, +- KnapSack: the default weight of a grid in the knapsack algorithm is the number of grid cells, but AMReX supports the option to pass an array of weights – one per grid – or alternatively to pass in a MultiFab of weights per cell which is used to compute the weight per grid -- GitLab