PIRT: A Runtime Framework to Enable Energy-Efficient Real-Time Robotic Applications on Heterogeneous Architectures

Liu Liu 0017, Shaoshan Liu, Zhe Zhang, Bo Yu, Jie Tang, Yuan XiearXiv 2018

Abstract

Modern autonomous robots require the simultaneous execution of diverse computational tasks, ranging from computer vision to deep learning and SLAM. While mobile Systems-on-Chip (SoCs) offer various hardware accelerators, effectively utilizing them remains a significant challenge. We present PIRT (Pi-RT), a runtime framework that dynamically orchestrates robotic workloads across heterogeneous hardware including CPUs, GPUs, DSPs, and the cloud. By leveraging a multi-tiered scheduler and accounting for hardware-specific overheads, PIRT enables complex autonomous navigation within a strict 11W power budget, achieving significant improvements in both latency and energy efficiency.

Introduction

Autonomous mobile robots must "see," "understand," and "locate" themselves in real-time. These tasks exhibit vastly different computational characteristics: image convolutions are highly parallel, whereas feature tracking involves complex branching logic. Modern mobile SoCs, such as the Snapdragon 820, provide a rich set of accelerators (mGPUs, DSPs), but developers often struggle to distribute tasks optimally. Consequently, applications frequently bottleneck on the CPU or a single accelerator, leading to high latency and excessive power consumption. PIRT addresses this by acting as an intelligent "traffic controller" for robotic computations.

The PIRT Framework

PIRT is built upon a comprehensive characterization of robotic workload performance across diverse hardware architectures. The framework incorporates several key components:

Multi-Tiered Scheduling

The scheduler supports three primary modes:

  1. Latency-Optimal: Minimizes individual task execution time.
  2. Throughput-Optimal: Maximizes accelerator utilization.
  3. Energy-Optimal: Prioritizes low-power units like DSPs to extend battery life.

Advanced Scheduling Logic

Beyond simple load balancing, PIRT introduces:

  • Cloud Awareness: Identifies heavy-duty, non-time-critical tasks (e.g., global map optimization) for offloading to the cloud.
  • Resource Awareness: Prioritizes tasks consuming large image buffers to optimize system memory usage.
  • Setup-Time Awareness: Accounts for the "hidden" costs of launching kernels on accelerators, particularly GPUs.

Experimental Methodology

The researchers evaluated PIRT using a representative suite of robotic workloads:

  • Computer Vision (CV): Gaussian blur, Sobel filters, Undistort, Feature Detection, and Optical Flow.
  • Deep Learning (DL): Inference using the AlexNet model.
  • SLAM: A complete visual-inertial SLAM pipeline.

Evaluations were conducted across three distinct hardware platforms: the Qualcomm Snapdragon 820 (mobile SoC), NVIDIA Jetson TX1 (GPU-focused), and DE1-SoC (FPGA-based).

Performance Characterization and Insights

A core finding of this work is that no single hardware accelerator is optimal for all robotic tasks. While GPUs excel at regular parallel patterns like convolutions, DSPs often outperform them for irregular tasks such as feature detection.

Execution time comparison across different hardware accelerators for various robotic tasks.

As shown in Figure 3, execution times vary significantly across hardware types for different kernels. For instance, while the GPU provides the lowest latency for certain parallel tasks, the FPGA or even the CPU may be more efficient for others depending on the specific algorithm.

The "Setup Tax"

A critical insight is the impact of setup overhead. For smaller kernels, the time required to prepare the accelerator and transfer data can exceed the actual computation time.

Breakdown of execution time into setup, computing, and copying phases across different hardware.

Figure 5 illustrates this "setup tax." On the GPU, the setup phase (blue) dominates the total execution time for certain tasks. PIRT mitigates this by diverting lightweight tasks to the DSP, which has significantly lower invocation overhead, thereby improving overall system responsiveness.

Key Results

Implementing PIRT on a Snapdragon 820 SoC yielded substantial performance gains:

  • Localization: Achieved 25 FPS, representing a 60% improvement over CPU-only execution.
  • Object Recognition: Realized a 3x performance gain, reaching 3 FPS.
  • Power Efficiency: The entire autonomous stack—including navigation, obstacle detection, and route planning—operated within an 11W power limit.
  • Cloud Offloading: Large-scale mapping tasks were completed in under five minutes via the cloud, compared to hours on the local mobile device.

Conclusion

PIRT demonstrates that intelligent runtime orchestration is essential for enabling complex robotic applications on power-constrained mobile hardware. Future work will focus on automating the profiling process to adapt to new workloads dynamically and exploring robust behavior under unstable network conditions for cloud-assisted tasks.

Summary updated

BibTeX
@misc{liu2018pirt,
  author = {Liu Liu and Shaoshan Liu and Zhe Zhang and Bo Yu and Jie Tang and Yuan Xie},
  title = {{PIRT: A Runtime Framework to Enable Energy-Efficient Real-Time Robotic Applications on Heterogeneous Architectures}},
  year = {2018},
  eprint = {1802.08359},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.08359},
}
Figure