Skip to content

[CI][Triton/Gluon] Fix pa_prefill default device leak - #6406

Merged
gyohuangxin merged 1 commit into
ROCm:mainfrom
gyohuangxin:codex/fix-pa-prefill-default-device
Oct 12, 2026
Merged

gyohuangxin merged 1 commit into
ROCm:mainfrom
gyohuangxin:codex/fix-pa-prefill-default-device

Conversation

@gyohuangxin

Copy link
Copy Markdown
Member

Summary:

  • Restore the torch default device after each pa_prefill test.
  • Restore the previous CUDA current device as part of the same test cleanup.
  • Prevent test_pa_prefill.py from leaking cuda:0 as the default device into later pytest files in the same shard.

Validation:

  • git diff --check
  • python3 -c "import py_compile; py_compile.compile('op_tests/triton_tests/attention/test_pa_prefill.py', cfile='/tmp/test_pa_prefill.pyc', doraise=True)"

@gyohuangxin
gyohuangxin requested review from a team and a balanced review from Copilot October 12, 2026 02:36

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@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: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 6406 --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.

@github-actions github-actions Bot changed the title Fix pa_prefill default device leak [Triton/Gluon] Fix pa_prefill default device leak Oct 12, 2026
@gyohuangxin gyohuangxin changed the title [Triton/Gluon] Fix pa_prefill default device leak [CI][Triton/Gluon] Fix pa_prefill default device leak Oct 12, 2026
@gyohuangxin
gyohuangxin merged commit 2adb661 into ROCm:main Oct 12, 2026
yuychang added a commit to yuychang/aiter that referenced this pull request Oct 12, 2026
- Take main's versions of test_pa_prefill.py and test_fused_qk_norm_rope_gate_fp8_quant.py.
- Main fixed the same default-device leak in ROCm#6406 and ROCm#6288, so this branch's test-only fix is no longer needed.
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