Multi-GPU accelerated multi-spin Monte Carlo simulations of the 2D Ising model
Abstract
A Modern Graphics Processing unit (GPU) is able to perform massively parallel scientific computations at low cost. We extend our implementation of the checkerboard algorithm for the two-dimensional Ising model [T. Preis et al., Journal of Chemical Physics 228 (2009) 4468-4477] in order to overcome the memory limitations of a single GPU which enables us to simulate significantly larger systems. Using multi-spin coding techniques, we are able to accelerate simulations on a single GPU by factors up to 35 compared to an optimized single Central Processor Unit (CPU) core implementation which employs multi-spin coding. By combining the Compute Unified Device Architecture (CUDA) with the Message Parsing Interface (MPI) on the CPU level, a single Ising lattice can be updated by a cluster of GPUs in parallel. For large systems, the computation time scales nearly linearly with the number of GPUs used. As proof of concept we reproduce the critical temperature of the 2D Ising model using finite size scaling techniques.
- Publication:
-
Computer Physics Communications
- Pub Date:
- September 2010
- DOI:
- 10.1016/j.cpc.2010.05.005
- arXiv:
- arXiv:1007.3726
- Bibcode:
- 2010CoPhC.181.1549B
- Keywords:
-
- Physics - Computational Physics;
- Computer Science - Graphics;
- Mathematical Physics
- E-Print:
- Benjamin Block, Peter Virnau, Tobias Preis, Computer Physics Communications 181 (2010) 1549-1556