Skip to content

refactor(ci): pin the stack in stack.json and test in aiter-test, sglang-test and vllm-test - #220

Merged
zhenhuang12 merged 26 commits into
mainfrom
cursor/stack-json-f4ec
Nov 17, 2026
Merged

zhenhuang12 merged 26 commits into
mainfrom
cursor/stack-json-f4ec

Conversation

@xiaobochen-amd

@xiaobochen-amd xiaobochen-amd commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Why

CI installed an older aiter over the sglang image, so it tested FlyDSL 0.3.2 and aiter 0.1.21 while users run the image's FlyDSL 0.3.4.1 and aiter 0.1.23, and the vLLM plugins never ran in a vLLM image. This PR pins the versions in one file and tests each engine's plugins in that engine's image as it ships.

Scope

  • stack.json pins the sglang, vLLM and aiter-test images (by digest) and the baseline aiter commit; CI, AgentX and install_aklr.sh read it.
  • Three GPU jobs, in order on one node: aiter-test times aklr/ops against the baseline aiter; sglang-test and vllm-test time their engine's plugins and check aklr/ops without timing. publish-measurement takes each job's numbers for its own schemas.
  • validate --under/--exclude/--no-timing; kernels whose requires the environment misses are skipped; requires can name mori and aiter.
  • Fixes: a GEMM LDS race (gemm_n8192_k4096); the kernel tracer under torch 2.13, which links rocprofiler-sdk; the vLLM routes on vLLM 0.33.0 and its aiter 0.1.26; qwen3_next references in fp32; test_backend_matches_reference checks the reference at the contract's SQNR (20 dB if none) instead of the kernels' bounds.
  • Deferred: parallel jobs on separate nodes, merge rules, e2e jobs. mega_moe is not timed in aiter-test until mori finds libdrm's headers.

Tradeoffs

  • The baseline aiter stays dbd8bf5; moving it belongs to the sglang 0.5.23 / aiter v0.1.29 upgrade.
  • fused_moe, tgemm.mm and mla_decode_fwd routes declare vLLM 0.33.0 only, since their parameters must equal the image's aiter's; on 0.33.0rc1.dev910 they fall back to vLLM.

Verification

Environment: MI355X; lmsysorg/sglang:v0.5.22-rocm10-mi35x (FlyDSL 0.3.4.1, aiter 0.1.23; aiter-test installs aiter dbd8bf5, FlyDSL 0.3.2) and vllm/vllm-openai-rocm:v0.33.0-rocm100 (torch 2.13, FlyDSL 0.4.0, aiter 0.1.26); ROCm 10.0, Triton 3.8.0
Gate overrides: none

Kernels

12 kernel files only add aiter or mori to requires, which renames them and drops their measurements until publish-measurement re-measures them. gemm_n8192_k4096 now waits for LDS reads before reusing a ring slot: it was wrong about one run in three at m=2, right in 10 of 10 after, at 0.997–1.001 of the incumbent's time.

Code

  • vllm-test by hand: 102 unit tests pass; aklr/plugins/vllm 177/177 Points correct, all ≥ 1.05 (1.19–2.19); aklr/ops checked with no finding.
  • aiter-test full validation on an earlier head: 255 schemas, 2443 Points, pass.
  • CPU tests, export check and pre-commit pass. No schema or measurement version changes.

Not run

  • GPU CI on this head (queued).
  • An AgentX sweep.

Risk

Affects: CI for every schema; the vLLM plugin routes; kernel timing; AgentX's server images.
AgentX: all
If wrong: a CI job fails or skips kernels; a vLLM route falls back to vLLM; timing fails with platform_failure.
Undo: git revert; the 13 renamed kernel files keep no measurements until re-measured.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Critical validation gaps allow unchecked kernels to pass CI and failing workloads to remain dispatchable, while changed mega_moe schemas lack a working timed qualification path.

8 open issues
What changed in this PR

This PR centralizes AKLR’s CI stack configuration in stack.json and separates baseline performance validation from SGLang integration checks.

Changes:

  • Splits GPU tests, coverage, validation, and measurement publication into sequential AITER and SGLang lanes.
  • Adds directory filtering, untimed validation, and reporting for unmet kernel requirements.
  • Adds MoRI dependency declarations and updates installation scripts, tests, and contributor guidance.
