Skip to content

Conversation

@AviralGoelAMD
Copy link
Collaborator

@AviralGoelAMD AviralGoelAMD commented Oct 16, 2025

Proposed changes

In this PR we bring a simple GEMM example demonstrating key CK Tile concepts such as

  • Problem & Policy struct
  • Shape & Kernel struct
  • Tensor views, tile windows and tensor descriptors
  • CK Tile work distribution hierarchy (grid level, block level, warp level)
  • Tile Distribution & functions like load_tile, store_tile

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive CK Tile tutorial materials, focusing on foundational concepts for GPU kernel development. It introduces a structured learning path with two main tutorial components: a basic copy kernel and a naive GEMM implementation that demonstrates the hierarchical tile system architecture.

Key changes include:

  • Tutorial infrastructure setup with dedicated CMake configuration and build targets
  • Basic copy kernel tutorial demonstrating fundamental tile operations
  • Complete GEMM tutorial showcasing Problem/Policy/Shape abstractions and multi-level compute hierarchy

Reviewed Changes

Copilot reviewed 17 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tutorial/CMakeLists.txt Sets up tutorial build infrastructure with automatic subdirectory discovery
tutorial/ck_tile/CMakeLists.txt Root CMake for CK Tile tutorials, adding copy and GEMM subdirectories
tutorial/ck_tile/00_copy_kernel/* Copy kernel tutorial with updated executable naming and build configuration
tutorial/ck_tile/01_naive_gemm/* Complete GEMM tutorial implementation across host/block/warp levels
CMakeLists.txt Integrates tutorial build target into main project configuration
example/ck_tile/CMakeLists.txt Removes copy example (likely moved to tutorial)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

AviralGoelAMD and others added 2 commits October 16, 2025 15:27
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants