一个用于速记计算的通用程序库
A Generic Library for Stencil Computations
摘要:
在这个计算机体系结构多样化和异构化的时代,可编程性问题,如生产率和可移植性效率,对软件开发和算法设计至关重要。解决这个问题的一种方法是远离传统的顺序程序设计语言,转向特定于领域的编程环境,以在表达性和效率之间取得平衡。为了证明这一原则,我们开发了一个特定领域的C++通用库模板计算,如PDE求解器。该库具有高层次的结构,以指定计算,并允许开发并行模板计算非常有限的努力。高抽象构造(如do_all和do_reduce)使程序更短、更清晰,并增加了上下文信息,以实现更好的性能利用。结果显示,从Windows多核到HPC集群和具有加速器(如GPU)的机器,性能都很好。
英文摘要:
In this era of diverse and heterogeneous computer architectures, the programmability issues, such as productivity and portable efficiency, are crucial to software development and algorithm design. One way to approach the problem is to step away from traditional sequential programming languages and move toward domain specific programming environments to balance between expressivity and efficiency. In order to demonstrate this principle, we developed a domain specific C++ generic library for stencil computations, like PDE solvers. The library features high level constructs to specify computation and allows the development of parallel stencil computations with very limited effort. The high abstraction constructs (like do_all and do_reduce) make the program shorter and cleaner with increased contextual information for better performance exploitation. The results show good performance from Windows multicores, to HPC clusters and machines with accelerators, like GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。