Skip to content

[Hopper][WS] Add TaskIdPropagate pass #7038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 4, 2025

Conversation

ardaunal
Copy link
Contributor

@ardaunal ardaunal commented Jun 3, 2025

This change adds a pass to propagate async_task_ids from anchor ops using a sparse backward dataflow analysis.

@ardaunal ardaunal requested a review from ptillet as a code owner June 3, 2025 18:55
@@ -0,0 +1,99 @@
#ifndef TRITON_ANALYSIS_TASKIDPROPAGATION_H
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep this in WarpSpecialization folder?

@ardaunal ardaunal requested a review from ThomasRaoux June 3, 2025 21:51
@ardaunal ardaunal changed the title [WIP][Hopper][WS] Add TaskIdPropagate pass [Hopper][WS] Add TaskIdPropagate pass Jun 3, 2025
@@ -0,0 +1,99 @@
#ifndef NVHOPPER_ANALYSIS_TASKIDPROPAGATION_H
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for nitpicking more but if this is only meant to be used in Transforms/WarpSpecialization the header doesn't need to be public (doesn't need to be include folder). I would move everything into Transforms/WarpSpecialization to keep it clear that this code is not meant to be used outside the WS mega-pass

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem but I am getting concerned that directory structure will get messier when we add more under WarpSpecialization. I was actually considering to separate Utility header as well as a part of a future clean-up.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be nice to keep warp things related to warp specialization together, things can still be separated into multiple files but if there is no plan to use it outside of warp specialization it is better to keep it in the isolated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

[Hopper][WS] Add TaskIdPropagate pass
@ardaunal ardaunal requested a review from ThomasRaoux June 3, 2025 22:52
@htyu htyu enabled auto-merge (squash) June 4, 2025 00:16
@htyu
Copy link
Collaborator

htyu commented Jun 4, 2025

Is the GB200 test broken in tot? The test failure doesn't seem to be related to this PR.

@htyu htyu merged commit ffc614d into triton-lang:main Jun 4, 2025
7 of 8 checks passed
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