In this paper, a novel implementation of the distributed 3D Fast Fourier Transform (FFT) on a multi-GPU platform using CUDA is presented. The 3D FFT is the core of many simulation methods, thus its fast calculation is critical. The main bottleneck of the distributed 3D FFT is the global data exchange which must be performed. The latest version of CUDA introduces direct GPU-to-GPU transfers using a Unified Virtual Address space (UVA) that provides new possibilities for optimising the communication part of the FFT. Here, we propose different implementations of the distributed 3D FFT, investigate their behaviour, and compare their performance with the single GPU CUFFT and CPU-based FFTW libraries. In particular, we demonstrate the advantage of direct GPU-to-GPU transfers over data exchanges via host main memory. Our preliminary results show that running the distributed 3D FFT with four GPUs can bring a 12% speedup over the single node (CUFFT) while also enabling the calculation of 3D FFTs of larger datasets. Replacing the global data exchange via shared memory with direct GPU-to-GPU transfers reduces the execution time by up to 49%. This clearly shows that direct GPU-to-GPU transfers are the key factor in obtaining good performance on multi-GPU systems.
[1]
Yifeng Chen,et al.
Large-scale FFT on GPU clusters
,
2010,
ICS '10.
[2]
Steven G. Johnson,et al.
FFTW: an adaptive software architecture for the FFT
,
1998,
Proceedings of the 1998 IEEE International Conference on Acoustics, Speech and Signal Processing, ICASSP '98 (Cat. No.98CH36181).
[3]
Aaas News,et al.
Book Reviews
,
1893,
Buffalo Medical and Surgical Journal.
[4]
Alistair P. Rendell,et al.
Modeling nonlinear ultrasound propagation in heterogeneous media with power law absorption using a k-space pseudospectral method.
,
2012,
The Journal of the Acoustical Society of America.
[5]
Liang Gu,et al.
Using GPUs to compute large out-of-card FFTs
,
2011,
ICS '11.
[6]
Richard W. Vuduc,et al.
On the communication complexity of 3D FFTs and its implications for Exascale
,
2012,
ICS '12.
[8]
Steven G. Johnson,et al.
The Design and Implementation of FFTW3
,
2005,
Proceedings of the IEEE.