# GPUOS: A GPU Operating System Primitive for Transparent Operation Fusion

DevFeed: [GPUOS: A GPU Operating System Primitive for Transparent Operation Fusion](<https://devfeed.tech/articles/gpuos-a-gpu-operating-system-primitive-for-transparent-operation-fusion-131511.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2604.17861>)

Author: Yiwei Yang, Xiangyu Gao, Yuan Zhou, Yuhang Gan, Yusheng Zheng, Andi Quinn

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [Warp](<https://devfeed.tech/topics/warp.md>), [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [attention](<https://devfeed.tech/tags/attention.md>), [broadcasting](<https://devfeed.tech/tags/broadcasting.md>), [code](<https://devfeed.tech/tags/code.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-os](<https://devfeed.tech/tags/cs-os.md>), [data-types](<https://devfeed.tech/tags/data-types.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [device-code](<https://devfeed.tech/tags/device-code.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [fusion](<https://devfeed.tech/tags/fusion.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [jit](<https://devfeed.tech/tags/jit.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [launch](<https://devfeed.tech/tags/launch.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>), [system](<https://devfeed.tech/tags/system.md>), [transparent](<https://devfeed.tech/tags/transparent.md>)

## AI overview

GPUOS targets workloads where repeated GPU kernel launches can cost more than the small tensor operations themselves. It keeps one persistent worker kernel running, processes tasks from a host-managed atomic queue, and uses NVIDIA NVRTC to compile operators at runtime and inject them through device function pointer tables. A dual-slot aliasing scheme supports concurrent operator updates without restarting the kernel. Through PyTorch's TorchDispatch, GPUOS batches micro-operations into unified submissions; its generic tensor abstraction supports varied shapes, strides, data types, and broadcasting. The abstract reports up to 15.3x speedup over standard PyTorch on small-operation-heavy workloads such as micro-batched inference and attention. These are abstract-level claims; no benchmark details are provided in the supplied text.

## Source excerpt

arXiv:2604.17861v2 Announce Type: replace Abstract: 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.