Skip to content

Tutorial code for Quick start and Layouts#721

Merged
Antonyvance merged 13 commits intomainfrom
tutorials
Mar 20, 2026
Merged

Tutorial code for Quick start and Layouts#721
Antonyvance merged 13 commits intomainfrom
tutorials

Conversation

@Antonyvance
Copy link
Copy Markdown

@Antonyvance Antonyvance commented Feb 3, 2026

Description

Add example code for CuTe tutorial with Xe references.
Covers quickstart guides and layout manipulation with visual demonstrations.
Key example: 08_layout_manipulation.cpp with layout manipulations. Run the code and print for the layouts.
Note: This is first of many PRs. this will be followed by Tensor basics and manipulation._

Type

  • Bug - [x] Feature - [ ] Performance - [ ] Refactor

Testing

  • Tests pass - [ ] Xe12 - [x] Xe20

Local Build/Test Steps:

cd /path/sycl-tla/build
ninja cute_layout_08_manipulation
./examples/cute/tutorial/layout/cute_layout_08_manipulation

Comment thread examples/cute/tutorial/layout/02_hierarchical_access.cpp
Comment thread examples/cute/tutorial/layout/05_layout_compatibility.cpp
Comment thread examples/cute/tutorial/layout/06_coordinate_mapping.cpp
Comment thread examples/cute/tutorial/layout/01_rank_depth_size.cpp Outdated
Copy link
Copy Markdown

@tdeng5 tdeng5 left a comment

Choose a reason for hiding this comment

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

I like this PR, it will help new CUTLASSS programmer a lot!

@vidyasiv

This comment was marked as resolved.

@Antonyvance
Copy link
Copy Markdown
Author

@Antonyvance , I see an error when I do a build:

Command

cmake .. -G Ninja -DCUTLASS_ENABLE_SYCL=ON -DCUTLASS_SYCL_PROFILING_ENABLED=OFF -DDPCPP_SYCL_TARGET=intel_gpu_bmg_g21 -DCUTLASS_ENABLE_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=icpx

OR

ninja cute_layout_08_manipulation

Both show the same error, here's the failure snippet

-- Building CuTe quickstart examples with SYCL
CMake Error at examples/cute/tutorial/CMakeLists.txt:36 (add_subdirectory):
  The source directory
   <>/sycl-tla/examples/cute/tutorial/layout
  does not contain a CMakeLists.txt file.

At commit c69190b (HEAD -> pr/721, origin/tutorials, origin/pr/721, tutorials) Do let me know if it's possibly something at my end.

Added CMakeList now.

@Antonyvance Antonyvance enabled auto-merge (squash) March 20, 2026 06:15
@tdeng5 tdeng5 requested a review from taozha2 March 20, 2026 06:31
tdeng5
tdeng5 previously approved these changes Mar 20, 2026
@Antonyvance Antonyvance merged commit 93d2061 into main Mar 20, 2026
8 checks passed
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.

6 participants