易于使用的多核实时二进制程序加速
Easy-to-Use On-the-Fly Binary Program Acceleration on Many-Cores
摘要:
介绍了一种简单易用的动态二进制加速机制--二进制加速器(BAAR),旨在解决现有软件在运行时自动使用加速器的问题。BAAR基于LLVM集群基础设施,并具有客户端-服务器架构。客户端在允许程序分析和剖析的环境中运行要加速的程序。被识别为适合于可用加速器的程序部分被导出并发送到服务器。服务器为加速器优化这些程序部分,并为客户端提供RPC执行。客户机转换其程序,以便在服务器上加速执行卸载的程序部分。我们通过BAAR的概念验证实施来评估我们的工作,该实施使用英特尔至强融核5110 P作为加速目标,并对适当的程序部分执行自动卸载、并行化和向量化。BAAR现实世界的例子的实用性示出的基础上的模具代码的研究。我们的结果显示,在没有开发人员提供的任何提示的情况下,与使用优化级别为O2的Intel Xeon E5-2670机器上编译的相同代码相比,速度提高了4倍,而在有提示的情况下,速度提高了5.77倍。根据我们在实施和评估过程中获得的见解,我们概述了未来的研究方向,例如,卸载比函数更细粒度的程序部分,更复杂的通信机制或引入栈上替换。
英文摘要:
This paper introduces Binary Acceleration At Runtime (BAAR), an easy-to-use on-the-fly binary acceleration mechanism which aims to tackle the problem of enabling existent software to automatically utilize accelerators at runtime. BAAR is based on the LLVM Compiler Infrastructure and has a client-server architecture. The client runs the program to be accelerated in an environment which allows program analysis and profiling. Program parts which are identified as suitable for the available accelerator are exported and sent to the server. The server optimizes these program parts for the accelerator and provides RPC execution for the client. The client transforms its program to utilize accelerated execution on the server for offloaded program parts. We evaluate our work with a proof-of-concept implementation of BAAR that uses an Intel Xeon Phi 5110P as the acceleration target and performs automatic offloading, parallelization and vectorization of suitable program parts. The practicality of BAAR for real-world examples is shown based on a study of stencil codes. Our results show a speedup of up to 4x without any developer-provided hints and 5.77x with hints over the same code compiled with the Intel Compiler at optimization level O2 and running on an Intel Xeon E5-2670 machine. Based on our insights gained during implementation and evaluation we outline future directions of research, e.g., offloading more fine-granular program parts than functions, a more sophisticated communication mechanism or introducing on-stack-replacement.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。