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

Basic docs for universal gemm & ck-tile gemm. #2014

Merged
merged 27 commits into from
Apr 2, 2025
Merged

Conversation

aosewski
Copy link
Collaborator

@aosewski aosewski commented Mar 25, 2025

Proposed changes

Please describe the motivation behind the pull request, whether it enables a new feature or fixes a bug. If there are associated pull requests or issues, please link them to the pull request.

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

@aosewski
Copy link
Collaborator Author

@spolifroni-amd Please feel free to polish those docs and make it render better if necessary :)

@aosewski
Copy link
Collaborator Author

@bartekxk @aska-0096 could you please review?

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.

There's a lot of issues that need to be addressed so it can be contextualized.

If you want a rewrite, I can open a PR for it.

aosewski and others added 12 commits March 26, 2025 09:41
@aosewski
Copy link
Collaborator Author

@spolifroni-amd Could you please re-review?

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.

Suggested a couple of rewrites.

/// pipelines optimized for memory-bound, latency and compute-bound cases.
///
/// @note This Kernel implementation supports SplitK algorithm - that is it may be configured
/// to split the work of K dimension dot product accumulation into multiple work groups.
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't correct "work group/workgroup". I assumed since it was corrected by another reviewer on the CK team that the term you used is "workgroup". It can be spelled either way as long as its consistent throughout. So you either use "work group" everywhere or "workgroup" everywhere.

In terms of the meaning, so this can be rewritten then as

"Split the dot product accumulated over the k dimension into multiple working groups"

(If "work group/workgroup" isn't a specialized term, using working groups can eliminate having to make a decision about whether work groups is one or two words)

@AviralGoelAMD AviralGoelAMD added the documentation Improvements or additions to documentation label Mar 27, 2025
@AviralGoelAMD
Copy link
Collaborator

Looks good!

@aosewski aosewski requested a review from spolifroni-amd March 28, 2025 09:55
@AviralGoelAMD
Copy link
Collaborator

(If "work group/workgroup" isn't a specialized term, using working groups can eliminate having to make a decision about whether work groups is one or two words) @spolifroni-amd

Just to chime in, the formal term is "workgroup" across academia and industry.
https://rocm.docs.amd.com/projects/rocprofiler-compute/en/latest/conceptual/definitions.html#desc-workgroup

@spolifroni-amd
Copy link
Contributor

(If "work group/workgroup" isn't a specialized term, using working groups can eliminate having to make a decision about whether work groups is one or two words) @spolifroni-amd

Just to chime in, the formal term is "workgroup" across academia and industry. https://rocm.docs.amd.com/projects/rocprofiler-compute/en/latest/conceptual/definitions.html#desc-workgroup

I've seen both but I'll add this to the ROCm style guide. Thanks!

@aosewski aosewski merged commit e5ad48a into develop Apr 2, 2025
34 of 39 checks passed
@aosewski aosewski deleted the aosewski/ck_tparam_doc branch April 2, 2025 09:03
ClementLinCF pushed a commit that referenced this pull request Apr 3, 2025
* Basic docs for universal gemm & ck-tile gemm.

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: Bartłomiej Kocot <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Update include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp

Co-authored-by: spolifroni-amd <[email protected]>

* Reviewers suggestions.

* Align tparam names in doc with class tparams.

* More reviewers fine tuning ;)

---------

Co-authored-by: Bartłomiej Kocot <[email protected]>
Co-authored-by: spolifroni-amd <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants