Skip to content

Add the Base/LoadBalance tutorial - #188

Merged
WeiqunZhang merged 3 commits into
AMReX-Codes:mainfrom
WeiqunZhang:load-balance
Nov 5, 2026
Merged

WeiqunZhang merged 3 commits into
AMReX-Codes:mainfrom
WeiqunZhang:load-balance

Conversation

@WeiqunZhang

Copy link
Copy Markdown
Member

Time every box of a kernel whose cost varies in space, build a new DistributionMapping from the costs with makeKnapSack or makeSFC, move the data with ParallelCopy and measure the imbalance again.

Time every box of a kernel whose cost varies in space, build a new
DistributionMapping from the costs with makeKnapSack or makeSFC, move
the data with ParallelCopy and measure the imbalance again.
Accept a proposed mapping within 1% of the current efficiency: the
knapsack and SFC heuristics do not promise an improvement.

Synchronize the GPU stream after the initialization kernel so the
first timed box does not include it.

Docs: amr.loadbalance_with_workestimates rebalances at every regrid,
and loadbalance_level0_int only applies to single-level runs. The
round-robin fallback is described for both strategies.
# Conflicts:
#	Docs/source/Base.rst
@WeiqunZhang
WeiqunZhang merged commit 668fb4d into AMReX-Codes:main Nov 5, 2026
20 checks passed
@WeiqunZhang
WeiqunZhang deleted the load-balance branch November 5, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant