GPUOS: A GPU Operating System Primitive for Transparent Operation Fusion

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Yang, Yiwei, Gao, Xiangyu, Zhou, Yuan, Gan, Yuhang, Zheng, Yusheng, Quinn, Andi
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915944980283392
author Yang, Yiwei
Gao, Xiangyu
Zhou, Yuan
Gan, Yuhang
Zheng, Yusheng
Quinn, Andi
author_facet Yang, Yiwei
Gao, Xiangyu
Zhou, Yuan
Gan, Yuhang
Zheng, Yusheng
Quinn, Andi
contents Modern deep learning workloads often consist of many small tensor operations, especially in inference, attention, and micro-batched training. In these settings, kernel launch overhead can become a major bottleneck, sometimes exceeding the actual computation time. We present GPUOS, a GPU runtime JIT system that reduces launch overhead using a persistent kernel architecture with runtime operator injection. GPUOS runs a single long-lived GPU kernel that continuously processes tasks from a host-managed work queue, eliminating repeated kernel launches. To support diverse operations, GPUOS uses NVIDIA NVRTC to just-in-time compile operators at runtime and inject them into the running kernel through device function pointer tables. This design enables operator updates without restarting the kernel or recompiling the system. GPUOS introduces four key ideas: (1) a persistent worker kernel with atomic task queues, (2) a runtime operator injection mechanism based on NVRTC and relocatable device code, (3) a dual-slot aliasing scheme for safe concurrent operator updates, and (4) transparent PyTorch integration through TorchDispatch that batches micro-operations into unified submissions. The system supports arbitrary tensor shapes, strides, data types, and broadcasting through a generic tensor abstraction. Experiments show that GPUOS achieves up to 15.3x speedup over standard PyTorch on workloads dominated by small operations, including micro-batched inference and attention patterns. GPUOS improves utilization while remaining compatible with the PyTorch ecosystem.
format Preprint
id arxiv_https___arxiv_org_abs_2604_17861
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle GPUOS: A GPU Operating System Primitive for Transparent Operation Fusion
Yang, Yiwei
Gao, Xiangyu
Zhou, Yuan
Gan, Yuhang
Zheng, Yusheng
Quinn, Andi
Distributed, Parallel, and Cluster Computing
Operating Systems
Modern deep learning workloads often consist of many small tensor operations, especially in inference, attention, and micro-batched training. In these settings, kernel launch overhead can become a major bottleneck, sometimes exceeding the actual computation time. We present GPUOS, a GPU runtime JIT system that reduces launch overhead using a persistent kernel architecture with runtime operator injection. GPUOS runs a single long-lived GPU kernel that continuously processes tasks from a host-managed work queue, eliminating repeated kernel launches. To support diverse operations, GPUOS uses NVIDIA NVRTC to just-in-time compile operators at runtime and inject them into the running kernel through device function pointer tables. This design enables operator updates without restarting the kernel or recompiling the system. GPUOS introduces four key ideas: (1) a persistent worker kernel with atomic task queues, (2) a runtime operator injection mechanism based on NVRTC and relocatable device code, (3) a dual-slot aliasing scheme for safe concurrent operator updates, and (4) transparent PyTorch integration through TorchDispatch that batches micro-operations into unified submissions. The system supports arbitrary tensor shapes, strides, data types, and broadcasting through a generic tensor abstraction. Experiments show that GPUOS achieves up to 15.3x speedup over standard PyTorch on workloads dominated by small operations, including micro-batched inference and attention patterns. GPUOS improves utilization while remaining compatible with the PyTorch ecosystem.
title GPUOS: A GPU Operating System Primitive for Transparent Operation Fusion
topic Distributed, Parallel, and Cluster Computing
Operating Systems
url https://arxiv.org/abs/2604.17861