[CK] add inter/intrawave scheduling concept doc (#4300)

## Proposed changes

Adding information about inter/intrawave scheduling

---
🔁 Imported from
[ROCm/composable_kernel#3660](https://github.com/ROCm/composable_kernel/pull/3660)
🧑‍💻 Originally authored by @spolifroni-amd

---------

Co-authored-by: spolifroni-amd <sandra.polifroni@amd.com>
Co-authored-by: assistant-librarian[bot] <assistant-librarian[bot]@users.noreply.github.com>
Co-authored-by: Illia Silin <98187287+illsilin@users.noreply.github.com>
Co-authored-by: illsilin_amdeng <Illia.Silin@amd.com>
This commit is contained in:
assistant-librarian[bot]
2026-02-06 16:10:23 -08:00
committed by GitHub
parent f18a97a1f2
commit 0b4203702c
4 changed files with 31 additions and 2 deletions

4
Jenkinsfile vendored
View File

@@ -272,10 +272,10 @@ def shouldRunCICheck() {
script: '''
if [ "$CHANGE_ID" != "" ]; then
# For PR builds, compare against target branch
git diff --name-only origin/$CHANGE_TARGET...HEAD --projects/composablekernel/
git diff --name-only origin/$CHANGE_TARGET...HEAD -- projects/composablekernel/
else
# For regular builds, compare against previous commit
git diff --name-only HEAD~1..HEAD --projects/composablekernel/
git diff --name-only HEAD~1..HEAD -- projects/composablekernel/
fi
'''
).trim().split('\n')

View File

@@ -0,0 +1,26 @@
.. meta::
:description: Intrawave and interwave scheduling with CK Tile
:keywords: composable kernel, CK, CK Tile, ROCm, API, scheduling, intrawave, interwave
************************************************************
Intrawave and interwave scheduling with CK Tile
************************************************************
Two different scheduling pipelines are available to use with CK Tile's GEMM implementation.
The interwave and intrawave scheduling pipelines coordinate waves in K dimension accumulation loops. Whether to use the interwave or intrawave pipeline depends on whether the workload is memory-bound or compute-bound.
In interwave scheduling, the K dimension is separated into chunks. The same chunk is loaded into each wave. When the chunk has been loaded into all the waves, the same operation is run on the chunk.
Once all the waves have completed the operation, the next chunk is loaded into the waves.
Because all the waves are synchronized, memory accesses are coordinated, and the cache hit rate is optimized, interwave scheduling is best for memory-bound workloads.
In intrawave scheduling, the full K dimension is loaded into each wave. Each wave runs its own operation on the K dimension independently of the other waves, and without any synchronization with the other waves. The compute unit (CU) is responsible for interleaving the independent operations.
Because the CU has flexibility in scheduling operations, intrawave scheduling is best for compute-bound workloads.
An example of both interwave and intrawave scheduling can be found in |gemm_utils.hpp|_, which is part of the `GEMM with CK Tile example <https://github.com/ROCm/composable_kernel/blob/develop/example/ck_tile/03_gemm/README.md>`_.
.. |gemm_utils.hpp| replace:: ``gemm_utils.hpp``
.. _gemm_utils.hpp: https://github.com/ROCm/composable_kernel/blob/develop/example/ck_tile/03_gemm/gemm_utils.hpp#L37

View File

@@ -25,6 +25,7 @@ The Composable Kernel repository is located at `https://github.com/ROCm/composab
* :doc:`Composable Kernel structure <./conceptual/Composable-Kernel-structure>`
* :doc:`Composable Kernel mathematical basis <./conceptual/Composable-Kernel-math>`
* :doc:`CK Tile intrawave and interwave scheduling <../conceptual/CK-Tile-intra-inter-wave>`
* :doc:`CK Tile conceptual documentation <./conceptual/ck_tile/CK-tile-index>`
.. grid-item-card:: Tutorials

View File

@@ -18,6 +18,8 @@ subtrees:
title: Structure
- file: conceptual/Composable-Kernel-math.rst
title: Mathematical basis
- file: conceptual/CK-Tile-intra-inter-wave.rst
title: Intrawave and interwave scheduling
- file: conceptual/ck_tile/CK-tile-index.rst
title: CK Tile conceptual documentation