Repository navigation
[Triton/Gluon] chunk_kda gfx1250: use shared_memory_descriptor.reinterpret - #6250
Conversation
…rpret Triton main renamed shared_memory_descriptor._reinterpret to reinterpret (triton-lang/triton#11131), so the gfx1250 chunk_kda prepare and walk kernels no longer compile on Triton main: 'shared_memory_descriptor' object has no attribute '_reinterpret' Call reinterpret, and give older Tritons that only have _reinterpret (e.g. the ROCm 3.8 wheel) the new name in _gluon_kernels/common/utils.py.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
There was a problem hiding this comment.
🟢 Approval recommended
The focused compatibility update matches Triton’s upstream API rename and preserves support for the older wheel.
0 open findings
What changed in this PR
Updates gfx1250 chunk KDA kernels for Triton’s renamed Gluon shared-memory descriptor API while retaining compatibility with older Triton wheels.
Changes:
- Replaces
_reinterpretcalls withreinterpret. - Adds a compatibility alias for older Triton versions.
| File | Description |
|---|---|
aiter/ops/triton/_gluon_kernels/gfx1250/attention/chunk_kda/walk.py |
Uses the public reinterpret API. |
aiter/ops/triton/_gluon_kernels/gfx1250/attention/chunk_kda/prepare.py |
Uses the public reinterpret API. |
aiter/ops/triton/_gluon_kernels/common/utils.py |
Provides the API alias on older Triton versions. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Problem
Triton main renamed
shared_memory_descriptor._reinterprettoreinterpretin triton-lang/triton#11131 (2026-07-31). The gfx1250 chunk_kda kernels still call_reinterpret, sochunk_kda_prepare_kernelandchunk_kda_walk_kernelfail to compile on Triton main:They are the only two
_reinterpretcallers in AITER.Fix
prepare.py,walk.py: callreinterpret._gluon_kernels/common/utils.py, which both kernels already import: on a Triton that only has_reinterpret(e.g. the ROCm 3.8 wheel), aliasreinterpretto it, so older Tritons keep working.Testing
On gfx1250,
bench_chunk_kdacompiles and runs both kernels with Triton main (17201243) and with the ROCm 3.8 Triton wheel.