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

Merge OpenAI Triton commit 755d416 #3058

Merged
merged 5 commits into from
Dec 21, 2024
Merged

Conversation

whitneywhtsang
Copy link
Contributor

@whitneywhtsang whitneywhtsang commented Dec 21, 2024

This PR change the Triton base from 82e7a32 to 755d416 (Dec 20).
Pass rate: 98.79%

Please do not squash and merge this PR.

Mogball and others added 4 commits December 20, 2024 10:35
Pipelining loops containing `gpu.barrier` may not always be possible
because pipeliner reorders the operations in the loop. It is would be
possible to analyze if schedule allows for pipelining that would
preserve the order between ops issued before the barrier and ones issued
after the barrier, however for now we will simply skip such cases.
…#5476)

LinearEncodingAttr's interpretation of `elemsPerThread` appears to be
different from that of the TypeConverter. For
`register=[[0,0],[0,0],[0,0],[0,0]]` for example, LinearEncodingAttr
thinks there is 1 element per thread, but the lowering thinks there are
16 (and some for `tt.reshape`).

This fixes that by not skipping broadcasted bases when calling
`::getElemsPerThread` for registers.
ReduceOp's lowering does not support linear layouts yet, so propagation
of linear layouts across `tt.reduce` ops will cause codegen to crash.
The codegen routine is generic enough to support linear layouts, so just
enable it and add a few tests.
@whitneywhtsang whitneywhtsang self-assigned this Dec 21, 2024
@whitneywhtsang whitneywhtsang marked this pull request as ready for review December 21, 2024 01:35
@whitneywhtsang whitneywhtsang merged commit 7d03355 into main Dec 21, 2024
5 checks passed
@whitneywhtsang whitneywhtsang deleted the whitneywhtsang/merge branch December 21, 2024 18:25
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.

4 participants