arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1411.0127cond-mat.dis-nnphysics.comp-ph
收藏

在单GPU和多GPU系统上对3D Ising自旋玻璃进行高度优化的模拟

Highly optimized simulations on single- and multi-GPU systems of 3D Ising spin glass

Matteo Lulli, Massimo Bernaschi, Giorgio Parisi

摘要:

我们提出了一个高度优化的实现的Monte Carlo(MC)模拟器的三维伊辛自旋玻璃模型与双峰无序,即,在支持CUDA的GPU上运行的3D Edwards-Anderson模型。多GPU系统通过消息传递接口(MPI)交换数据。所选择的MC动力学是经典的大都会,这是纯粹的耗散,因为目的是研究系统的临界非平衡松弛。我们专注于以下问题:i)在立方体模板中实现最近邻居的有效访问模式,以及滞后Fibonacci类伪随机数生成器(PRNG); ii)异步多自旋编码Metropolis MC步骤的新实现,允许存储每比特一个自旋; iii)基于MPI和CUDA流组合的多GPU版本。我们强调如何立方stenetrance和PRNG是非常普遍的兴趣,因为它们在许多模拟代码中的广泛使用的两个主题。我们的代码在GTX Titan上的最佳性能分别为~3和~5 psFlip,分别使用我们的MINSTD和MT 19937实现。

英文摘要:

We present a highly optimized implementation of a Monte Carlo (MC) simulator for the three-dimensional Ising spin-glass model with bimodal disorder, i.e., the 3D Edwards-Anderson model running on CUDA enabled GPUs. Multi-GPU systems exchange data by means of the Message Passing Interface (MPI). The chosen MC dynamics is the classic Metropolis one, which is purely dissipative, since the aim was the study of the critical off-equilibrium relaxation of the system. We focused on the following issues: i) the implementation of efficient access patterns for nearest neighbours in a cubic stencil and for lagged-Fibonacci-like pseudo-Random Numbers Generators (PRNGs); ii) a novel implementation of the asynchronous multispin-coding Metropolis MC step allowing to store one spin per bit and iii) a multi-GPU version based on a combination of MPI and CUDA streams. We highlight how cubic stencils and PRNGs are two subjects of very general interest because of their widespread use in many simulation codes. Our code best performances ~3 and ~5 psFlip on a GTX Titan with our implementations of the MINSTD and MT19937 respectively.

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

↑