CUTLASS provides abstractions for high-performance matrix multiplication and related linear algebra on NVIDIA GPUs. It offers C++ template components and Python CuTe DSL interfaces for kernel development.
Overview
CUTLASS is a collection of CUDA C++ template abstractions and Python domain-specific languages aimed at matrix-matrix multiplication and related workloads. It modularizes decomposition, data movement, and policy choices so developers can tune tiling, data types, and algorithms when building custom kernels.
The C++ side supports mixed-precision types including FP64 through narrow integers and block-scaled formats across Volta through Blackwell-class architectures. CUTLASS also adds Python DSLs, starting with CuTe DSL, which expose layouts, tensors, and hardware atoms with JIT compilation and framework integration options.
Beyond dense GEMM, documentation covers convolution via implicit GEMM, epilogue fusion, JAX integration, and an Operator API layer for discovering and running DSL-produced kernels. Installation is available through pip packages for the DSL, with optional tool extras and CUDA-version-specific variants.
The design parallels hierarchical strategies used in libraries such as cuBLAS and cuDNN, but targets authors who need specialized kernels rather than only calling fixed library entry points.
Key features
- Modular CUDA GEMM template components
- CuTe DSL for Python kernel authoring
- Mixed-precision and block-scaled types
- Tensor Core oriented linear algebra
- Implicit GEMM convolution support
- CUTLASS Operator API integration
- Epilogue fusion configuration helpers
- Architecture-tuned Blackwell and Hopper paths
Use cases
- Custom GPU matrix multiply kernels
- Research prototypes in Python DSL
- Fused epilogues on GEMM outputs
- Convolution via implicit GEMM reformulation
- JAX-connected CUTLASS kernel calls