UrgenGo: Urgency-Aware Transparent GPU Kernel Launching for Autonomous Driving

Hanqi Zhu, Wuyang Zhang, Xinran Zhang, Ziyang Tao, Xinrui Lin, Yu Zhang, Jianmin Ji, Yanyong Zhang

Abstract

Autonomous driving (AD) systems rely on complex, GPU-intensive task chains that must meet strict real-time deadlines to ensure safety. However, proprietary software stacks and static scheduling policies often lead to deadline misses. We present UrgenGo, a non-intrusive middleware that intercepts CUDA calls to dynamically prioritize GPU kernels based on their real-time urgency. By calculating task laxity and manipulating kernel launches transparently, UrgenGo reduces deadline misses by up to 61% without requiring source code access.

Introduction

Modern autonomous vehicles process a multitude of sensor inputs through intricate task chains, including perception, localization, and path planning. These chains are often GPU-bound and governed by rigid timing constraints. A failure to complete a task like "Path Planning" within its deadline can compromise vehicle safety.

Figure 1: Overview of autonomous driving task chains and their associated real-time deadlines.

Two primary challenges hinder efficient scheduling in these systems. First, the "Black Box Problem": much of the AD software stack consists of proprietary libraries (e.g., TensorRT) where source code is unavailable for modification. Second, static priority schemes fail to account for dynamic "urgency." A nominally low-priority task may become critical if it is near its deadline, yet standard GPU drivers lack the awareness to prioritize it over a less urgent high-priority task.

The UrgenGo Framework

UrgenGo addresses these challenges by operating as a transparent middleware layer between the AD application and the GPU driver. It employs several key mechanisms to manage kernel execution dynamically.

Figure 6: The UrgenGo architecture, illustrating task chain deployment, urgency estimation, and urgency-aware GPU prioritization.

Transparent API Interception

UrgenGo utilizes a mirrored CUDA driver library to intercept standard function calls such as cuLaunchKernel. This allows the system to adjust kernel parameters—including priority and timing—without altering the original application binary. This transparency is essential in the automotive industry, where components often come from various Tier 1/2 suppliers.

Dynamic Urgency Estimation

The system calculates an "Urgency Level" for each task chain. Urgency is defined as the inverse of laxity (the time remaining until the deadline minus the estimated remaining execution time). This metric allows the scheduler to identify which tasks are most at risk of failure in real-time, moving beyond static importance levels.

Urgency-Aware Prioritization

Based on the calculated urgency, UrgenGo performs several optimizations:

  • Task-Level Stream Binding: Kernels are dynamically bound to CUDA streams with varying priority levels based on their current urgency.
  • Delayed Kernel Launching: To prevent "kernel collisions" where a low-urgency kernel blocks a critical one, UrgenGo can briefly delay (sleep) low-priority launches to clear the path for urgent tasks.
  • Batched Synchronization: To bridge the "Execute-Launch Gap"—where the CPU launches kernels faster than the GPU can execute them—UrgenGo inserts synchronization points to accurately track progress without excessive overhead.

Evaluation and Results

The system was evaluated using a real-world AD application featuring 11 AI-driven task chains (e.g., PointPillars, YOLO, LLAMA2-7B). Testing was conducted on both industrial-grade (RTX 3070Ti) and embedded (Jetson AGX Orin) platforms using data from a self-driving bus operating across a 480,000-square-meter campus.

Key findings include:

  • Deadline Compliance: UrgenGo achieved a 61% reduction in the overall deadline miss ratio compared to state-of-the-art schedulers.
  • Collision Mitigation: The delayed launching mechanism successfully reduced kernel collisions by up to 51%.
  • Minimal Overhead: The system's interception logic added less than 1% to total execution time, demonstrating its suitability for high-performance real-time systems.
  • Robustness: UrgenGo maintained effectiveness even with 30% error in execution time estimations, proving resilient to the unpredictability of real-world driving environments.

Conclusion

UrgenGo demonstrates that transparency and dynamic urgency awareness are critical for real-time GPU scheduling in autonomous systems. By providing a "plugin-compatible" solution that requires no source code access, it offers a practical path for optimizing complex, multi-vendor AD software stacks. Future work will explore extending these techniques to other cyber-physical systems like robotics and AR/VR.

Summary updated

BibTeX
@inproceedings{zhu2025urgengo,
  author = {Hanqi Zhu and Wuyang Zhang and Xinran Zhang and Ziyang Tao and Xinrui Lin and Yu Zhang and Jianmin Ji and Yanyong Zhang},
  title = {{UrgenGo: Urgency-Aware Transparent GPU Kernel Launching for Autonomous Driving}},
  booktitle = {MobiCom},
  year = {2025},
}
Figure