Skip to content

[Triton/Gluon] chunk_kda gfx1250: use shared_memory_descriptor.reinterpret - #6250

Merged
azaidy merged 1 commit into
mainfrom
fix/gluon-chunk-kda-reinterpret
Oct 13, 2026
Merged

azaidy merged 1 commit into
mainfrom
fix/gluon-chunk-kda-reinterpret

Conversation

@zhanglx13

Copy link
Copy Markdown
Contributor

Problem

Triton main renamed shared_memory_descriptor._reinterpret to reinterpret in triton-lang/triton#11131 (2026-07-31). The gfx1250 chunk_kda kernels still call _reinterpret, so chunk_kda_prepare_kernel and chunk_kda_walk_kernel fail to compile on Triton main:

AttributeError: 'shared_memory_descriptor' object has no attribute '_reinterpret'

They are the only two _reinterpret callers in AITER.

Fix

  • prepare.py, walk.py: call reinterpret.
  • _gluon_kernels/common/utils.py, which both kernels already import: on a Triton that only has _reinterpret (e.g. the ROCm 3.8 wheel), alias reinterpret to it, so older Tritons keep working.

Testing

On gfx1250, bench_chunk_kda compiles and runs both kernels with Triton main (17201243) and with the ROCm 3.8 Triton wheel.

…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.
@zhanglx13
zhanglx13 requested review from a team and a balanced review from Copilot October 8, 2026 07:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Oct 8, 2026

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: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: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
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 6250 --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.

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

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 _reinterpret calls with reinterpret.
  • 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.

@zufayu
zufayu requested review from a team and azaidy October 9, 2026 01:56
@azaidy
azaidy requested a review from nsusanto October 9, 2026 19:42

@azaidy azaidy 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.

LGTM!

@azaidy
azaidy merged commit 89738b1 into main Oct 13, 2026
@azaidy
azaidy deleted the fix/gluon-chunk-kda-reinterpret branch October 13, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants