Scalable Multigrid-based Hierarchical Scientific Data Refactoring on GPUs

Jieyang Chen, Lipeng Wan, Xin Liang, Ben Whitney, Qing Liu, Qian Gong, David Pugmire, Nicholas Thompson, Jong Youl Choi, Matthew Wolf, Todd S. Munson, Ian T. Foster, Scott KlaskyarXiv 2021

Introduction

Scientific simulations in fields such as fusion energy and astrophysics are generating data at an unprecedented scale, often exceeding petabytes per day. This "data deluge" creates a massive bottleneck because modern storage and I/O bandwidth cannot keep pace with simulation speeds. A promising approach to mitigate this is hierarchical data refactoring, which mathematically decomposes data into multiple levels of fidelity. This allows researchers to store or retrieve only the precision necessary for a specific analysis, significantly reducing I/O overhead.

Overview of the hierarchical data refactoring and sharing framework.

However, traditional refactoring algorithms are computationally intensive. Even when ported to GPUs, they often suffer from memory bottlenecks and thread divergence, typically achieving less than 10% of theoretical hardware peaks. This paper presents a suite of highly optimized GPU kernels designed to overcome these limitations, enabling real-time, high-throughput data refactoring.

Multigrid-based Hierarchical Refactoring

The refactoring process utilizes a multigrid-based approach to break down original data into hierarchical "coefficient classes." By applying linear interpolation and calculating corrections at various grid levels, the data is transformed into a representation where lower-fidelity versions can be reconstructed from a subset of the coefficients.

Visual representation of the multigrid-based decomposition process at different levels.

As shown in the decomposition levels, the algorithm iteratively refines the data. Storing only the top levels of this hierarchy allows for significant data reduction while maintaining high visual and analytical accuracy for many scientific tasks. This mathematical refactoring is the foundation for efficient data sharing across multi-tiered storage systems.

Optimized GPU Kernel Design

To achieve peak performance, the authors redesigned core operations into three specialized kernel types:

  1. Grid Processing Kernel (GPK): Responsible for computing coefficients. The design uses a thread-reassignment strategy to decouple memory access from computation. This ensures coalesced memory reads while eliminating thread divergence, a common issue in hierarchical algorithms where different threads follow different execution paths.
  2. Linear Processing Kernel (LPK): Handles mass-transfer matrix multiplications. By switching from in-place to out-of-place computation, the authors unlocked finer-grained parallelism. Kernel fusion was also employed to reduce the memory footprint and minimize global memory traffic.
  3. Iterative Processing Kernel (IPK): Solves corrections using the Thomas algorithm. To handle the sequential dependencies of this algorithm on a parallel architecture, the authors implemented a sliding-window approach in shared memory, ensuring coalesced access across data regions.

Additional system-level optimizations include heuristic auto-tuning for thread block sizes, optimized data layouts to maintain unit memory strides, and the use of NVLink for cooperative multi-GPU parallelism within a single node.

Performance and Impact

The optimized framework demonstrates exceptional scalability and efficiency. On NVIDIA Volta and Turing architectures, the kernels achieved up to 92.2% of the theoretical peak memory bandwidth. Compared to state-of-the-art CPU implementations, the GPU-optimized design is up to 160x faster, and it outperforms existing GPU libraries like MGARD by up to 15x.

At the extreme scale, the system was tested on the Summit supercomputer using 6,144 GPUs across 1,024 nodes. It achieved an aggregated throughput of 264 TB/s in embarrassingly parallel mode. In practical applications, such as scientific visualization of Gray-Scott reaction-diffusion simulations, the method allowed for a 66% reduction in I/O costs while maintaining approximately 95% visual accuracy by reading only a fraction of the coefficient classes.

Conclusion

This work provides a scalable solution for the data management challenges facing modern supercomputing. By maximizing GPU hardware utilization through custom kernel designs and memory optimizations, hierarchical refactoring becomes a viable "on-the-fly" component of scientific workflows. Future work will focus on reducing inter-node communication overhead to further extend these capabilities across distributed computing environments.

Summary updated

BibTeX
@misc{chen2021scalable,
  author = {Jieyang Chen and Lipeng Wan and Xin Liang and Ben Whitney and Qing Liu and Qian Gong and David Pugmire and Nicholas Thompson and Jong Youl Choi and Matthew Wolf and Todd S. Munson and Ian T. Foster and Scott Klasky},
  title = {{Scalable Multigrid-based Hierarchical Scientific Data Refactoring on GPUs}},
  year = {2021},
  eprint = {2105.12764},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.12764},
}
Figure