arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2105.05085cs.DCcs.CR
收藏

GPUReplay:用于客户端ML的50- KB GPU堆栈

GPUReplay: A 50-KB GPU Stack for Client ML

Heejin Park, Felix Xiaozhu Lin

摘要:

GPUReplay(GR)是一种在移动和嵌入式设备上部署GPU加速计算的新方法。它解决了现代GPU堆栈的高复杂性,实现了部署的轻松性和安全性。这个想法是提前记录完整GPU堆栈上的GPU执行,并在运行时间在新输入上重放执行。我们解决了使GR可行,合理和实用的关键挑战。由此产生的播放器是原始GPU堆栈的直接替代品。它很小(50 KB的可执行文件),健壮(重播长时间的执行而不发散),可移植(在商品操作系统,TEE和裸机中运行),并且快速启动(将启动速度提高两个数量级)。我们展示了GPUReplay可与各种集成GPU硬件、GPU API、ML框架和33个神经网络(NN)实现配合使用,以进行推理或训练。该代码可在https://github.com/bakhi/GPUReplay上获得。

英文摘要:

GPUReplay (GR) is a novel way for deploying GPU-accelerated computation on mobile and embedded devices. It addresses high complexity of a modern GPU stack for deployment ease and security. The idea is to record GPU executions on the full GPU stack ahead of time and replay the executions on new input at run time. We address key challenges towards making GR feasible, sound, and practical to use. The resultant replayer is a drop-in replacement of the original GPU stack. It is tiny (50 KB of executable), robust (replaying long executions without divergence), portable (running in a commodity OS, in TEE, and baremetal), and quick to launch (speeding up startup by up to two orders of magnitude). We show that GPUReplay works with a variety of integrated GPU hardware, GPU APIs, ML frameworks, and 33 neural network (NN) implementations for inference or training. The code is available at https://github.com/bakhi/GPUReplay.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