Skip to content

Conversation

@leonling-ll
Copy link
Contributor

@leonling-ll leonling-ll commented Dec 6, 2024

This PR adds initial codegen support for the new upcast_mxfp operation. Currently the codegen works when the source operand has blocked layout. This is a temporary limitation (we will want to support dot layout for that operand).

Also, there is a failing test in test_core.py which, in this PR, is skipped. We will address that problem in a separate PR.

@etiotto etiotto linked an issue Dec 6, 2024 that may be closed by this pull request
@etiotto etiotto marked this pull request as ready for review December 6, 2024 19:58
@etiotto etiotto changed the title [WIP] Support for tritongpu.upcast_mxfp lowering and enable tl.dot_scaled unit tests Initial support for tritongpu.upcast_mxfp lowering Dec 6, 2024
/// Given a 'DotOp' or 'ScaledDot' operation, return its DPAS engine type.
static DPASEngineType getDPASType(Operation *op);

// clang-format off
Copy link
Contributor

Choose a reason for hiding this comment

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

why need to turn off clang-format?

Copy link
Contributor

Choose a reason for hiding this comment

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

because it formats the template horribly

@whitneywhtsang whitneywhtsang merged commit c878427 into main Dec 7, 2024
5 checks passed
@whitneywhtsang whitneywhtsang deleted the liyang/upcast_mxfp_and_dot_scaled branch December 7, 2024 01:52
anmyachev pushed a commit that referenced this pull request Dec 7, 2024
This PR adds initial codegen support for the new upcast_mxfp operation.
Currently the codegen works when the source operand has blocked layout.
This is a temporary limitation (we will want to support dot layout for
that operand).

Also, there is a failing test in test_core.py which, in this PR, is
skipped. We will address that problem in a separate PR.

---------

Co-authored-by: Tiotto, Ettore <[email protected]>
@leonling-ll leonling-ll self-assigned this Dec 12, 2024
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.

Implement support for TritonGPU::UpcastMXFPOp for Intel XPU BE

4 participants