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

[AMDGPU] Add RDNA4 targets and WMMA #20048

Merged
merged 5 commits into from
Feb 24, 2025
Merged

[AMDGPU] Add RDNA4 targets and WMMA #20048

merged 5 commits into from
Feb 24, 2025

Conversation

krzysz00
Copy link
Contributor

@krzysz00 krzysz00 commented Feb 20, 2025

This PR adds definitions for the new WMMAs in RDNA 4, adds a target definition, and updates tetsts.

The WMMA instructions have changed semantics (half as many inputs per lane, no more weird broadcast thing and a different output) from RDNA3 so we now have WMMAR3 and WMMAR4 variants (the R4 are 0x19** in the enum). Some tests are duplicated, some aren't yet. This is an initial PR to enable RDNA4 bringup.

@krzysz00 krzysz00 marked this pull request as ready for review February 24, 2025 16:27
@krzysz00 krzysz00 changed the title [AMDGPU] Add RDNA4 targets [AMDGPU] Add RDNA4 targets and WMMA Feb 24, 2025
@krzysz00 krzysz00 requested review from kuhar and bjacob February 24, 2025 17:10
Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

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

LGTM

Add gfx1200 and gfx1201 as supported targets, copying RDNA3 for now.

This target definition isn't correct - the WMMA definitions have
changed - but it at least works as a first commit.
@krzysz00 krzysz00 force-pushed the users/krzysz00/gfx12 branch from 15e8e42 to 9edecf1 Compare February 24, 2025 19:42
@krzysz00 krzysz00 merged commit 2843f77 into main Feb 24, 2025
44 of 46 checks passed
@krzysz00 krzysz00 deleted the users/krzysz00/gfx12 branch February 24, 2025 21:43
@bjacob
Copy link
Contributor

bjacob commented Feb 24, 2025

A poower of two.

@krzysz00
Copy link
Contributor Author

@bjacob I'm not seeing the typo in my PR?

@bjacob
Copy link
Contributor

bjacob commented Feb 24, 2025

Sorry, I was looking at the PR number.

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.

3 participants