Tersoff多体势:通过矢量化实现可持续性能
The Tersoff many-body potential: Sustainable performance through vectorization
摘要:
分子动力学通过模拟每个粒子的轨迹来模拟材料。多体势导致更精确的轨迹模拟,并用于材料科学和计算化学。我们在一系列向量指令集上展示了一个多体潜力的优化结果,目标是CPU和加速器,如英特尔至强融核。MD模拟的矢量化已经得到了很好的研究;相比之下,矢量化相对来说还没有被探索过。鉴于现代矢量单元的流行和强大,开发它们对于高性能软件来说是必不可少的。当在高度并行的机器上运行时,标量性能的任何改进都可以节省数百或数千个核心小时。矢量化已经普遍用于优化或对势;多体势提出了新的,独特的挑战。事实上,它们的优化突破了当前编译器的界限,迫使我们现在使用显式向量化技术。在这项研究中,我们添加了一个优化的实施Tersoff势的LAMMPS分子动力学模拟包。为了减轻显式向量化的负担,我们从特定的向量指令集和所需的精度中抽象出来:从一个算法中,我们可以获得适用于多种平台的优化实现,从SSE 4.2到AVX 512,再到英特尔至强融核。我们比较不同架构的内核,并确定合适的架构相关的参数。我们的优化使任何架构受益,但对英特尔至强融核的影响不成比例,优化后的CPU(2xE 5 -2650)优于英特尔至强融核。
英文摘要:
Molecular dynamics models materials by simulating each individual particle's trajectory. Many-body potentials lead to a more accurate trajectory simulation, and are used in materials science and computational chemistry. We present optimization results for one multi-body potential on a range of vector instruction sets, targeting both CPUs and accelerators like the Intel Xeon Phi. Parallelization of MD simulations is well-studied; by contrast, vectorization is relatively unexplored. Given the prevalence and power of modern vector units, exploiting them is imperative for high performance software. When running on a highly parallel machine, any improvement to the scalar performance is paid back in hundreds or thousands of saved core hours. Vectorization is already commonly used in the optimization or pair potentials; multi-body potentials pose new, unique challenges. Indeed, their optimization pushes the boundaries of current compilers, forcing us to use explicit vectorization techniques for now. In this study, we add an optimized implementation of Tersoff potential to the LAMMPS molecular dynamics simulation package. To reduce the burden of explicit vectorization, we abstract from the specific vector instruction set and desired precision: From one algorithm, we get optimized implementations for many platforms, from SSE4.2 to AVX512, and the Intel Xeon Phi. We compare the kernels across different architectures, and determine suitable architecture-dependent parameters. Our optimizations benefit any architecture, but have a disproportionate effect on the Intel Xeon Phi, which beats the CPU (2xE5-2650) after optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。