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

使用GPGPU提高Java性能

Boosting Java Performance using GPGPUs

James Clarkson, Christos Kotselidis, Gavin Brown, Mikel Luján

摘要:

异构编程已经开始成为规范,以便通过在最合适的硬件资源上运行部分代码来实现更好的性能。目前,为了使现有的程序设计语言能够主要在GPU上执行异构执行,进行了大量的工程工作。在本文中,我们描述了Jacc,一个实验框架,允许开发人员直接从Java编程GPGPU。通过使用Jacc框架,开发人员能够以最少的代码重构将GPGPU支持添加到他们的应用程序中。为了简化GPGPU应用程序的开发,我们允许开发人员使用两个关键的抽象来建模异构代码:\textit{tasks},它封装了在GPGPU上执行代码所需的所有信息;以及\textit{task graphs},它捕获应用程序的任务间控制流。利用这些信息,Jacc运行时能够自动处理主机和GPGPU之间的数据移动和同步;消除了显式管理不同内存空间的需要。为了生成高度并行的GPGPU代码,Jacc为开发人员提供了使用注释装饰代码关键方面的能力。编译器反过来利用这些信息来自动生成代码,而不需要额外的代码重构。最后,我们展示了Jacc的优势,无论是在可编程性和性能方面,通过评估它对现有的Java框架。实验结果显示,在NVIDIA Tesla K20 m GPU上进行的八个评估基准测试中,平均性能加速为32倍,代码减少了4.4倍。

英文摘要:

Heterogeneous programming has started becoming the norm in order to achieve better performance by running portions of code on the most appropriate hardware resource. Currently, significant engineering efforts are undertaken in order to enable existing programming languages to perform heterogeneous execution mainly on GPUs. In this paper we describe Jacc, an experimental framework which allows developers to program GPGPUs directly from Java. By using the Jacc framework, developers have the ability to add GPGPU support into their applications with minimal code refactoring. To simplify the development of GPGPU applications we allow developers to model heterogeneous code using two key abstractions: \textit{tasks}, which encapsulate all the information needed to execute code on a GPGPU; and \textit{task graphs}, which capture the inter-task control-flow of the application. Using this information the Jacc runtime is able to automatically handle data movement and synchronization between the host and the GPGPU; eliminating the need for explicitly managing disparate memory spaces. In order to generate highly parallel GPGPU code, Jacc provides developers with the ability to decorate key aspects of their code using annotations. The compiler, in turn, exploits this information in order to automatically generate code without requiring additional code refactoring. Finally, we demonstrate the advantages of Jacc, both in terms of programmability and performance, by evaluating it against existing Java frameworks. Experimental results show an average performance speedup of 32x and a 4.4x code decrease across eight evaluated benchmarks on a NVIDIA Tesla K20m GPU.

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

↑