An introduction to multi-GPU programming for physicists
1 Istituto per le Applicazioni del Calcolo, National Research Council of Italy
2 NVIDIA Corporation
a e-mail: email@example.com
Revised: 25 June 2012
Published online: 6 September 2012
We present and compare different approaches for using multiple Graphics Processing Units in the simulation of physical systems. As benchmarks we consider the time required to update a single spin of the 3D Heisenberg spin glass model, by using both the Over-relaxation and the Heat Bath algorithms, and the solution of a Poisson equation by using a finite-difference method. The results show that a suitable combination of techniques allows to hide almost completely the communication overhead by using the CPU as a communication coprocessor of the GPU. Large scale simulations on clusters of GPUs can be efficiently carried out by following the same approach for other applications where a clear cut exists between bulk and boundaries data.
© EDP Sciences, Springer-Verlag, 2012