Skip to content

Conversation

@whitneywhtsang
Copy link
Contributor

This PR change the Triton base from 76ed94d to a19f324 (Oct 20).
Pass rate: 98.99%

Please do not squash and merge this PR.

vguerra and others added 5 commits October 20, 2024 12:07
…4954)

The core Triton is a small number of people, and we receive many PRs
(thank
you!).  To help us review your code more quickly, **if you are a new
contributor (less than 3 PRs merged) we ask that you complete the
following
tasks and include the filled-out checklist in your PR description.**

Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them.

- [ ] I am not making a trivial change, such as fixing a typo in a
comment.

- [ ] I have written a PR description following these
  [rules](https://cbea.ms/git-commit/#why-not-how).

- [x] I have run `pre-commit run --from-ref origin/main --to-ref HEAD`.

- Select one of the following.
  - [ ] I have added tests.
    - `/test` for `lit` tests
    - `/unittest` for C++ tests
    - `/python/test` for end-to-end tests
- [ x] This PR does not need a test because `it is a non functional
change that simply removes duplicated call to a cmake function`.

- Select one of the following.
  - [x] I have not added any `lit` tests.
- [ ] The `lit` tests I have added follow these [best
practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices),
including the "tests should be minimal" section. (Usually running Python
code
    and using the instructions it generates is not minimal.)
Add `SameOperandsShape` to `tt.reduce` to verify all operands have the
same shape.

This matches `triton.language.reduce` (and similar) semantics.

This change may enable further optimizations and even may help simplify
the code dealing with this operation. Followup PRs will tackle this.

The core Triton is a small number of people, and we receive many PRs
(thank
you!).  To help us review your code more quickly, **if you are a new
contributor (less than 3 PRs merged) we ask that you complete the
following
tasks and include the filled-out checklist in your PR description.**

Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them.

- [X] I am not making a trivial change, such as fixing a typo in a
comment.

- [X] I have written a PR description following these
  [rules](https://cbea.ms/git-commit/#why-not-how).

- [X] I have run `pre-commit run --from-ref origin/main --to-ref HEAD`.

- Select one of the following.
  - [X] I have added tests.
    - `/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.
- [X] The `lit` tests I have added follow these [best
practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices),
including the "tests should be minimal" section. (Usually running Python
code
    and using the instructions it generates is not minimal.)

Signed-off-by: victor-eds <[email protected]>
fix MSVC compilation support `__builtin_ctz`, `__builtin_ctzll` 
based on https://gist.github.com/pps83/3210a2f980fd02bb2ba2e5a1fc4a2ef0
Not only does this have issues with iterator invalidation, it also runs
out of bounds if the last element is erased. We should just use the
functions for doing this rather than worrying about how to implement it
correctly ourselves.

The core Triton is a small number of people, and we receive many PRs
(thank
you!).  To help us review your code more quickly, **if you are a new
contributor (less than 3 PRs merged) we ask that you complete the
following
tasks and include the filled-out checklist in your PR description.**

Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them.

- [X] I am not making a trivial change, such as fixing a typo in a
comment.

- [X] I have written a PR description following these
  [rules](https://cbea.ms/git-commit/#why-not-how).

- [X] I have run `pre-commit run --from-ref origin/main --to-ref HEAD`.

- Select one of the following.
  - [ ] I have added tests.
    - `/test` for `lit` tests
    - `/unittest` for C++ tests
    - `/python/test` for end-to-end tests
- [ ] This PR does not need a test because `I don't actually know how to
exercise this code`.

- Select one of the following.
  - [X] I have not added any `lit` tests.
- [ ] The `lit` tests I have added follow these [best
practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices),
including the "tests should be minimal" section. (Usually running Python
code
    and using the instructions it generates is not minimal.)
@whitneywhtsang whitneywhtsang self-assigned this Oct 23, 2024
@whitneywhtsang whitneywhtsang marked this pull request as ready for review October 23, 2024 23:51
@whitneywhtsang whitneywhtsang merged commit a86e5a0 into main Oct 23, 2024
4 checks passed
@whitneywhtsang whitneywhtsang deleted the whitneywhtsang/merge2 branch October 23, 2024 23:52
@whitneywhtsang whitneywhtsang restored the whitneywhtsang/merge2 branch October 24, 2024 01:29
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.

7 participants