CUDA programs for the GPU computing of the Swendsen-Wang multi-cluster spin flip algorithm: 2D and 3D Ising, Potts, and XY models

被引:14
作者
Komura, Yukihiro [1 ,2 ]
Okabe, Yutaka [2 ]
机构
[1] Japan Atom Energy Agcy, Nucl Sci & Engn Directorate, Tokai, Ibaraki 3191195, Japan
[2] Tokyo Metropolitan Univ, Dept Phys, Hachioji, Tokyo 1920397, Japan
基金
日本学术振兴会;
关键词
Monte Carlo simulation; Cluster algorithm; Ising model; XY model; Parallel computing; GPU; SIMULATIONS;
D O I
10.1016/j.cpc.2013.10.029
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
We present sample CUDA programs for the GPU computing of the Swendsen-Wang multi-cluster spin flip algorithm. We deal with the classical spin models; the lsing model, the q-state Potts model, and the classical XY model. As for the lattice, both the 20 (square) lattice and the 3D (simple cubic) lattice are treated. We already reported the idea of the CPU implementation for 2D models (Komura and Okabe, 2012). We here explain the details of sample programs, and discuss the performance of the present CPU implementation for the 3D Ising and XY models. We also show the calculated results of the moment ratio for these models, and discuss phase transitions. Program summary Program title: SWspin Catalogue identifier: AERM_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AERM_v1_0.html Program obtainable from: CPC Program Library, Queen's University, Belfast, N. Ireland Licensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 5632 No. of bytes in distributed program, including test data, etc.: 14688 Distribution format: tar.gz Programming language: C, CUDA. Computer: System with an NVIDIA CUDA enabled CPU. Operating system: System with an NVID1A CUDA enabled CPU. Classification: 23. External routines: NVIDIA CUDA Toolkit 3.0 or newer Nature of problem: Monte Carlo simulation of classical spin systems. Ising, q-state Potts model, and the classical XY model are treated for both two-dimensional and three-dimensional lattices. Solution method: GPU-based Swendsen-Wang multi-cluster spin flip Monte Carlo method. The CUDA implementation for the cluster-labeling is based on the work by Hawick et al. [1] and that by Kalentev et al. 121. Restrictions: The system size is limited depending on the memory of a CPU. Running time: For the parameters used in the sample programs, it takes about a minute for each program. Of course, it depends on the system size, the number of Monte Carlo steps, etc. References: [1] K.A. Hawick, A. Leist, and D. P. Playne, Parallel Computing 36 (2010) 655-678 [2] O. Kalentev, A. Rai, S. Kemnitzb, and R. Schneider, J. Parallel Distrib. Comput. 71 (2011) 615-620 (C) 2013 Elsevier B.V. All rights reserved.
引用
收藏
页码:1038 / 1043
页数:6
相关论文
共 23 条
[1]   FINITE SIZE SCALING ANALYSIS OF ISING-MODEL BLOCK DISTRIBUTION-FUNCTIONS [J].
BINDER, K .
ZEITSCHRIFT FUR PHYSIK B-CONDENSED MATTER, 1981, 43 (02) :119-140
[2]   Computer simulations of the Ising Model on Graphics Processing Units [J].
Block, B. J. ;
Preis, T. .
EUROPEAN PHYSICAL JOURNAL-SPECIAL TOPICS, 2012, 210 (01) :133-145
[3]   Multi-GPU accelerated multi-spin Monte Carlo simulations of the 2D Ising model [J].
Block, Benjamin ;
Virnau, Peter ;
Preis, Tobias .
COMPUTER PHYSICS COMMUNICATIONS, 2010, 181 (09) :1549-1556
[4]   ISING UNIVERSALITY IN 3 DIMENSIONS - A MONTE-CARLO STUDY [J].
BLOTE, HWJ ;
LUIJTEN, E ;
HERINGA, JR .
JOURNAL OF PHYSICS A-MATHEMATICAL AND GENERAL, 1995, 28 (22) :6289-6313
[5]   CRITICAL EXPONENTS OF THE 3-DIMENSIONAL CLASSICAL PLANE-ROTATOR MODEL ON THE SC LATTICE FROM A HIGH-TEMPERATURE-SERIES ANALYSIS [J].
BUTERA, P ;
COMI, M ;
GUTTMANN, AJ .
PHYSICAL REVIEW B, 1993, 48 (18) :13987-13990
[6]  
Cormen TH., 2009, Introduction to Algorithms, V3
[7]   CRITICAL-BEHAVIOR OF THE 3-DIMENSIONAL ISING-MODEL - A HIGH-RESOLUTION MONTE-CARLO STUDY [J].
FERRENBERG, AM ;
LANDAU, DP .
PHYSICAL REVIEW B, 1991, 44 (10) :5081-5091
[8]  
Fisher M. E., 1971, CRIT PHEN P INT SCH, P1
[9]  
Gottlob A. P., 1993, Nuclear Physics B, Proceedings Supplements, V30, P838, DOI 10.1016/0920-5632(93)90338-7
[10]   Parallel graph component labelling with GPUs and CUDA [J].
Hawick, K. A. ;
Leist, A. ;
Playne, D. P. .
PARALLEL COMPUTING, 2010, 36 (12) :655-678