Repository navigation
Conversation
wuhansky
force-pushed
the
fused_h_aggregate_backward_fixed
branch
from
November 27, 2026 06:43
4d817cd to
d26ffbd
Compare
wuhansky
force-pushed
the
fused_h_aggregate_backward_fixed
branch
from
November 27, 2026 08:14
d26ffbd to
7b7d7f0
Compare
wuhansky
force-pushed
the
fused_h_aggregate_backward_fixed
branch
3 times, most recently
from
December 1, 2026 06:19
38aad0f to
be5b6eb
Compare
…fused_h_aggregate_backward The generic tile config forced one row while the column tile stayed full width and ignored the [BLOCK_M, BLOCK_C] gradient tile that is live beside the operand, so two Ascend configs failed to lower (200 KiB, and 320 bytes over the 192 KiB UB). Cap the column tile first and size the row block from a measured 12288-lane operand-plus-gradient budget. Hygon: override the backward so a runtime 1.0 keeps the fp32 grad_x product materialized, defeating the HCU FMA contraction that rounded the exact product straight to the output dtype (one ULP on fp16 midpoints). Ascend: override with a core-bounded row-block walk and a mask-free body when every extent is exact (widest column tile first, up to four rows filling a 40960-lane budget); 1.33x geomean over the portable launch across the 20 benchmark rows, with grad_x bit-identical. Tests: floor the gradient comparisons at sqrt(reduced length) * RMS(terms), so a cancellation-collapsed result RMS cannot make the tolerance unachievable. Co-Authored-By: Claude Code <noreply@anthropic.com>
wuhansky
force-pushed
the
fused_h_aggregate_backward_fixed
branch
from
December 1, 2026 09:11
44df3af to
a7e9909
Compare
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.
count every live tile in the UB budget
Two Ascend configs failed to lower: with n=8/C=4096 the row block was forced to one row while the column tile stayed full width (a 16384-lane operand tile, 205 KiB), and the budget ignored the [BLOCK_M, BLOCK_C] gradient tile that is live beside the operand (n=1, fp32, 320 bytes over). Cap the column tile by the operand budget and size the row block from a 12288-lane operand-plus- gradient budget; measured, 12288 lanes compile and 16384 do not.