File Description
tests/​core/​validation/​test_validation_scope.py Tests stack-change classification and directory filtering.
tests/​core/​validation/​test_pipeline.py Tests requirement skips and untimed validation.
tests/​core/​platform/​test_toolchain.py Tests MoRI version lookup without importing it.
tests/​core/​contract/​test_schema.py Tests library requirements and dependency detection.
stack.json Defines lane images and the baseline AITER commit.
scripts/​agentx/​install_aklr.sh Installs AKLR without replacing the serving image’s AITER.
harness/​skills/​aklr-read-validation/​SKILL.md Updates CI job and artifact guidance.
harness/​skills/​aklr-read-validation/​references/​ci.md Documents lane-specific validation reports.
harness/​skills/​aklr-open-pr/​SKILL.md Updates required CI evidence and removes review-tier instructions.
harness/​skills/​aklr-kb/​triton/​tuning.md Documents lane-specific performance baselines.
harness/​skills/​aklr-kb/​triton/​SKILL.md Clarifies the CI Triton version wording.
harness/​skills/​aklr-kb/​triton/​gemm/​small_m_gemm.md Updates unmet-requirement behavior and citations.
harness/​skills/​aklr-kb/​triton/​debugging.md Updates stack, baseline, and validation guidance.
harness/​skills/​aklr-kb/​triton/​authoring.md Documents lane environments and requirement skips.
harness/​skills/​aklr-kb/​SKILL.md Points baseline references to stack.json.
harness/​skills/​aklr-kb/​pitfalls/​state_kept_across_calls.md Refreshes source-line citations.
harness/​skills/​aklr-kb/​pitfalls/​measured_a_different_build.md Explains differing lane dependencies.
harness/​skills/​aklr-kb/​pitfalls/​baseline_silently_wrong.md Refreshes baseline-evaluation citations.
harness/​skills/​aklr-kb/​maintenance/​kb_lint.py Updates a comment describing the CI image’s Triton.
harness/​skills/​aklr-kb/​flydsl/​SKILL.md Updates the baseline configuration reference.
harness/​skills/​aklr-kb/​communication/​INDEX.md Updates the AITER reference location.
harness/​skills/​aklr-kb/​cases/​k3_bf16_short_k_large_m.md Updates baseline reproduction references.
harness/​skills/​aklr-kb/​cases/​dsa_sparse_mla_8_heads.md Refreshes validation source citations.
harness/​scripts/​forge_task/​README.md Redirects baseline setup instructions to CONTRIBUTING.
harness/​gate-config.md References the baseline commit in stack.json.
docs/​ops_tutorial.zh.md Updates Chinese dependency and CI instructions.
docs/​ops_tutorial.md Updates dependency and CI instructions.
CONTRIBUTING.md Documents the centralized baseline commit and installation command.
benchmarks/​agentx/​agentx_ci/​recipe_resolve.py Resolves the serving image from stack.json.
aklr/​plugins/​sglang/​aiter_calls.py Accepts the persistent call argument.
aklr/​ops/​README.md Documents library requirements and validation options.
aklr/​ops/​mega_moe/​impls/​flydsl/​mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/​d5b3747edd9a783e.json Adds a MoRI requirement and clears measurements.
aklr/​ops/​mega_moe/​impls/​flydsl/​mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/​241b9a5b1b52a454.json Adds a MoRI requirement and clears measurements.
aklr/​ops/​mega_moe/​impls/​flydsl/​mega_moe_ep_size8_gate_up_interleaved_model_dim7168_n_experts48_topk6_inter_dim3072/​0bc3f55bd8bcc889.json Adds a MoRI requirement and clears measurements.
aklr/​core/​validation/​stages/​validation_scope.py Adds directory filtering and stack-triggered revalidation.
aklr/​core/​validation/​stages/​_report/​_finding.py Removes the toolchain-mismatch finding code.
aklr/​core/​validation/​stages/​_bench/​_stage.py Adds requirement skips and untimed workload preparation.
aklr/​core/​validation/​stages/​_bench/​_report.py Reports skipped schemas and excludes untimed speedups.
aklr/​core/​validation/​stages/​_bench/​_evaluation/​_candidate.py Gates baseline warm-up and timing on thresholds.
aklr/​core/​validation/​command.py Exposes filtering and untimed CLI options.
aklr/​core/​platform/​toolchain.py Reads MoRI versions from distribution metadata.
aklr/​core/​contract/​spec/​_kernel.py Adds known-library requirements and import scanning.
aklr/​benchmarks/​models/​glm52/​README.md References the centralized serving-image configuration.
.github/​workflows/​ci.yaml Implements both GPU lanes and lane-specific artifacts.
.github/​scripts/​select_lint_range.sh Extracts lint-range and validation-base selection.
.github/​scripts/​publish_measurement.sh Publishes measurements from both timed lane reports.
.github/​README.md Links stack configuration and adjusts installation guidance.
.github/​pull_request_template.md Requests evidence from both validation lanes.

