Spherical harmonic transform with GPUs

Ioan Ovidiu Hupca 1 Joel Falcou 2 Laura Grigori 1 R. Stompor 3
1 GRAND-LARGE - Global parallel and distributed computing
LRI - Laboratoire de Recherche en Informatique, LIFL - Laboratoire d'Informatique Fondamentale de Lille, UP11 - Université Paris-Sud - Paris 11, INRIA Saclay - Ile de France, CNRS - Centre National de la Recherche Scientifique : UMR8623
APC - UMR 7164 - AstroParticule et Cosmologie
Abstract : We describe an algorithm for computing an inverse spherical harmonic transform suitable for graphic processing units (GPU). We use CUDA and base our implementation on a Fortran90 routine included in a publicly available parallel package, S2hat. We focus our attention on the two major sequential steps involved in the transforms computation, retaining the efficient parallel framework of the original code. We detail optimization techniques used to enhance the performance of the CUDA-based code and contrast them with those implemented in the Fortran90 version. We also present performance comparisons of a single CPU plus GPU unit with the \s2hat code running on either a single or 4 processors. In particular we find that use of the latest generation of GPUs, such as NVIDIA GF100 (Fermi), can accelerate the spherical harmonic transforms by as much as 18 times with respect to S2hat executed on one core, and by as much as 5.5 with respect to S2hat on 4 cores, with the overall performance being limited by the Fast Fourier transforms. The work presented here has been performed in the context of the Cosmic Microwave Background simulations and analysis. However, we expect that the developed software will be of more general interest and applicability.

Contributor : Laura Grigori <>
Submitted on : Wednesday, October 6, 2010 - 9:48:58 AM
Last modification on : Friday, September 11, 2015 - 9:57:11 AM




  • HAL Id : inria-00522937, version 2



Ioan Ovidiu Hupca, Joel Falcou, Laura Grigori, R. Stompor. Spherical harmonic transform with GPUs. Workshop on High Performance Scientific Software, LNCS, 2011, pp.20. <inria-00522937v2>




Notice views


Document downloads