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

MMA-izing the prolongator and restrictor kernels #1497

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

Conversation

hummingtree
Copy link
Member

@hummingtree hummingtree commented Sep 27, 2024

As the name suggests, this PR adds initial support for MMA-izing the prolongator and restrictor kernels. In addition,

  • Initial supports are also added to use tensor memory accelerator (TMA) for the memory movement on the Hopper and Blackwell GPUs;
  • Some general shard memory load/store patterns are optimized.

Remaining to-dos:

  • Add a command line interface for toggling MMA-ized prolongator and restrictor kernels.
  • Make the prolongator and restrictor working for staggered (the spin/parity handling is different).
  • A comprehensive testing of the MG/MMA workflows.
  • Add doxygen.
  • Clang-format

coarse_dslash_tma

transfer_mma

hummingtree and others added 28 commits August 27, 2024 12:20
- Still need to add the spin factor of 2;
- Still need to cover the to_non_rel = true;
… the process add an additional template to `kernel_param`.
…underlying code such that FP16 works with rescaling.
@hummingtree hummingtree requested review from a team as code owners September 27, 2024 13:57
lib/prolongator.in.cpp Outdated Show resolved Hide resolved
include/expand_list.hpp Outdated Show resolved Hide resolved

while (i < arg.threads.x) {
if constexpr (Arg::check_bounds) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this go into, for ex, the hip target for completeness/consistency even if it's unused for now?

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