Skip to content

DeviceGemm_Wmma_CShuffleV3 with BlockGemmPipelineVersion::v3 #2096

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

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

ex-rzr
Copy link

@ex-rzr ex-rzr commented Apr 17, 2025

Proposed changes

DeviceGemm_Wmma_CShuffleV3 (DeviceGemmV2)

  • Both RDNA3 (gfx11) and RDNA4 (gfx12) are supported, but without any RDNA4 specific optimizations.
  • Only BlockwiseGemmWmmaops_pipeline_v3 (BlockGemmPipelineVersion::v3) is implemented, other pipelines will be added in next PRs.
  • HotLoopScheduler is commented as it may require changes for correct __builtin_amdgcn_sched_group_barriers due to differences between mfma and wmma (layouts etc.);
  • Instances for F16, BF16, F8 are added with the following restrictions:
    • BlockGemmPipelineVersion::v3 is used everywhere for testing different configs, after adding other pipelines some instances (e.g. latency friendly) will use them;
    • Only GemmSpecialization::Default is instantiated, mainly for faster building during development, specializations with padding work and will be added later.

Checklist

Please put an x into the boxes that apply. You can also fill these out after creating the PR. If you're not sure, please don't hesitate to ask.

  • I have added tests relevant to the introduced functionality, and the unit tests are passing locally
  • I have added the test to REGRESSION_TESTS list defined at the top of CMakeLists.txt in tests/CMakeLists.txt, IF the test takes more than 30 seconds to run.
  • I have added inline documentation which enables the maintainers with understanding the motivation
  • I have removed the stale documentation which is no longer relevant after this pull request
  • (If this change is user-facing) I have added release notes which provide the end users with a brief summary of the improvement from this pull request
  • I have run clang-format on all changed files
  • Any dependent changes have been merged

Discussion

If this is a relatively large or complex change, feel free to start a discussion by explaining why you chose the solution you did and what alternatives you considered

@ex-rzr ex-rzr force-pushed the agorenko/devicegemm_wmma_cshufflev3 branch from 4da42af to ed515b7 Compare April 17, 2025 13:37
@ex-rzr ex-rzr changed the title DeviceGemm_Wmma_CShuffleV3 DeviceGemm_Wmma_CShuffleV3 with BlockGemmPipelineVersion::v3 Apr 22, 2025
@ex-rzr ex-rzr marked this pull request as ready for review April 22, 2025 06:14
@ex-rzr ex-rzr requested review from ThomasNing, a team and tenpercent as code owners April 22, 2025 06:14
Copy link
Contributor

@spolifroni-amd spolifroni-amd left a comment

Choose a reason for hiding this comment

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

Looks like there's nothing to review for docs. If anything in this PR needs to be communicated to the user, make sure to add it to the changelog.

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