RTGPU:细粒度硬时限并行任务的实时的GPU调度
RTGPU: Real-Time GPU Scheduling of Hard Deadline Parallel Tasks with Fine-Grain Utilization
摘要:
许多新兴的网络物理系统,如自动驾驶汽车和机器人,严重依赖人工智能和机器学习算法来执行重要的系统操作。由于这些高度并行的应用程序是计算密集型的,它们需要由图形处理单元(GPU)加速以满足严格的时序约束。然而,尽管GPU被广泛采用,但在提供严格的实时的保证的同时有效地调度多个GPU应用仍然是一个挑战。在本文中,我们提出了RTGPU,它可以调度多个GPU应用程序的执行在实时的,以满足硬期限。每个GPU应用程序可以有多个CPU执行和内存复制段,以及GPU内核。我们从一个模型开始,明确说明这些应用程序的CPU和内存复制段。然后,我们考虑GPU架构中的GPU内核的精确定时模型的发展,并利用称为持久线程的技术来实现细粒度的内核调度,通过交错执行提高性能。接下来,我们提出了一种通用的方法,用于实时的调度并行GPU应用程序。最后,调度多个并行GPU应用程序,我们提出了一个实用实时的调度算法的基础上联合调度和网格搜索(GPU内核段)与单处理器固定优先级调度(多CPU和内存复制段)。通过在一个真实的NVIDIA GTX 1080 Ti GPU系统上的全面验证和评估,我们的方法提供了比以前工作更好的可扩展性,并为满足多个GPU应用的硬性期限提供了实时的保证。
英文摘要:
Many emerging cyber-physical systems, such as autonomous vehicles and robots, rely heavily on artificial intelligence and machine learning algorithms to perform important system operations. Since these highly parallel applications are computationally intensive, they need to be accelerated by graphics processing units (GPUs) to meet stringent timing constraints. However, despite the wide adoption of GPUs, efficiently scheduling multiple GPU applications while providing rigorous real-time guarantees remains a challenge. In this paper, we propose RTGPU, which can schedule the execution of multiple GPU applications in real-time to meet hard deadlines. Each GPU application can have multiple CPU execution and memory copy segments, as well as GPU kernels. We start with a model to explicitly account for the CPU and memory copy segments of these applications. We then consider the GPU architecture in the development of a precise timing model for the GPU kernels and leverage a technique known as persistent threads to implement fine-grained kernel scheduling with improved performance through interleaved execution. Next, we propose a general method for scheduling parallel GPU applications in real time. Finally, to schedule multiple parallel GPU applications, we propose a practical real-time scheduling algorithm based on federated scheduling and grid search (for GPU kernel segments) with uniprocessor fixed priority scheduling (for multiple CPU and memory copy segments). Our approach provides superior schedulability compared with previous work, and gives real-time guarantees to meet hard deadlines for multiple GPU applications according to comprehensive validation and evaluation on a real NVIDIA GTX1080Ti GPU system.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。