Files
cutlass/examples
Johnsonms 982748aa73 [Hopper CuTeDSL] Add grouped GEMM persistent kernel and tests (#3091)
Implement grouped GEMM (C_g = A_g x B_g for g groups) on Hopper using
CuTe DSL, extending the dense persistent GEMM with per-group TMA
descriptor management.

Kernel design (grouped_gemm.py):
- Warp-specialized pipeline: DMA warp group handles TMA loads and
  per-group tensormap updates; MMA warp group runs WGMMA and stores C
- StaticPersistentGroupTileScheduler for cross-group tile scheduling
- Per-group TMA descriptor updates via GMEM or SMEM mode
- Supports fp16, fp8 (E4M3FN/E5M2), int8 with mixed A/B dtypes
- Configurable tile shapes (128x128, 128x256) and cluster shapes
- Fix base TensorMapManager: hoist uniform_smem_ptrs outside predicated
  block to avoid illegal @P0 R2UR on sm_90a

Tests (test/examples/CuTeDSL/hopper/test_grouped_gemm.py):
- L0 compile and L1 correctness pytest suite covering tile shapes,
  dtypes, major modes, cluster shapes, group counts, and mixed sizes
- Move to test/examples/CuTeDSL/hopper/ following sm_100a convention
- Fix deprecated startdir arg in test_sharding.py pytest hook
2026-03-18 00:40:15 -04:00
..
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-24 11:46:17 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-24 11:46:17 -05:00
2026-01-08 15:02:56 -05:00
2026-01-08 15:02:56 -05:00
2026-01-24 11:46:17 -05:00
2026-01-24 11:46:17 -05:00
2026-01-24 11:46:17 -05:00
2026-01-08 15:02:56 -05:00
2026-02-27 16:25:35 +08:00
2026-01-24 11:46:17 -05:00
2026-01-08 15:02:56 -05:00

CUTLASS - Programming Examples

Important

⚠️ Not for Benchmarking! ⚠️

These examples are designed solely for demonstrating CUTLASS functionality and may NOT optimized for performance benchmarking.

For accurate performance measurements, please use the CUTLASS Profiler instead (recommended) or manually auto-tune the example, if unavailable via the profiler.

CuTe - Programming Examples

Examples that do not rely on CUTLASS and directly showcase the features of CuTe are located in cutlass/examples/cute.

Additionally, CuTe's core layout and layout algebra have their own test cases within cutlass/test/unit/cute/core/ that users might find useful as examples of CuTe.

Python Interface Examples

Examples leveraging CUTLASS's Python interface are located in cutlass/examples/python.

Copyright

Copyright (c) 2017 - 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: BSD-3-Clause

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.