Abstract
Worst Case Execution Time (WCET) estimation of software running on parallel platforms is a challenging task due to resource interference and hardware complexity. This paper employs Measurement Based Probabilistic Timing Analysis (MBPTA) enabled by software randomization on both CPUs and GPUs. We demonstrate this on a pedestrian detection use case using the NVIDIA Xavier platform and extend the method to predict worst-case power consumption.
Introduction
In safety-critical automotive systems, ensuring predictable performance is paramount. Unlike general-purpose computing where average performance is the primary metric, autonomous driving requires guaranteed bounds on execution time to ensure safety-critical tasks, such as pedestrian detection, complete within strict deadlines.
Modern heterogeneous platforms like the NVIDIA Jetson Xavier introduce significant complexity. Multicore CPUs and GPUs share critical resources like caches and memory buses, leading to "resource interference." Traditional static analysis is often impossible due to the proprietary nature of hardware documentation. This research addresses the challenge of providing reliable, probabilistic bounds for both timing and power consumption on these "black box" platforms.
Methodology and Experimental Setup
The core of this approach is Measurement-Based Probabilistic Timing Analysis (MBPTA), which utilizes Extreme Value Theory (EVT) to model the tail of execution time distributions. To satisfy the statistical requirements of EVT—specifically that observations are independent and identically distributed (i.i.d.)—the researchers implemented Toolchain Agnostic Software Randomisation (TASA).
TASA operates at the source-code level, randomly shuffling memory locations of functions and variables. This forces hardware behaviors like cache conflicts to occur randomly, allowing for a statistical exploration of the execution space. Notably, this study marks the first successful application of software randomization to CUDA and GPUs, bypassing the limitations of proprietary compilers.
The study utilizes a pedestrian detection benchmark based on the Viola-Jones algorithm. While deep learning is common, Viola-Jones remains a baseline for functional safety due to its explainability. The experiments were conducted under two primary contention scenarios:
- Fully Time Composable (FTC): Maximum interference created by running stress benchmarks on all other cores.
- Partial Time Composable (PTC): Realistic interference where middleware monitors and limits contention from other partitions.
Results and Discussion
The application of MBPTA provided significantly tighter bounds than traditional conservative estimates. In the FTC scenario, the maximum observed execution time was approximately 4.2x higher than the isolated baseline. However, the PTC approach yielded a 52% improvement in the WCET estimate compared to theoretical maximum contention.
Beyond timing, the probabilistic method was applied to power consumption. While the NVIDIA Xavier has a Thermal Design Power (TDP) of 30W, the EVT-based model predicted a worst-case power consumption of only 15W per frame. This 2x improvement over manufacturer limits suggests that automotive cooling systems could be designed more efficiently without sacrificing safety.
Statistical validity was confirmed through 500 randomizations and 2,000 experiments, passing Box-Ljung and Kolmogorov-Smirnov tests. This proves that source-level randomization effectively "opens" the hardware black box for statistical modeling.
Conclusion and Future Work
This research demonstrates that software randomization is a viable path for certifying complex parallel hardware in automotive applications. By providing tighter, probabilistic bounds for WCET and power, developers can avoid massive hardware over-provisioning.
Current limitations include TASA's support being restricted to the C subset of CUDA. Future work will focus on expanding support for complex C++ features in CUDA and validating the methodology across a broader range of automotive workloads.
Summary updated