Skip to content

[AMD][gfx12] Support emit indices logic WMMAv2 layout#4518

Merged
antiagainst merged 2 commits intotriton-lang:mainfrom
joviliast:wmma2-linear-layout
Aug 27, 2024
Merged

[AMD][gfx12] Support emit indices logic WMMAv2 layout#4518
antiagainst merged 2 commits intotriton-lang:mainfrom
joviliast:wmma2-linear-layout

Conversation

@joviliast
Copy link
Copy Markdown
Contributor

  • Supported linear layout for the 2nd version of WMMA
  • Supported legacy emit indices related helper functions for now
  • Removed remaining assertions related to WMMAv2

}
};

LinearLayout tileLayout(initLinearLayout(wmma.getVersion()));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Using a functor to intialize seems an overkill to me.

{outDimNames[order[0]], outDimNames[order[1]]});
case 2:
return LinearLayout(
{{kRegister, {/*gap*/ {0, 1}, {0, 2}, {0, 4}}},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We have no gap here?

auto initLinearLayout = [&](int version) {
// For wmma with 16x16 output, each of the 32 threads holds 8 elements.
//
// For the register (i.e., element) dimension, these 8 elements are
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't we need to update this description for version 2?

@joviliast joviliast force-pushed the wmma2-linear-layout branch from a19fd48 to 6a52036 Compare August 27, 2024 11:03
@joviliast joviliast requested a review from antiagainst August 27, 2024 11:03
joviliast and others added 2 commits August 27, 2024 13:04
- Supported linear layout for the 2nd version of WMMA
- Supported legacy emit indices related helper functions
  for now
- Removed remaining assertions related to WMMAv2

Signed-off-by: Ilya Veselov <iveselov.nn@gmail.com>
@antiagainst antiagainst marked this pull request as ready for review August 27, 2024 19:21
@antiagainst antiagainst merged commit e88a7fe into triton-lang:main Aug 27, 2024
bertmaher pushed a commit to bertmaher/triton that referenced this pull request Dec 10, 2024
- Supported linear layout for the 2nd version of WMMA
- Supported legacy emit indices related helper functions for now
- Removed remaining assertions related to WMMAv2

Signed-off-by: Ilya Veselov <iveselov.nn@gmail.com>
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