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

TL;DR

UrgenGo is a non-intrusive, urgency-aware GPU scheduling framework designed specifically for autonomous driving systems operating with closed-source, proprietary libraries. By transparently intercepting and manipulating CUDA kernel launches at runtime, it dynamically prioritizes critical tasks, achieving a 61% reduction in deadline misses without requiring any application source code modifications.

What Problem Does This Paper Address?

Modern autonomous driving (AD) systems rely heavily on complex, deep-learning-based tasks (such as 3D object detection, tracking, and path planning) that are highly GPU-bound. These tasks are typically organized into sequential "task chains" triggered by periodic sensor data, each bound by strict end-to-end real-time deadlines.

Figure 1: An example with 4 different sensors and 9 task chains. The last task of a chain is marked with a star.

However, managing these tasks effectively introduces two major challenges:

  1. Closed-Source Black Boxes: To minimize costs and optimize performance, automotive manufacturers frequently use proprietary inference engines (like NVIDIA TensorRT) and closed-source algorithm libraries from third-party suppliers. Because the source code is inaccessible, developers cannot modify the applications to implement fine-grained scheduling.
  2. Static vs. Dynamic Priority Mismatch: Existing GPU schedulers rely on static task priorities. In unpredictable driving environments, multiple task chains might share similar criticality levels but possess vastly different real-time urgencies (laxity) as deadlines approach. This lack of dynamic awareness leads to hardware-level kernel collisions and priority inversions, causing critical tasks to miss their deadlines.

Methods

UrgenGo introduces a holistic, transparent framework that operates entirely in user space. It intercepts standard CUDA driver calls (such as cuLaunchKernel, cuMemcpy, and cuStreamSynchronize) by replacing the default dynamic library (libcuda.so) at runtime using standard API interception techniques.

Figure 2: The kernel launching and segmented structure for 2D object detection [15] using TensorRT [1].

The system coordinates prioritization across both the CPU and GPU using four core mechanisms:

  • Dynamic Urgency Estimation: At runtime, UrgenGo tracks the remaining execution time of both CPU and GPU segments. To bypass the closed-source driver barrier, it uses an offline-profiled lookup table to accurately predict individual GPU kernel execution times based on grid and block dimensions.
  • Task-Level Stream Binding with Reservation: Instead of statically binding tasks to CUDA streams, UrgenGo dynamically changes stream assignments based on real-time urgency. It also implements a reservation scheme that locks the highest-priority hardware stream exclusively for tasks crossing a critical urgency threshold.
  • Delayed Kernel Launching: To mitigate co-scheduling collisions on the GPU, UrgenGo introduces a back-off mechanism inspired by wireless MAC protocols. If a low-urgency task attempts to launch a kernel while a highly urgent task is actively executing, UrgenGo forces the low-priority thread into a brief sleep loop.
  • Batched Kernel Launching: Asynchronous launching creates a "launch-execution gap" where the CPU doesn't know which kernel is actively running on the GPU. UrgenGo resolves this by grouping kernels into time-bounded batches ($\Delta_{eval}$) and using lightweight CUDA events to periodically synchronize and update urgency metrics without serializing execution.
UrgenGo's urgency-aware GPU prioritization framework

Datasets

The authors evaluated UrgenGo in a realistic, production-grade setting:

  • Workload: 11 GPU-bound task chains spanning 6 service domains (3D perception, 2D perception, localization, navigation, calibration, and interaction) built on ROS2 and TensorRT.
  • Hardware & Data Collection: Implemented on an industrial-grade in-vehicle server deployed on a physical self-driving bus. Real-world sensor data was collected over a two-week period across a 480,000-square-meter campus using 3 Robosense LiDARs and 6 FLIR cameras.
  • Evaluation Scenarios: Testing included a 10-minute trace-based replay (via ROSBAG) for controlled baseline comparisons and a 2-hour live, real-time driving experiment to evaluate long-term stability.

Key Insights and Ideas

  • Transparency is Practical: You do not need source code access to enforce real-time constraints. Intercepting the boundary between proprietary middleware and closed-source drivers provides a powerful, non-intrusive lever for system-level orchestration.
  • The Asynchronous Blindspot: While asynchronous kernel launching minimizes CPU overhead, it blinds the operating system to actual GPU progress. Smart batching strikes the perfect balance between tracking accuracy and low synchronization overhead.
  • Better Scheduling Boosts Utilization: Intuitively, delaying kernels might seem like it would waste hardware cycles. However, by preventing deadline misses, UrgenGo actually increases long-term CPU and GPU utilization (by 4.5% and 4.8%, respectively) because it eliminates early task terminations resulting from missed deadlines.

Key Results

  • 61% Reduction in Deadline Misses: UrgenGo significantly outperformed PAAM (the state-of-the-art scheduler), despite PAAM requiring intrusive application source code modifications.
  • 51% Fewer Kernel Collisions: The combination of stream reservation and delayed launching successfully isolated highly urgent tasks from resource contention.
  • Minimal Operational Overhead: When running tasks in isolation, UrgenGo added only about a 1% overhead to total execution time. Its scheduling algorithm scales linearly ($O(N)$ with the number of task chains), consuming less than 0.1% of the total task execution budget.

Limitations and Future Work

  • Conservative Delays: The authors noted that kernel collisions and deadline misses are not perfectly correlated; some collisions do not ultimately cause a deadline failure. Currently, UrgenGo conservatively delays low-priority kernels whenever a high-urgency kernel is active. Future work could optimize this by only triggering delays when a collision is guaranteed to cause a miss.
  • Scope of Application: While highly optimized for autonomous driving, the authors suggest extending these transparent, urgency-aware strategies to other cyber-physical systems (such as AR/VR services and robotics) that feature predictable task graphs but highly dynamic data workloads.

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