Repository navigation
AMR: let amr_place_owner shed blocks heavier than its load cap - #2411
Open
sbryngelson wants to merge 1 commit into
Open
sbryngelson wants to merge 1 commit into
sbryngelson wants to merge 1 commit into
Conversation
With about one block per rank or fewer, each block outweighs the cap of 1.05 x the mean load, so no rank could accept one and every block stayed on the rank owning its coarse cells (68x the mean load on 512 GPUs). A block may now go to a rank it alone fills, and only when the move lowers the larger of the two loads.
|
Claude Code Review Head SHA: 01f29d1 Files changed:
Findings: |
sbryngelson
marked this pull request as ready for review
November 23, 2026 06:00
sbryngelson
requested review from
danieljvickers
and removed request for
a team
November 23, 2026 06:00
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI-assisted (Claude Code). Part of #2247.
What
amr_place_ownerputs each block on the rank that owns most of its coarse cells, then moves blocks off any rank above 1.05 x the mean load. A move was refused when it would put the receiver above that cap. With about one block per rank or fewer, a single block already weighs more than the cap, so no rank, not even an empty one, could take it: nothing moved and blocks piled up on the ranks under the refined region.A block may now go to a rank it alone fills (receiver load up to the block's own weight), and only when the move lowers the larger of the two loads, so a rank holding a single heavy block does not shed it back and forth.
Why
Found while chasing the 512-GPU timing of the tiling follow-up to #2381. On Frontier with
benchmarks/amr-style blast (--gbpp 16, 40 steps) on #2381's tiling,amr_place_owner = Tput 64 blocks on one rank: max/mean load 67.7, 335 of 512 ranks without a block, step loop 27.9-35.6 s against 4.6 s without it.amr.mdpromises the 5% cap.How it was checked
Frontier MI250X, OpenMP offload (amdflang),
--case-optimization, 512 GPUs (64 nodes),amr_device_pack = T, one run each, step-loop wall:amr_place_owner = Famr_place_owner = Tbeforeamr_place_owner = Twith this fix./mfc.sh precheckpasses.Not checked
amr_place_ownerregression tests (2-rank, results must not depend on owners) were not run locally; CI runs them. The change only affects which rank owns a block.Made with Claude Code.