Repository navigation
Conversation
Contributor
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
4 of 6 tasks
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.
Long single-row Softmax leaves gfx950 with one workgroup and register spills. Small-M BF16 GEMM needs more parallel work, but BF16 split-K atomic accumulation can add enough rounding error to fail a stricter accuracy check.
Adds two opt-in FlyDSL launcher factories to AITER:
build_softmax_split: chunked max/sum followed by chunk-parallel normalization for 1–4 long rows, with FP32 statistics.build_gemm_bf16_split_fp32: the existing FP32-output FlyDSL split-K GEMM plus a new FlyDSL BF16 conversion. The default tile targets small M; this does not replace the global GEMM dispatcher.Each launcher owns preallocated workspace. Shape/dtype/device/contiguity and output aliasing are checked. Concurrent streams require separate launcher instances, retained while captured graphs exist. No external FlyDSL source checkout is needed by the implementations or tests; only the optional benchmark needs the original Softmax source for its baseline.
Exact PR implementation, MI355X/gfx950, AITER CI ROCm 7.2.4 / PyTorch 2.10, FlyDSL compiler 0.3.2:
15 randomized paired rounds, 64 complete calls per graph. Both Softmax stages and all GEMM split-K/convert work are included; allocation/compilation are excluded. These are resident-working-set operator timings against the original Softmax and HGEMM unit-test configuration, not claims against exhaustive vendor autotuning or model-level speedups. Raw samples, provenance and reproduction commands are included in
docs/flydsl/.Validation: 110 GPU tests passed on the PR checkout, including all three Softmax dtypes, long/ragged rows, wide-range inputs, independent GEMM seeds, poisoned-output graph replay, invalid contracts and separate stream workspaces. Ruff and
git diff --checkpassed. Nonfinite inputs, arbitrary strides and same-instance concurrent use are outside the documented contract.