Skip to content

Update triton and triton_shared to latest upstream#36

Merged
erwei-xilinx merged 1 commit into
mainfrom
update-triton-shared-to-origin-main
Apr 7, 2026
Merged

Update triton and triton_shared to latest upstream#36
erwei-xilinx merged 1 commit into
mainfrom
update-triton-shared-to-origin-main

Conversation

@erwei-xilinx

@erwei-xilinx erwei-xilinx commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Update triton_shared submodule from aff7421 to 1850a7b (origin/main, 4 commits)
  • Update triton submodule from 32b7b208d48d to 787955000d61 (148 commits)
  • Rebase triton_shared.patch onto new base (driver.py hunk unchanged, triton-hash.txt updated)
  • Remove deleted add_rewrite_tensor_pointer pass from compiler.py (removed in new triton)
  • triton.patch applies cleanly without changes

Upstream changes picked up

  • tptrmlir::ptr dialect refactoring in triton_shared
  • Triton version bump with new LLVM (7f77ca0d)
  • New pybind interface for triton-shared-opt (triton_shared, optional migration)

Test plan

  • Build succeeds (pip install . --no-build-isolation)
  • 17/18 examples pass on Strix (AIE2P) with --device aie2p
  • 1 skip: autotune-matmul (no transform_aie2p.mlir)
  • Only failure: matvec (pre-existing, unrelated to this change)
  • CI build verification

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 7, 2026 01:08
Update triton_shared from aff7421 to 1850a7b (origin/main) and triton
from 32b7b208d48d to 787955000d61, picking up the tptr-to-mlir::ptr
refactoring and triton version bump in triton_shared.

- Rebase triton_shared.patch onto new triton_shared base
- Remove deleted pass `add_rewrite_tensor_pointer` from compiler.py
  (removed in new triton; `add_rewrite_tensor_descriptor_to_pointer`
  remains and is already used)
- triton.patch applies cleanly without changes

Tested on Strix (AIE2P): 17/18 examples pass, 1 skip (autotune-matmul).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

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.

Pull request overview

Updates the embedded Triton and Triton Shared upstream snapshots and adjusts the local integration patches/pipeline to stay compatible with the new upstream state.

Changes:

  • Rebased third_party/triton_shared.patch on the updated triton_shared submodule (including updating the triton-hash.txt hunk in the patch).
  • Updated the NPU TTIR pipeline to remove add_rewrite_tensor_pointer, which no longer exists upstream.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
third_party/triton_shared.patch Rebases the local patch content to apply cleanly on the newer triton_shared snapshot and aligns the triton-hash.txt patch hunk accordingly.
amd_triton_npu/backend/compiler.py Removes a now-deleted Triton TTIR pass from the NPU compilation pipeline to keep compatibility with the newer Triton version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@erwei-xilinx erwei-xilinx merged commit 50be18b into main Apr 7, 2026
12 of 13 checks passed
@erwei-xilinx erwei-xilinx deleted the update-triton-shared-to-origin-main branch April 7, 2026 05:43
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.

2 participants