Review effort: Max

Comment thread .github/workflows/ci.yaml Resolved
Comment thread .github/workflows/ci.yaml Resolved
Comment thread .github/workflows/ci.yaml Resolved
Comment thread aklr/core/contract/spec/_kernel.py Resolved
Comment thread aklr/core/validation/command.py Resolved
Comment thread stack.json Resolved
One file at the repository root holds the versions CI runs on, with
today's values: sglang_image, vllm_image (AgentX's vLLM runs), pytorch_image (for the aiter lane to come)
and aiter, the commit validation times AKLR's kernels against.

- ci.yaml: code-lint reads and checks stack.json; the GPU jobs take their
  image and the baseline AITER from its outputs, and the bot's commit
  names the image from it. AKLR_CI_IMAGE and the env AKLR_BASELINE_AITER
  are gone.
- Triton is the image's: CI and install_aklr.sh fail if installing AITER
  replaces it, instead of requiring 3.8.0. A Triton a kernel cannot run on
  is caught by its kernel.requires.
- ValidationScope.path_kind counts stack.json as core, so a new image or
  baseline re-measures every schema (a change to ci.yaml's pin did not).
- install_aklr.sh and AgentX's ci_image read stack.json instead of
  parsing ci.yaml; AKLR_VLLM_CI_IMAGE moves there as vllm_image.
- Docs and the knowledge base name stack.json; the baseline AITER's
  install line moves from the README to CONTRIBUTING.md.
The three mega_moe kernels import mori but named no mori version, and
ci.yaml carried a fix for mori itself (libdrm headers on CPATH for its JIT)
that no user environment has. mori's fix belongs in mori, not in AKLR.

- ci.yaml: the mori workaround and its CPATH export are gone.
- kernel.requires may name a library beside the languages (Library, now
  only mori); its version is read from the installed distribution
  (amd_mori), not by importing mori, which sizes its heap on import.
- requires_error also rejects a kernel whose Python sources import a
  library that requires does not name.
- The mega_moe kernels require mori>=1.2.4, the sglang 0.5.22 image's
  (f39fa765); their uuids move.
…s the environment misses

For CI's two lanes (aiter, sglang), each of which validates part of the
repository in its own image.

- --under DIR keeps the schemas under DIR (ValidationScope.under).
- --no-timing builds and checks the kernels only: no threshold, so the
  candidate times nothing, never runs the baseline and reads no incumbent;
  no schemas/ or baseline/ is written back.
- A schema whose kernel.requires the environment misses is skipped, as
  dispatch skips it, and listed in the report (BenchReport.skipped_schemas);
  it no longer fails the run. The candidate-side check and the
  no_matching_toolchain code it raised are gone.
- The bench's speedup roll-up counts timed workloads only.
The aiter lane measures aklr/ops on stack.json's aiter_image with the pinned
baseline AITER; the sglang lane checks plugins, and aklr/ops untimed, on the
serving image as users install it. Both run in turn on one allocated node.
Lint-range selection and the measurement commit move into .github/scripts.
… lane jobs

The PR template and aklr-open-pr pointed at .github/scripts/review_tier/, which
never existed. The kinds of change and what each needs stay; the template and
aklr-read-validation now name aiter-lane and sglang-lane instead of validation.
BenchStage now skips a schema whose kernel.requires the environment misses, before
any faked runner; the pipeline tests' flydsl and triton schemas no longer depend on
what the machine installed.
Pinning mori changed the three kernels' uuids, so each is a new file, and a new
file holds no speedup or accuracy until the bot measures it (audit PERF_EDITED).
mega_moe's baseline JIT-builds mori's device bitcode, which misses TheRock's
<libdrm/drm.h> (ROCm/mori, _collect_include_dirs, unfixed at 29e0c086). The aiter
lane validates aklr/ops with validate --exclude aklr/ops/mega_moe; the sglang lane
still checks mega_moe's kernels, untimed.
stack.json re-benches every schema as aklr/core's code does, so the bot's checks
that drop a stale measurement say so.
A timed bench demotes a workload whose output mismatches and writes it back as
failed, so dispatch never serves it. An untimed bench (the sglang lane's check of
aklr/ops) writes nothing back: a demotion there would leave the wrong workload
dispatchable, so every finding decides.
The lanes run in turn on one node, whose lease manage_spur_runner.sh defaults to
8 hours; 330 minutes each could outlast it. 240 + 210 minutes leaves room for
allocation and image pulls.
…path

./aklr/ops selected nothing and . nothing at all, so a run could pass having checked
no schema; a directory outside the repository is now a usage error.
The line pattern missed import torch, mori and an import after a colon, and read an
import written in a docstring; ast finds every import statement and nothing else.
…utput

write_schemas and write_baselines replace their directories; an untimed run calls
neither, so a timed run's schemas and baselines stayed beside its report.
A tag can move: a rerun of the same revision could then measure another Triton,
FlyDSL or AITER without stack.json changing. The tag stays beside the digest for
the reader; docker pulls by the digest.

vllm_image is pinned too, so AgentX takes each framework's image from
stack.json as it stands instead of looking the tag's digest up at plan time.
Eleven FlyDSL kernels import aiter beyond their baseline, and two fused_moe ones
build on its internals: the 7168 / 48-of-384 / top-6 kernel's private helper,
stage kernel names and quant signature exist only in the baseline aiter (0.1.21),
so in the sglang 0.5.22 image's aiter (0.1.23) it failed to build. aiter is now a
library a kernel names like mori, read from amd-aiter's metadata, and export
check rejects a kernel that imports it without a version.

- That kernel requires aiter>=0.1.21,<0.1.23: elsewhere dispatch skips it and
  sglang runs aiter's own MoE, instead of failing the call.
- The other ten require aiter>=0.1.21, the aiter they were measured against.
- Their uuids move, so their measurements go until CI measures them.
"lane" said nothing about what a job does. Each job's artifacts take its name from
github.job, so the LANE variable goes; publish-measurement downloads the renamed
validation reports. The docs and skills that name the jobs follow.
@cursor cursor Bot changed the title [WIP] refactor(ci): pin the stack in stack.json and split GPU validation into an aiter lane and an sglang lane refactor(ci): pin the stack in stack.json and test in aiter-test, sglang-test and vllm-test Nov 17, 2026
The three images, pinned by digest, made the perf commit's subject 446
characters; gh pr create and gh pr edit reject a title that long, so
publish-measurement could neither open nor merge the bot PR. The images
move to the commit body.
@zhenhuang12
zhenhuang12 merged commit 1816678 into main Nov 17, 2026
9 checks passed
zhenhuang12 pushed a commit that referenced this pull request Nov 18, 2026
* docs(kb): name the kernel files main holds now, after #168 and #220 renamed them

#168 (kernel.requires) and #220 (aiter in kernel.requires) renamed every kernel file they touched without changing
its code, so the case pages' sources: lines and their text named files main no longer has (kb_reconcile: 0 covered,
100 gone). Each gone file is replaced by the file in its directory whose kernel (entry point and sources) is
byte-identical; where #212 added a second schema of the same kernel, by the one with the same workloads. The
withdrawn 4ea93103 is left for a separate edit.

