Repository navigation
[Triton/Gluon] Fix flash_kda test in gfx942 - #5594
brunomazzottiamd wants to merge 1 commit into
Conversation
…config Both tests assumed the running arch ships a tuned config table, which gfx942 does not, so they failed there while passing on gfx950. test_tuner_keeps_the_two_schedules_apart read the autotuner cache to prove the segment count separates the two schedules. Without a published shortlist K2 gets a single config, and Triton only builds a key and fills `cache` when it has more than one, so the cache stayed empty and the test read that as a collision. Assert the invariant it names -- that NUM_SEGS_CLASS is in the autotune key -- on every arch, and skip the cache check where there is nothing to tune. test_published_k2_schedules_can_split_their_tile called _k2_gluon_schedule directly, bypassing the arch gate. gfx942 ships no gluon configs, so both lookups return the fallback and every shape resolves to the same pair. Skip behind _gluon_k2_usable, as test_cases_reach_the_gluon_k2 already does. This also drops the ~120 missing-gluon-config warnings from the log, which were test-induced: production never reaches that function off gfx950. No production change. gfx942 still runs K2 on the BW=16 fallback for every shape; publishing a measured shortlist is left to a follow-up.
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
There was a problem hiding this comment.
🟢 Approval recommended
No unresolved review comments; changes safely guard unsupported test configurations.
Pull request overview
Fixes Flash KDA test behavior on gfx942 by skipping unsupported Gluon and autotuning scenarios.
Changes:
- Skip tuner validation when only one schedule is available.
- Skip Gluon K2 checks on unsupported architectures.
File summaries
| File | Summary |
|---|---|
op_tests/triton_tests/chunk_delta_attn/test_flash_kda.py |
Adds architecture- and configuration-aware test skips. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Deprecated in favor of #5590. |
Motivation
op_tests/triton_tests/chunk_delta_attn/test_flash_kda.pywas failing ingfx942:This PR fixes it.
Technical Details
Test Plan
Execute
op_tests/triton_tests/chunk_delta_attn/test_flash_kda.pyingfx942through AITER CI runners.Test Result
op_tests/triton_tests/chunk_delta_attn/test_flash_kda.pypassed ingfx942. ✅Submission Checklist