Skip to content

cherry pick #2701, #2736, #2756, #3191#3380

Closed
shunting314 wants to merge 5 commits intotriton-lang:release/2.2.xfrom
shunting314:release/2.2.x
Closed

cherry pick #2701, #2736, #2756, #3191#3380
shunting314 wants to merge 5 commits intotriton-lang:release/2.2.xfrom
shunting314:release/2.2.x

Conversation

@shunting314
Copy link
Copy Markdown
Contributor

@shunting314 shunting314 commented Mar 14, 2024

Cherry pick a few PRs to make PyTorch 2.3 work with Triton 2.2.x . Also this makes sure some python bindings needed by user defined triton kernel exists in the triton branch.

ptillet and others added 3 commits March 14, 2024 16:03
remove unused symbols and move driver functions to appropriate namespace
Summary: in triton.cc, enable_debug on PM will make sure debugging info
is dumped when MLIR_ENABLE_DUMP is on. But for printing .ttir .ttgir, we
are using the default OpPrintingFlags for Operation::print: const
OpPrintingFlags &flags = std::nullopt

With this patch, we pass in OpPrintingFlags with debug info enabled.

Since the generation of debug info is controlled via env var:
TRITON_DISABLE_LINE_INFO, it should be okay to print loc info as long as
it exists.

Co-authored-by: Manman Ren <mren@meta.com>
@shunting314 shunting314 requested a review from ptillet as a code owner March 14, 2024 23:05
This commit cherry-pick PR triton-lang#3191 .
It involves quite some manual work and is not a direct cherry pick.

The reason is the original PR change ir.cc which was renamed from
triton.cc by another PR triton-lang#2817 .
Cherry pick PR triton-lang#2817 unfortunately cause a bunch of merge conflicts:
https://gist.github.com/shunting314/bb84de294fa56d3f9e2b27fbf50f5f3b .

With discussion with Oguz and Jason, we decide to do a manual
cherry-pcik by applying the change to triton.cc directly.

We are aware the ir module is under  triton._C.libtriton.triton.ir
while in latest version of triton it's under triton._C.libtriton.ir .
@shunting314 shunting314 changed the title cherry pick #2701, #2736, #2756 cherry pick #2701, #2736, #2756, #3191 Mar 18, 2024
@shunting314
Copy link
Copy Markdown
Contributor Author

This PR would overwrite 2.2.x branch. Closing it and use the new PR #3418 that update the 2.3.x branch.

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.

3 participants