* docs(kb): mark fused_moe 4ea93103 withdrawn

#153 withdrew it (1.043 over aiter, under the 5% bar). Its sources: line goes, the Points table says so, and S8 pins
the source to the revision before #153 so the citation still resolves.

* docs(kb): GEMM: nt at K=512, bounded-wait fold, ring barrier, cached fold workspace

- small_m.md §6: E134's nt cost at K=512 holds for that forge kernel only;
  #188's direct-to-LDS B stream at the same shape pays 1.66-1.69x with nt
  (E147). The shape does not decide the policy.
- wait_free_fold.md: a waiting fold is safe with a bounded wait, hand-off on
  timeout and a per-call workspace, as #159's FOLD 4/5 (exact under
  contention, two streams and concurrent graphs). Cost and risk: a
  workspace cached per (device, stream), as in #212's Triton n32_k6144, is
  shared by every graph captured on that stream (wrong outputs).
- datapath.md §4: a ring barrier before a DMA refill must also wait
  lgkmcnt(0); #110's n4096_k8192 races under contention without it.
  correctness.md and flydsl/gemm.md point there.

* docs(kb): mHC 4096 Gram form without a clamp; aiter's stage 2 drops b_nt

- cases/mhc_fused_post_pre.md: the hidden-4096 kernel returns NaN when
  the residual streams cancel; clamp the form at 0 like the hidden-7168
  kernel.
