Skip to content
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

[Pipeliner] Handle masking for atomic_rmw #5231

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

scxiao
Copy link
Contributor

@scxiao scxiao commented Nov 22, 2024

This PR is to support atomic_rmw in the function predicateOp to mask operations during scheduling.

New contributor declaration

  • I am not making a trivial change, such as fixing a typo in a comment.

  • I have written a PR description following these
    rules.

  • I have run pre-commit run --from-ref origin/main --to-ref HEAD.

  • Select one of the following.

    • I have added tests (lit test).
      • /test for lit tests
      • /unittest for C++ tests
      • /python/test for end-to-end tests
    • This PR does not need a test because FILL THIS IN.
  • Select one of the following.

    • I have not added any lit tests.
    • The lit tests I have added follow these best practices,
      including the "tests should be minimal" section. (Usually running Python code
      and using the instructions it generates is not minimal.)


// Check that the stream pipeliner updates atomic op in the k-loop correctly
// CHECK-LABEL: _triton_gemm_kernel_atomic_rmw
// CHECK: tt.atomic_rmw fadd, acq_rel, gpu
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you also insert CHECK: lines for the loop structure scf.for and scf.yield to be clear? Like L36 - L42.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the comments, added.

@antiagainst antiagainst changed the title Atomic rmw mask [Pipeliner] Handle masking for atomic_rmw Nov 23, 2024
@antiagainst antiagainst marked this pull request as ready for review November 25, 2024 21:58
@scxiao
Copy link
Contributor Author

scxiao commented Nov 27, 2024

@zhanglx13, could you please help trigger a CI build and then merge this PR? Thanks

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