arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1408.5925hep-latcs.MSphysics.comp-ph
收藏

基于GPU的格点量子色动力学计算框架

A Framework for Lattice QCD Calculations on GPUs

F. T. Winter, M. A. Clark, R. G. Edwards, B. Joó

摘要:

配备有加速器(如GPU)的计算平台已被证明可提供强大的计算能力。然而,利用这些平台用于现有的科学应用并不是一项微不足道的任务。目前的GPU编程框架,如CUDA C/C++,需要开发人员进行低级编程,以实现高性能代码。因此,将应用程序移植到GPU上通常仅限于时间主导的算法和例程,而其余的则没有加速,这可能会引发严重的Amdahl定律问题。格点量子色动力学应用程序Chroma允许探索不同的移植策略。软件体系结构的分层结构在逻辑上将数据并行与应用层分离。QCD数据并行软件层提供数据类型和表达式,具有适合于格场论的模板式操作,Chroma根据该高级接口实现算法。因此,通过移植底层,可以有效地将整个应用程序一次性迁移到不同的平台。QDP-JIT/PTX库是底层的重新实现,为CUDA体系结构的格点量子色动力学计算提供了一个框架。支持完整的软件接口,因此应用程序可以在基于GPU的并行计算机上运行。由于JIT编译器(NVIDIA Linux内核驱动程序的一部分)的可用性,这种重新实现是可能的,它将类汇编语言(PTX)转换为GPU代码。表达式模板技术用于构建PTX代码生成器,软件缓存管理GPU内存。这种重新实现使我们能够在基于GPU的大型机器(例如Titan和Blue Waters)上部署具有动态费米子的完整规范生成程序的有效实现,从而将算法加速了一个数量级以上。

英文摘要:

Computing platforms equipped with accelerators like GPUs have proven to provide great computational power. However, exploiting such platforms for existing scientific applications is not a trivial task. Current GPU programming frameworks such as CUDA C/C++ require low-level programming from the developer in order to achieve high performance code. As a result porting of applications to GPUs is typically limited to time-dominant algorithms and routines, leaving the remainder not accelerated which can open a serious Amdahl's law issue. The lattice QCD application Chroma allows to explore a different porting strategy. The layered structure of the software architecture logically separates the data-parallel from the application layer. The QCD Data-Parallel software layer provides data types and expressions with stencil-like operations suitable for lattice field theory and Chroma implements algorithms in terms of this high-level interface. Thus by porting the low-level layer one can effectively move the whole application in one swing to a different platform. The QDP-JIT/PTX library, the reimplementation of the low-level layer, provides a framework for lattice QCD calculations for the CUDA architecture. The complete software interface is supported and thus applications can be run unaltered on GPU-based parallel computers. This reimplementation was possible due to the availability of a JIT compiler (part of the NVIDIA Linux kernel driver) which translates an assembly-like language (PTX) to GPU code. The expression template technique is used to build PTX code generators and a software cache manages the GPU memory. This reimplementation allows us to deploy an efficient implementation of the full gauge-generation program with dynamical fermions on large-scale GPU-based machines such as Titan and Blue Waters which accelerates the algorithm by more than an order of magnitude.

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

↑