Skip to content

[Test] Pass split_k to get_split_k_buffers in test_graph_alloc - #7039

Closed
eppaneamd wants to merge 1 commit into
mainfrom
eppaneamd/test-graph-alloc-split-k
Closed

eppaneamd wants to merge 1 commit into
mainfrom
eppaneamd/test-graph-alloc-split-k

Conversation

@eppaneamd

Copy link
Copy Markdown
Contributor

Motivation

#6494 added a split_k argument to get_split_k_buffers in aiter/ops/flydsl/kernels/gemm_a16w16_gfx950.py. op_tests/test_graph_alloc.py still calls it with two arguments, so test_every_cached_scratch_comes_from_the_private_pool fails before it checks anything:

TypeError: get_split_k_buffers() missing 1 required positional argument: 'split_k'

Changes

op_tests/test_graph_alloc.py: pass split_k=1. The test only checks which memory pool the cached buffers come from, which does not depend on split_k.

Tests

MI355X (gfx950), image lmsysorg/sglang-rocm:v0.5.22-rocm724-mi35x-20261021 (AITER 285579b6). In that commit, op_tests/test_graph_alloc.py and get_split_k_buffers's signature are the same as on main. Two fresh containers per arm:

pytest op_tests/test_graph_alloc.py
  • Without the change: 1 failed, 2 passed in both containers (the TypeError above).
  • With the change: 3 passed in both.

These runs were made for #7021, now closed in favour of #6712. That PR also moved the bodies of get_split_k_buffers into a helper, keeping the same allocations under persistent_alloc, so the "with" arm included that refactor besides this line.

This change was developed with AI assistance (Claude); I reviewed it and ran the tests listed.

#6494 added a split_k argument to get_split_k_buffers; the test still
called it with two arguments and failed with TypeError.
@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs (added automatically when gfx942 configs change); main branch always runs both MI35X and MI300X
ci:triton-355 Run the full Triton test suite on MI35X, not only the tests the change affects
ci:windows Windows JIT op smoke test on the gfx1201 ROCm runner
ci:multi-gpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: DeepSeek-V4-Pro, MiniMax-M3-MXFP4
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 7039 --add-label <label>

One backend per PR:
A PR changes one kernel backend: [Triton/Gluon] (Triton and Gluon count as one), [HIP], [ASM], [CK], [OPUS] or [FlyDSL]. If the title ends up with two backend tags, split the PR -- as stacked pull requests when one part cannot merge without the other.

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to stop the title rewrites; labels stay in sync either way.

Fangzhou-Ai added a commit that referenced this pull request Oct 29, 2026
… workspace, CI

- capture_scoped_cache now asks HIP about the stream the builder's fill runs
  on (its stream argument, else the current stream of its device argument),
  not the ambient current device: a builder for cuda:1 called while cuda:0 is
  current and cuda:1 is capturing was treated as eager.
- Split the preshuffle split-K buffers: the fully overwritten 16 MiB
  workspace stays one per (device, stream) and is never evicted; only the
  zero-initialized semaphore is capture-scoped.
- The split-K repro checks with checkAllclose at test_flydsl_hgemm's bf16
  split-K tolerances; add a two-GPU test for the target-device case.
- Run op_tests/test_graph_alloc.py through pytest in aiter_test.sh (it has
  no __main__), and pass split_k in the private-pool test (same fix as #7039).

Signed-off-by: Fangzhou Ai <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@eppaneamd
eppaneamd marked this pull request as ready for review October 30, 2026 13:09
@eppaneamd
eppaneamd requested review from a team and a balanced review from Copilot October 30, 2026 13:09
@aiter-bot

Copy link
Copy Markdown

NOT READY FOR HUMAN REVIEW

PR Self-Review

Revision 83754207bfdd · mode shadow

Waiting for the PR author. The readiness report will appear after the self-review answers are complete for this revision.

Questions to answer in the PR description

  1. What behavior does this PR change, and why is the existing behavior insufficient?
  2. What did you validate, and what remains unverified? Include commands, hardware/configuration and results.
  3. What behavior would each changed op test fail on before this PR, and why is that coverage not already provided by an existing canonical test?
  4. For every changed op_tests/ file, what behavior does it cover and why is it not redundant? Write None if no op test changed.

Edit the PR Self-Review section in the PR description. Include the current revision SHA; this comment refreshes automatically.

Missing or invalid answers

  • FAIL — missing ### Reviewed revision in the PR description
  • FAIL — missing ### Behavior and intent in the PR description
  • FAIL — missing ### Validation and unverified scope in the PR description
  • FAIL — missing ### PR-specific question in the PR description
  • FAIL — missing ### Changed op tests in the PR description
  • FAIL — Reviewed revision must contain at least the first 7 characters of the current head SHA
  • FAIL — Behavior and intent has no substantive answer
  • FAIL — Validation and unverified scope has no substantive answer
  • FAIL — PR-specific question has no substantive answer
  • FAIL — changed op test not explained in Changed op tests: op_tests/test_graph_alloc.py
  • FAIL — Changed op tests must explain why each changed op test is necessary and non-redundant

Shadow mode reports what would block but keeps the status successful. Set AITER_PR_SELF_REVIEW_MODE=enforce only after reviewing real false positives.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the regression-test change adding the required split_k argument.

No open issues 🎉

What changed in this PR

Fixes the graph-allocation regression test to match the get_split_k_buffers signature introduced in #6494, allowing its memory-pool checks to run.

Changes:

  • Passes 1 as the required split_k argument.
  • Leaves the existing assertions and runtime code unchanged.
File Description
op_tests/​test_graph_alloc.py Supplies the missing split_k argument to the gfx950 buffer allocator.

Review effort: Balanced

@eppaneamd

Copy link
Copy Markdown
Contributor Author

Superseded by #7126, which made the same change to op_tests/test_graph_alloc.py (get_split_k_buffers(s, dev, 1), merged 2026-11-05). Closing.

@eppaneamd eppaneamd closed this Nov 9, 2026
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.

4 participants