- moe/grouped_sorted_tokens.md §4, flydsl/moe.md §4: aiter's mixed stage-2
  builder discards b_nt, so a _bnt2 row loads w2 cached; restoring it took
  #122's fused MoE from 256.8 to 217.5 us at 512 tokens.

* docs(kb): pitfalls: degenerate Points, eager host time, in-place state

- degenerate_points.md (new): Points whose inputs all take a kernel's fast
  path (#201's FlashMLA q8: every request 8 KV rows) score a speedup that
  realistic lengths reverse. attention/measurement.md §8 points there.
- eager_call_host_time.md (new): the graph-replay speedup leaves out a
  @flyc.jit launcher's per-call host time; #134's top-k is 2.8-7.1x in
  replays and 0.18-0.68x of aiter called eagerly.
- state_kept_across_calls.md: form 3, a kernel that skips unchanged state
  stores timed on state replayed in place (#75's GDN decode: 2.40x in
  place, 1.62x with fresh state). triton/gdn.md points there.

* docs(kb): mHC case: the hidden-7168 HIP file #168 renamed, and #202's FlyDSL kernel beside it

* docs(kb): evidence counts from the runs' logs; R2 at batch 4 and 8; aiter's top-k fails the reference at 16384
zhenhuang12 added a commit that referenced this pull request Nov 18, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in
code and never written to its json. Schema gains variant; a workload's measurements are its
evaluations, one per hardware, each with its speedups by baseline and, where it was timed
against the baseline, the kernel's microseconds (main's #193).

kernel.build.requires names the language's toolchain and every library the sources import
(main's #220: aiter, mori), read from the installed distribution.

aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the
schema model.
zhenhuang12 added a commit that referenced this pull request Nov 18, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench,
registered per op type, on process runners. Judge: whether a result passes and what is written
back.

From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks
the workloads not recorded failed against nothing and writes nothing back), a schema whose
kernel.build.requires the environment misses is skipped and listed instead of failing, and
stack.json re-benches every schema (#220).
kyle-256 added a commit that referenced this pull request Nov 19, 2026
…ot (n4096 / k8192)

(kernel.py:388, :855) that wait for the DMA only, so a wave can pass one with its reads of the slot the next DMA
overwrites still in flight. On MI355X with FlyDSL 0.3.2, under another kernel running on the same GPU, m = 2 came
out wrong in 10 of 2000 runs (relative error up to 8.7e-2) and differed bit for bit between two runs of the same
input in 26; with lgkmcnt(0) added to both barriers, as #220 did, 0 of 2000 for both, and m = 1 and 4 clean either
way. Its uuid moves, so its measurements go until CI measures it.
kyle-256 added a commit that referenced this pull request Nov 19, 2026
…ot (n4096 / k8192) (#277)

(kernel.py:388, :855) that wait for the DMA only, so a wave can pass one with its reads of the slot the next DMA
overwrites still in flight. On MI355X with FlyDSL 0.3.2, under another kernel running on the same GPU, m = 2 came
out wrong in 10 of 2000 runs (relative error up to 8.7e-2) and differed bit for bit between two runs of the same
input in 26; with lgkmcnt(0) added to both barriers, as #220 did, 0 of 2000 for both, and m = 1 and 4 clean either
way. Its uuid moves, so its measurements go until CI measures it.
zhenhuang12 added a commit that referenced this pull request Nov 20, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in
code and never written to its json. Schema gains variant; a workload's measurements are its
evaluations, one per hardware, each with its speedups by baseline and, where it was timed
against the baseline, the kernel's microseconds (main's #193).

kernel.build.requires names the language's toolchain and every library the sources import
(main's #220: aiter, mori), read from the installed distribution.

aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the
schema model.
zhenhuang12 added a commit that referenced this pull request Nov 20, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench,
registered per op type, on process runners. Judge: whether a result passes and what is written
back.

From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks
the workloads not recorded failed against nothing and writes nothing back), a schema whose
kernel.build.requires the environment misses is skipped and listed instead of failing, and
stack.json re-benches every schema (#220).
@xiaobochen-amd
xiaobochen-amd deleted the cursor/stack-json-f4ec branch November 20, 2026 08:18
merrittttt added a commit to merrittttt/AKLR that referenced this pull request Nov 24, 2026
…ot (n2304 / k8192)

gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier
for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the
compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave
that passes it issues the next stage's DMA into the slot a slower wave is still
reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as
AMD-AGI#220 (n8192 / k4096) and AMD-AGI#277 (n4096 / k8192) did in the twin kernels. The kernel
source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until
CI measures it.
zhenhuang12 pushed a commit to merrittttt/AKLR that referenced this pull request Nov 25, 2026
…ot (n2304 / k8192)

gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier
for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the
compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave
that passes it issues the next stage's DMA into the slot a slower wave is still
reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as
AMD-AGI#220 (n8192 / k4096) and AMD-AGI#277 (n4096 / k8192) did in the twin kernels. The kernel
source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until
CI measures it.
zhenhuang12 added a commit that referenced this pull request Nov 25, 2026
A schema's init, reference, check and baseline are one Standard, defined with its template in
code and never written to its json. Schema gains variant; a workload's measurements are its
evaluations, one per hardware, each with its speedups by baseline and, where it was timed
against the baseline, the kernel's microseconds (main's #193).

kernel.build.requires names the language's toolchain and every library the sources import
(main's #220: aiter, mori), read from the installed distribution.

aklr/core/contract is removed. hsaco (#155) and the toolchain pin (#168) are carried onto the
schema model.
zhenhuang12 added a commit that referenced this pull request Nov 25, 2026
Plan: what each workload is timed against and the threshold it must clear. Measure: OpBench,
registered per op type, on process runners. Judge: whether a result passes and what is written
back.

From main since the base: validate --under/--exclude and --no-timing (an untimed bench checks
the workloads not recorded failed against nothing and writes nothing back), a schema whose
kernel.build.requires the environment misses is skipped and listed instead of failing, and
stack.json re-benches every schema (#220).
zhenhuang12 pushed a commit that referenced this pull request Nov 25, 2026
…ot (n2304 / k8192) (#336)

gemm_n2304_k8192's gemv path (m <= 16) and split-K path wait at their ring barrier
for the DMA only (s_waitcnt vmcnt(N); s_barrier). The gemv K loop is unrolled, so the
compiler leaves the last LDS reads of a stage in flight across the barrier, and a wave
that passes it issues the next stage's DMA into the slot a slower wave is still
reading. Both barriers now also wait lgkmcnt(0), as the big path's already does and as
#220 (n8192 / k4096) and #277 (n4096 / k8192) did in the twin kernels. The kernel
source changes, so the uuid moves (a5184ecc -> 8c12d20a) and its measurements go until
CI measures it.
RuibinCheung pushed a commit that referenced this pull request Nov 26, 2026
…ds in their ring stage (n6144 / k6144, n6288 / k7168) (#354)

* fix(gemm): keep the strip's MFMA reads in their ring stage; barriers wait for LDS too (n6144 / k6144)

gemm_n6144_k6144's strip kernel (m <= 32) runs a 32-column MFMA tile on ring stages
that hold only the 24 B rows of its strip, and let the lanes of columns 24-31 read past
the stage: into the next stage's first rows, which the loop-head wait does not cover (at
m 9-16 they are A rows whose DMAs are still in flight), and past the LDS allocation on the
last ring stage. Those columns are never stored, so the output did not depend on what was
read, but the read raced the DMA. The lanes now read B rows of their own stage again
(r % SW): three more instructions before the K loop, none in it.

_barrier waited for the DMA only (s_waitcnt vmcnt(N); s_barrier). The strip and the
split-K kernel (m 64, 128) both store per-wave fp32 partials to LDS scratch and read
them from other waves behind such a barrier, so a wave could pass it with its stores in
flight. It now also waits lgkmcnt(0), the wait #220, #277 and #336 added to the ring
barriers of other FlyDSL gemm kernels.

The kernel source changes, so the uuid moves (feac6650 -> bf74e6e2) and its measurements
go until CI measures it.

* fix(gemm): wait for the LDS scratch stores before the barrier their readers pass (n6288 / k7168)

gemm_n6288_k7168's skinny kernel (m <= 64) stores per-wave fp32 partials to LDS scratch
and sums them across waves behind a barrier that waited for the DMA only
(s_waitcnt vmcnt(0); s_barrier), so a wave could pass it with its stores in flight and
another could read the scratch before they landed. _barrier now also waits lgkmcnt(0),
as the 4-wave kernel's own barrier already does; the ring barriers of the skinny and
tiled kernels share the helper and get the same wait, where it is a guard.

The kernel source changes, so the uuid moves (f1dc78b3 -> 93d75fc2) and its measurements
go until CI measures it.

This branch was previously deployed

1 inactive deployment
gpu-trusted — 5a2c1fd0 Deployed Nov 17, 2026 by zhenhuang12 via prepare-gpu / prepare #1004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants