供应商指导下的有效GPU共享
Effective GPU Sharing Under Compiler Guidance
摘要:
现代计算平台倾向于在单个节点上部署多个GPU(2个、4个或更多)以提高系统性能,每个GPU都具有大容量的全局内存和流式多处理器(SM)。GPU是一种昂贵的资源,提高GPU的利用率而不会导致单个工作负载的性能下降是一个重要且具有挑战性的问题。虽然像MPS这样的服务支持在单个设备上同时执行多个合作内核,但它们并不能解决不合作内核的上述问题,MPS不关心每个内核的资源需求。我们提出了一个完全自动化的编译器辅助调度框架。编译器通过识别内核启动及其相关的GPU操作(例如内存分配)来构建GPU任务。对于每个GPU任务,探测器在其启动点之前的主机端代码中进行检测。在运行时,探测器将关于任务的资源要求(例如,存储器和计算核)的信息传送到调度器,使得调度器可以以存储器安全、资源感知的方式基于任务的资源要求和设备的负载将任务放置在适当的设备上。为了证明其优势,我们基于该框架原型化了一个面向吞吐量的调度器,并在NVIDIA GPU上使用Rodinia基准套件和Darknet神经网络框架对其进行了评估。结果表明,所提出的解决方案优于现有的国家的最先进的解决方案,利用其知识的应用程序的多个资源需求,其中包括内存以及SM。它将Rodinia基准测试的吞吐量提高了2.5倍,将Darknet神经网络的吞吐量提高了2.7倍。此外,它将作业周转时间提高了4.9倍,并将单个内核的性能下降限制在最多2.5%。
英文摘要:
Modern computing platforms tend to deploy multiple GPUs (2, 4, or more) on a single node to boost system performance, with each GPU having a large capacity of global memory and streaming multiprocessors (SMs). GPUs are an expensive resource, and boosting utilization of GPUs without causing performance degradation of individual workloads is an important and challenging problem. Although services like MPS support simultaneous execution of multiple co-operative kernels on a single device, they do not solve the above problem for uncooperative kernels, MPS being oblivious to the resource needs of each kernel. We propose a fully automated compiler-assisted scheduling framework. The compiler constructs GPU tasks by identifying kernel launches and their related GPU operations (e.g. memory allocations). For each GPU task, a probe is instrumented in the host-side code right before its launch point. At runtime, the probe conveys the information about the task's resource requirements (e.g. memory and compute cores) to a scheduler, such that the scheduler can place the task on an appropriate device based on the task's resource requirements and devices' load in a memory-safe, resource-aware manner. To demonstrate its advantages, we prototyped a throughput-oriented scheduler based on the framework, and evaluated it with the Rodinia benchmark suite and the Darknet neural network framework on NVIDIA GPUs. The results show that the proposed solution outperforms existing state-of-the-art solutions by leveraging its knowledge about applications' multiple resource requirements, which include memory as well as SMs. It improves throughput by up to 2.5x for Rodinia benchmarks, and up to 2.7x for Darknet neural networks. In addition, it improves job turnaround time by up to 4.9x, and limits individual kernel performance degradation to at most 2.5%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。