$\texttt{cunuSHT}$: GPU Accelerated Spherical Harmonic Transforms on Arbitrary Pixelizations
Abstract
We present , a general-purpose Python package that wraps a highly efficient CUDA implementation of the nonuniform spin- spherical harmonic transform. The method is applicable to arbitrary pixelization schemes, including schemes constructed from equally-spaced iso-latitude rings as well as completely nonuniform ones. The algorithm has an asymptotic scaling of for maximum multipole and achieves machine precision accuracy. While is developed for applications in cosmology in mind, it is applicable to various other interpolation problems on the sphere. We outperform the fastest available CPU algorithm by a factor of up to 5 for problems with a nonuniform pixelization and when comparing a single modern GPU to a modern 32-core CPU. This performance is achieved by utilizing the double Fourier sphere method in combination with the nonuniform fast Fourier transform and by avoiding transfers between the host and device. For scenarios without GPU availability, wraps existing CPU libraries. is publicly available and includes tests, documentation, and demonstrations.
Keywords
Cite
@article{arxiv.2406.14542,
title = {$\texttt{cunuSHT}$: GPU Accelerated Spherical Harmonic Transforms on Arbitrary Pixelizations},
author = {Sebastian Belkner and Adriaan J. Duivenvoorden and Julien Carron and Nathanael Schaeffer and Martin Reinecke},
journal= {arXiv preprint arXiv:2406.14542},
year = {2024}
}