arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1408.1727cs.MScs.CEcs.DCphysics.comp-phphysics.flu-dyn
收藏

英特尔MIC架构上浅水方程求解器的高级调整

Cluster-level tuning of a shallow water equation solver on the Intel MIC architecture

Andrey Vladimirov, Cliff Addison

摘要:

本文演示了在启用英特尔至强融核协处理器的群集上优化混合型OpenMP+MPI计算流体动力学代码(浅水方程求解器)的执行环境。讨论内容包括:(1)控制OpenMP线程的数量和亲和性,以优化对内存带宽的访问;(2)调整OpenMP和MPI的互操作,以划分问题,实现更好的数据局部性;(3)以将一些流量引导到更快的通信通道的方式对MPI等级进行排序;(4)在基于InfiniBand结构的Xeon Phi协处理器之间使用高效的对等通信。通过调整,该应用程序在2个计算节点中并行扩展到8个英特尔至强融核协处理器时的效率为90%。对于更大的问题,可扩展性甚至更好,因为更大的计算通信比。然而,这种大小的问题不适合一个协处理器的存储器。在一个英特尔至强融核协处理器7120 P上的求解器性能超过双插槽英特尔至强E5-2697 v2 CPU上的性能1.6倍。在每个计算节点具有4个协处理器的2节点集群中,MIC架构产生的性能是CPU的5.8倍。只需更改一行遗留Fortran代码,就可以在MIC体系结构上实现报告的性能(不包括命令行界面的更改)。本文讨论的方法是直接适用于其他带宽限制模板算法,利用混合的OpenMP+MPI的方法。

英文摘要:

The paper demonstrates the optimization of the execution environment of a hybrid OpenMP+MPI computational fluid dynamics code (shallow water equation solver) on a cluster enabled with Intel Xeon Phi coprocessors. The discussion includes: (1) Controlling the number and affinity of OpenMP threads to optimize access to memory bandwidth; (2) Tuning the inter-operation of OpenMP and MPI to partition the problem for better data locality; (3) Ordering the MPI ranks in a way that directs some of the traffic into faster communication channels; (4) Using efficient peer-to-peer communication between Xeon Phi coprocessors based on the InfiniBand fabric. With tuning, the application has 90% percent efficiency of parallel scaling up to 8 Intel Xeon Phi coprocessors in 2 compute nodes. For larger problems, scalability is even better, because of the greater computation to communication ratio. However, problems of that size do not fit in the memory of one coprocessor. The performance of the solver on one Intel Xeon Phi coprocessor 7120P exceeds the performance on a dual-socket Intel Xeon E5-2697 v2 CPU by a factor of 1.6x. In a 2-node cluster with 4 coprocessors per compute node, the MIC architecture yields 5.8x more performance than the CPUs. Only one line of legacy Fortran code had to be changed in order to achieve the reported performance on the MIC architecture (not counting changes to the command-line interface). The methodology discussed in this paper is directly applicable to other bandwidth-bound stencil algorithms utilizing a hybrid OpenMP+MPI approach.

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

↑