arXiv:2609.35587cs.LGSep 2026

Manuscript Offprint

arXiv:2609.35587

Hardware-Aware Features for CUTLASS Kernel Selection

Shriram Chandran, Dominic Rinderer, Yakup Budanaz, Alexandru Calotoiu, Marcin Copik, Torsten Hoefler

Shriram Chandran ∗^{*} †^{\dagger}

ETH Zurich

Zurich, Switzerland

Alexandru Calotoiu

ETH Zurich

Zurich, Switzerland

Dominic Rinderer †^{\dagger}

ETH Zurich

Zurich, Switzerland

Marcin Copik

ETH Zurich

Zurich, Switzerland

Yakup Budanaz

ETH Zurich

Zurich, Switzerland

Torsten Hoefler

ETH Zurich

Zurich, Switzerland

Abstract

GPU libraries such as CUTLASS expose tens of thousands of semantically equivalent kernels for a single operation, making exhaustive autotuning expensive and execution-free selection difficult. Existing analytical selectors require hand-designed performance rules, while learned selectors operate on raw configuration parameters and must infer hardware consequences from data. We introduce a hardware-aware representation for CUTLASS kernel selection that augments candidate configurations with statically computable estimates of induced hardware behavior. We construct a dataset of 4.9 million CUTLASS kernels and train gradient-boosted and neural learning-to-rank models to rank candidates within each problem. On held-out exhaustive evaluation problems, hardware-aware representations reduce selection regret by up to 40% relative to structural baselines and 64.2% relative to NVIDIA's matrix-multiply heuristics. We further evaluate data-efficient cross-precision and epilogue-fusion transfer within CUTLASS GEMM, showing that explicitly representing candidate-induced hardware behavior provides a useful inductive bias for learned kernel selection.

1 Introduction

Modern GPU libraries expose increasingly large spaces of implementations for a single operation. CUTLASS [21] is a particularly expressive instance of this problem – a CUTLASS GEMM may be implemented in over sixty thousand ways using different tile shapes, instruction shapes, pipeline depths, schedules, cluster configurations, tile schedulers, and epilogue implementations, interacting non-trivially with the problem dimensions, layouts, data types, accumulation types, and target architecture [20]. The best configuration is determined by the interaction of these effects rather than by any one parameter in isolation. This flexibility is valuable to kernel developers, but it also creates a very large configuration space. Selecting an efficient implementation is therefore a central requirement for achieving near-peak performance on contemporary accelerators [4]. Empirical autotuning, by compiling and benchmarking candidate kernels, is expensive [1, 3, 19]. Compilation and measurement must be repeated for each target GPU, datatype, epilogue, and problem shape. Empirical selection becomes impossible when a library requires several different GEMM shapes or must make selections dynamically. This motivates selectors that can rank candidates without executing them [3].

Existing execution-free selectors follow two main approaches. Analytical methods encode manually designed performance rules, such as preferences for tile sizes, occupancy limits, or wave quantization based on the problem instance [19, 26]. These methods are fast but brittle, require substantial architecture-specific knowledge for development, and must be updated as hardware and kernel libraries evolve. Learned autotuners [16, 25] reduce the need for manual rules, but typically represent candidates using raw problem dimensions and template parameters, leaving the model to then infer how those parameters affect hardware behaviour. Thus, raw parameters are a poor description of these effects.

We propose hardware-aware representations for kernel selection. Each candidate is represented using its structural configuration together with inexpensive estimates of its induced hardware behaviour. We construct a 4.9M-kernel training corpus, train ranking models, score the entire valid catalogue at inference, and obtain 6.2% mean selection regret, compared with 17% for nvMMH (nvMatmulHeuristics, NVIDIA's matrix multiply heuristics library), and 71.5% for random selection – a 64.2% and 91.3% relative reduction in selection regret, respectively.

Our approach combines the strengths of analytical selectors and measurement-driven learning: hardware behavior is exposed explicitly through static, mechanistic features, while the model learns how these effects interact from measured data rather than relying on a hand-written performance model. This gives the selector the best of both worlds: strong architectural inductive bias without brittle decision rules, and data-driven adaptability without forcing the model to rediscover hardware behavior from raw parameters. As a result, the same representation supports accurate selection, improved data efficiency, and transfer across related kernel spaces, establishing hardware-aware feature design as a practical foundation for learned performance modeling on modern accelerators.

References (12)