Skip to main content
QUICK REVIEW

[Paper Review] Parallel Spherical Harmonic Transforms on heterogeneous architectures (GPUs/multi-core CPUs)

Mikołaj Szydlarski, Pierre Estérie|arXiv (Cornell University)|Jun 1, 2011
Geophysics and Gravity MeasurementsEarth and Planetary Sciences22 references6 citations
TL;DR

This paper presents highly optimized parallel spherical harmonic transform (SHT) algorithms for heterogeneous architectures, combining multi-core CPUs and GPUs using CUDA and MPI. It achieves up to 3× speedup for inverse SHT on GPU clusters versus CPU-based MPI/OpenMP, with high numerical accuracy and scalability, while highlighting performance disparities between direct and inverse transforms due to algorithmic design differences.

ABSTRACT

Spherical Harmonic Transforms (SHT) are at the heart of many scientific and practical applications ranging from climate modelling to cosmological observations. In many of these areas new, cutting-edge science goals have been recently proposed requiring simulations and analyses of experimental or observational data at very high resolutions and of unprecedented volumes. Both these aspects pose formidable challenge for the currently existing implementations of the transforms. This paper describes parallel algorithms for computing SHT with two variants of intra-node parallelism appropriate for novel supercomputer architectures, multi-core processors and Graphic Processing Units (GPU). It also discusses their performance, alone and embedded within a top-level, MPI-based parallelisation layer ported from the S2HAT library, in terms of their accuracy, overall efficiency and scalability. We show that our inverse SHT run on GeForce 400 Series GPUs equipped with latest CUDA architecture ("Fermi") outperforms the state of the art implementation for a multi-core processor executed on a current Intel Core i7-2600K. Furthermore, we show that an MPI/CUDA version of the inverse transform run on a cluster of 128 Nvidia Tesla S1070 is as much as 3 times faster than the hybrid MPI/OpenMP version executed on the same number of quad-core processors Intel Nahalem for problem sizes motivated by our target applications. Performance of the direct transforms is however found to be at the best comparable in these cases. We discuss in detail the algorithmic solutions devised for major steps involved in the transforms calculation, emphasising those with a major impact on their overall performance, and elucidates the sources of the dichotomy between the direct and the inverse operations.

Motivation & Objective

  • Address the growing computational demand for high-resolution spherical harmonic transforms in cosmology and climate modeling.
  • Overcome performance bottlenecks in existing SHT implementations for large-scale data, especially for Cosmic Microwave Background (CMB) simulations.
  • Develop efficient, scalable, and accurate SHT algorithms tailored for modern heterogeneous architectures (multi-core CPUs and GPUs).
  • Enable high-performance inverse SHT on GPU clusters to accelerate CMB data analysis and simulation workloads.
  • Investigate and resolve the performance dichotomy between direct and inverse SHT on GPU architectures.

Proposed method

  • Design and implement parallel SHT algorithms using CUDA for GPU acceleration and OpenMP for multi-core CPU parallelism.
  • Integrate an MPI-based distributed memory layer to scale across multiple nodes, enabling large-scale SHT on clusters.
  • Optimize key computational steps—especially FFTs and reduction operations—using highly-tuned libraries like CUFFT and Intel MKL.
  • Employ HEALPix-based sky pixelization to represent spherical signals and map harmonic coefficients to sky maps.
  • Use hybrid programming models (MPI/CUDA and MPI/OpenMP) to exploit both node-level and inter-node parallelism.
  • Implement algorithmic optimizations such as memory coalescing, kernel fusion, and efficient thread-block configurations for GPU kernels.

Experimental results

Research questions

  • RQ1How can spherical harmonic transforms be efficiently parallelized on heterogeneous architectures combining multi-core CPUs and GPUs?
  • RQ2What performance gains can be achieved by using GPU-accelerated SHT compared to state-of-the-art CPU-based implementations?
  • RQ3Why does the inverse SHT outperform the direct SHT on GPU architectures, and what algorithmic factors cause this performance dichotomy?
  • RQ4To what extent can MPI-based hybrid implementations scale across clusters of GPUs and CPUs for large-scale SHT workloads?
  • RQ5How accurate are the GPU-accelerated SHT results compared to CPU-based reference implementations?

Key findings

  • The inverse SHT on GeForce 400 Series GPUs with CUDA outperforms the state-of-the-art libpsht CPU implementation on Intel Core i7-2600K by a significant margin.
  • A cluster of 128 Nvidia Tesla S1070 GPUs using MPI/CUDA accelerates the inverse SHT by up to 3× compared to a hybrid MPI/OpenMP version on the same number of Intel Nehalem quad-core processors.
  • The direct SHT shows only modest performance gains on GPUs—around 20–30% faster than CPU-based MPI/OpenMP—due to performance bottlenecks in reduction operations.
  • The absolute difference between sky maps generated on CPU and GPU never exceeded ~10⁻¹¹, confirming high numerical accuracy across architectures.
  • The CUDA-optimized inverse SHT achieves an average speed-up of 3.3× over the multi-threaded CPU version for large test cases (N_side = 16384, ℓ_max = 32768).
  • The performance gap between direct and inverse SHT on GPUs stems from algorithmic asymmetries, particularly in the handling of reduction and memory access patterns in the direct transform.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.