Dissecting an Unexplored SASS Control-Code Field: Barrier Exemption and Programmable Warp Priority
Ziwen Wang, Qi Luo, Kunlin Li, Changxi Liu, Dongsheng Wang, Yun Chen
Abstract
Every instruction in NVIDIA's native GPU ISA (SASS) carries a control code that guides hardware scheduling, and prior work has decoded its known fields to optimize GPU kernels. However, one control-code field remains unexplored: it appears over 500000 times in NVIDIA's closed-source libraries such as cuBLAS and cuDNN, yet nvcc never emits it when compiling user programs. This paper presents the first systematic study of this control-code field across GPU architectures from Volta to Blackwell. Using instruction-level microbenchmarks, we show that the field controls two independent hardware mechanisms: barrier exemption (EXEMPT), which allows instructions blocked by a pending barrier to issue early during the barrier wait, and programmable warp priority (START, TILE, and END), which moves warps across three priority levels in the hardware scheduler. We identify the conditions under which each mechanism improves GPU kernel performance and implement a post-compilation binary optimizer that places these marks directly in compiled binaries without modifying source code or the compiler. Evaluated across six GPUs spanning four architectures, our optimizations speed up representative kernels by up to 31.9%, and the optimizer accelerates production kernels in llama.cpp and vLLM by up to 5.4% and end-to-end LLM inference by up to 3.6%.
Create a lesson
Related papers
ReLay: Bidirectional Layout-Code Translation and Library Evolution for Reusable and Process-Portable Analog Design
Shared title terminology · Minxing Chu, Quan Cheng, Anhang Li et al.
HETEROVLM: Edge Multi-Request Vision-Language Model Serving on a Heterogeneous Versal SoC with AI Engines and Programmable Logic
Shared title terminology · Zhiheng Chen, Yu-An Chou, Yifan Zhang et al.
Dissecting the GPU Load/Store Unit and Exposing Its Security Risks
Shared title terminology · Wenbo Han, Pierre Talbot
LaFlash: Capacity-Driven Acceleration for Coding Agent Workflows via QLC-HBF
Shared title terminology · Yuseon Choi, Eunjong Lee, Sanghyeon Park et al.
SIMTurn: Lightweight Divergent Subgroup Scheduling for Intra-Warp Synchronization
Shared title terminology · Nikhil Rout, Joe Samuel Rosh, Blaise Tine
Vector Field Transforms: Structured Hyperdimensional Memory for Spatio-Temporal Reasoning
Shared title terminology · William Youngwoo Chung, Andrew Ding, Hansen Jin Lillemark et al.