TURNIP:一种具有CPU RAM卸载能力的“非确定性”GPU运行时
TURNIP: A "Nondeterministic" GPU Runtime with CPU RAM Offload
AI总结:
本文提出TURNIP系统,通过将AI计算编译为依赖图并在运行时根据实时事件动态选择操作顺序,解决CPU卸载中内存传输的非确定性问题,从而在利用CPU RAM扩展存储的同时避免计算阻塞。
摘要:
缓解基于GPU的AI计算中内存困难的一个显而易见的办法是通过CPU卸载,即数据在GPU和CPU RAM之间移动,从而利用廉价的CPU RAM来增加可用存储量。虽然CPU卸载是一个显而易见的想法,但由于CPU RAM和GPU RAM之间的传输速率相对较慢,它可能极大地减慢计算速度。因此,任何用于CPU卸载的系统都需要确保当这种传输需要发生时,没有计算会被阻塞以等待传输完成。使用CPU卸载时的一个关键挑战是,内存传输会给系统引入非确定性:在运行之前不可能知道传输何时完成,因此也不知道运行操作的最佳顺序是什么,以确保没有阻塞。在本文中,我们描述了TURNIP,这是一个使用CPU卸载来运行AI计算的系统。TURNIP的关键创新在于将AI计算编译成一个依赖图,该依赖图赋予TURNIP运行时以多种不同顺序运行操作(如GPU内核调用)的自由;在运行时,TURNIP根据实时事件选择最佳顺序。
英文摘要:
An obvious way to alleviate memory difficulties in GPU-based AI computing is via CPU offload, where data are moved between GPU and CPU RAM, so inexpensive CPU RAM is used to increase the amount of storage available. While CPU offload is an obvious idea, it can greatly slow down a computation, due to the relatively slow transfer rate between CPU RAM and GPU RAM. Thus, any system for CPU offload needs to ensure that when such a transfer needs to happen, no computation is blocked waiting for the transfer to finish. One of the key challenges when using CPU offload is that memory transfers introduce nondeterminacy into the system: it is not possible to know before runtime when the transfers will finish, and hence what is the best order of operations to run to ensure there is no blocking. In this paper, we describe TURNIP, which is a system for running AI computations using CPU offload. The key innovation in TURNIP is the compilation of the AI computation into a dependency graph that gives the TURNIP runtime freedom to run operations such as GPU kernel calls in many different orders; at runtime, TURNIP chooses the best order in response to real-time events.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。