Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Soi, Rupanshu, Yadav, Rohan, Kjolstad, Fredrik, Aiken, Alex, Dehnavi, Maryam Mehri, Garland, Michael, Bauer, Michael
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2512.18134
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866917159882457088
author Soi, Rupanshu
Yadav, Rohan
Kjolstad, Fredrik
Aiken, Alex
Dehnavi, Maryam Mehri
Garland, Michael
Bauer, Michael
author_facet Soi, Rupanshu
Yadav, Rohan
Kjolstad, Fredrik
Aiken, Alex
Dehnavi, Maryam Mehri
Garland, Michael
Bauer, Michael
contents GPU architectures have continued to grow in complexity, with recent incarnations introducing increasingly powerful fixed-function units for matrix multiplication and data movement to accompany highly parallel general-purpose cores. To fully leverage these machines, software must use sophisticated schedules that maximally utilize all hardware resources. Since realizing such schedules is complex, both programmers and compilers routinely employ program transformations, such as software pipelining (SWP) and warp specialization (WS), to do so in practice. However, determining how best to use SWP and WS in combination is a challenging problem that is currently handled through a mix of brittle compilation heuristics and fallible human intuition, with little insight into the space of solutions. To remedy this situation, we introduce a novel formulation of SWP and WS as a joint optimization problem that can be solved holistically by off-the-shelf constraint solvers. We reify our approach in Twill, the first system that automatically derives optimal SWP and WS schedules for a large class of iterative programs. Twill is heuristic-free, easily extensible to new GPU architectures, and guaranteed to produce optimal schedules. We show that Twill can rediscover, and thereby prove optimal, the SWP and WS schedules manually developed by experts for Flash Attention on both the NVIDIA Hopper and Blackwell GPU architectures.
format Preprint
id arxiv_https___arxiv_org_abs_2512_18134
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs
Soi, Rupanshu
Yadav, Rohan
Kjolstad, Fredrik
Aiken, Alex
Dehnavi, Maryam Mehri
Garland, Michael
Bauer, Michael
Programming Languages
Hardware Architecture
Machine Learning
GPU architectures have continued to grow in complexity, with recent incarnations introducing increasingly powerful fixed-function units for matrix multiplication and data movement to accompany highly parallel general-purpose cores. To fully leverage these machines, software must use sophisticated schedules that maximally utilize all hardware resources. Since realizing such schedules is complex, both programmers and compilers routinely employ program transformations, such as software pipelining (SWP) and warp specialization (WS), to do so in practice. However, determining how best to use SWP and WS in combination is a challenging problem that is currently handled through a mix of brittle compilation heuristics and fallible human intuition, with little insight into the space of solutions. To remedy this situation, we introduce a novel formulation of SWP and WS as a joint optimization problem that can be solved holistically by off-the-shelf constraint solvers. We reify our approach in Twill, the first system that automatically derives optimal SWP and WS schedules for a large class of iterative programs. Twill is heuristic-free, easily extensible to new GPU architectures, and guaranteed to produce optimal schedules. We show that Twill can rediscover, and thereby prove optimal, the SWP and WS schedules manually developed by experts for Flash Attention on both the NVIDIA Hopper and Blackwell GPU architectures.
title Optimal Software Pipelining and Warp Specialization for Tensor Core GPUs
topic Programming Languages
Hardware Architecture
Machine Learning
url https://arxiv.org/abs/2512.18134