-
Notifications
You must be signed in to change notification settings - Fork 170
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
Conversation
@spolifroni-amd Please feel free to polish those docs and make it render better if necessary :) |
@bartekxk @aska-0096 could you please review? |
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/grid/gridwise_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…e_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: Bartłomiej Kocot <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
…huffle_v3.hpp Co-authored-by: spolifroni-amd <[email protected]>
@spolifroni-amd Could you please re-review? |
There was a problem hiding this 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.
include/ck/tensor_operation/gpu/device/impl/device_gemm_xdl_cshuffle_v3.hpp
Outdated
Show resolved
Hide resolved
/// 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. |
There was a problem hiding this comment.
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)
Looks good! |
Just to chime in, the formal term is "workgroup" across academia and industry. |
I've seen both but I'll add this to the ROCm style guide. Thanks! |
* 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]>
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.clang-format
on all changed filesDiscussion
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