arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01352cs.OScs.AIcs.DC
收藏

VUDA: 打破CUDA-Vulkan隔离以实现同一GPU上的计算与图形空间共享

VUDA: Enabling Controlled Spatial Sharing of Graphics and Compute on NVIDIA GPUs

Shanghai Jiao Tong University(上海交通大学)

Bin Xu, Pengfei Hu, Jinyu Gu, Haibo Chen

AI总结:

VUDA通过打破CUDA与Vulkan的执行隔离,实现计算与图形任务的空间并行,提升GPU利用率并减少端到端延迟。

摘要:

基于GPU的具身AI仿真环境在单个设备上交替物理模拟(CUDA)和逼真渲染(Vulkan)。我们发现两个基础场景——模拟数据生成和强化学习训练——可以自然地同时执行模拟和渲染阶段,为通过空间复用提高GPU利用率提供了显著机会。然而,我们称之为执行隔离的根本障碍阻止了这一点:CUDA和Vulkan创建了分开的GPU上下文,其通道绑定到不同的调度组,将计算和图形限制在互斥的时间片中。现有的空间共享技术仅限于CUDA生态系统,而时间共享方法则未充分利用可用资源。本文提出了VUDA系统,该系统打破了执行隔离,以实现CUDA计算和Vulkan图形任务之间的空间并行。VUDA基于两个关键观察:尽管CUDA和Vulkan暴露了不同的编程抽象,但它们的执行路径在驱动和硬件级别会收敛到一个共同的通道原语;同时,它们的虚拟地址空间本质上是不相交的,使得安全的页面表合并成为可能而无需重新映射。VUDA为开发者提供了薄API来注解可并行调度的CUDA流,并通过通道重定向到Vulkan的调度域和页面表嫁接来实现空间共享,消除了关键路径上的所有数据复制。在代表性具身AI工作负载上的实验表明,VUDA的吞吐量比时间共享基线高85%,同时提高了GPU利用率并减少了端到端延迟。

英文摘要:

Graphics and compute increasingly share a single GPU in embodied AI simulators, AI-enabled games, and VR systems. Running these workloads concurrently can improve utilization, but contention can also compromise rendering and inference latency. Effective sharing therefore requires control over both concurrency and resource allocation. Native CUDA and Vulkan runtimes complicate this task: they place work in separate scheduling domains, while compute-oriented resource controls do not govern the graphics pipeline. We present VUDA, a system that enables controlled spatial sharing of native CUDA compute and Vulkan graphics on NVIDIA GPUs. An analysis of GPU scheduling, address translation, and workload dispatch reveals how to coordinate the two execution stacks without replacing either one. VUDA redirects CUDA channels into Vulkan's scheduling domain while preserving the runtimes' separate data address spaces. It then uses GPU front-end controls to partition execution resources between the graphics and compute pipelines, with allocations adjustable at runtime. Together, these mechanisms let applications control resource sharing without modifying GPU drivers or rewriting kernels and shaders. We evaluate VUDA across four application scenarios on three NVIDIA GPU platforms, covering throughput and latency objectives for graphics, compute, or both. In embodied AI simulation, enabling concurrency improves throughput by up to $1.62\times$ over the same asynchronous pipeline under default time sharing. In driving perception, partitioned co-execution reduces the measured inference-budget miss rate from 80.1% to zero while sustaining 60-FPS rendering.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