arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1811.04384physics.comp-ph
收藏

基于MPI和C++的二维正方形伊辛模型多自旋蒙特卡罗模拟的简化与实现

Parallelization and implementation of multi-spin Monte Carlo simulation of 2D square Ising model using MPI and C++

Dariush Hassani, Shahnoosh Rafibakhsh

摘要:

在本文中,我们提出了一个并行算法的蒙特卡罗模拟的二维伊辛模型上执行有效的集群计算机使用MPI。我们用C++语言实现了该算法。在我们的算法中,每个过程创建一个子晶格,并在每次Monte Carlo迭代后计算能量。每个进程在作业期间与其两个邻居进程进行通信,并交换边界旋转变量。最后,用映射约化法计算了晶格的总能量随温度的变化。我们使用多自旋编码技术来减少进程间的通信。该算法在设计时考虑了负载均衡的问题,具有良好的可扩展性。该方案已在等离子体物理研究中心的集群计算机上实现,该集群计算机包括9个节点,每个节点由两个四核CPU组成。我们的结果表明,该算法是更有效的大格和更多的迭代。

英文摘要:

In this paper, we present a parallel algorithm for Monte Carlo simulation of the 2D Ising Model to perform efficiently on a cluster computer using MPI. We use C++ programming language to implement the algorithm. In our algorithm, every process creates a sub-lattice and the energy is calculated after each Monte Carlo iteration. Each process communicates with its two neighbor processes during the job and they exchange the boundary spin variables. Finally, the total energy of lattice is calculated by map-reduce method versus the temperature. We use multi-spin coding technique to reduce the interprocess communications. This algorithm has been designed in a way that an appropriate load-balancing exists and it benefits a good scalability. It has been executed on the cluster computer of Plasma Physics Research Center which includes 9 nodes and each node consists of two quad-core CPUs. Our results show that this algorithm is more efficient for large lattices and more iterations.

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

↑