基于OpenACC的可移植LQCD蒙特卡罗程序的设计与优化
Design and optimization of a portable LQCD Monte Carlo code using OpenACC
摘要:
HPC架构的当前全景是极其异构的,从传统的多核CPU处理器,支持广泛的应用程序,但提供中等的计算性能,到众核GPU,利用积极的数据并行性,并为流计算应用程序提供更高的性能。在这种情况下,代码可移植性(和性能可移植性)成为应用程序易于维护的必要条件;这在科学计算中非常重要,因为代码更改非常频繁,使不同代码版本保持一致变得繁琐且容易出错。在这项工作中,我们提出了一个国家的最先进的生产级LQCD蒙特卡罗应用程序的设计和优化,使用基于指令的OpenACC编程模型。OpenACC将并行编程抽象到描述性级别,使程序员不必指定代码应如何映射到目标体系结构。我们描述了完全用OpenACC编写的代码的实现,并表明我们能够用相同的代码针对几种不同的架构,包括最先进的传统CPU和GPU。我们还测量性能,评估OpenACC代码在多种架构上的计算效率,与特定于GPU的实现进行比较,并表明可以达到良好的性能可移植性水平。
英文摘要:
The present panorama of HPC architectures is extremely heterogeneous, ranging from traditional multi-core CPU processors, supporting a wide class of applications but delivering moderate computing performance, to many-core GPUs, exploiting aggressive data-parallelism and delivering higher performances for streaming computing applications. In this scenario, code portability (and performance portability) become necessary for easy maintainability of applications; this is very relevant in scientific computing where code changes are very frequent, making it tedious and prone to error to keep different code versions aligned. In this work we present the design and optimization of a state-of-the-art production-level LQCD Monte Carlo application, using the directive-based OpenACC programming model. OpenACC abstracts parallel programming to a descriptive level, relieving programmers from specifying how codes should be mapped onto the target architecture. We describe the implementation of a code fully written in OpenACC, and show that we are able to target several different architectures, including state-of-the-art traditional CPUs and GPUs, with the same code. We also measure performance, evaluating the computing efficiency of our OpenACC code on several architectures, comparing with GPU-specific implementations and showing that a good level of performance-portability can be reached.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。