Skip to main content
QUICK REVIEW

[Paper Review] Enabling New Flexibility in the SUNDIALS Suite of Nonlinear and Differential/Algebraic Equation Solvers

David J. Gardner, Daniel R. Reynolds|arXiv (Cornell University)|Nov 19, 2020
Numerical methods for differential equationsMathematics4 citations
TL;DR

This paper presents a major redesign of the SUNDIALS suite to enable seamless integration of custom and third-party algebraic solvers and data structures through new object-oriented classes for linear and nonlinear solvers, enhanced vector abstractions, and modern Fortran 2003 interfaces. The changes maintain backward compatibility while significantly improving flexibility for heterogeneous, extreme-scale HPC systems, with performance-competitive results in numerical benchmarks.

ABSTRACT

In recent years, the SUite of Nonlinear and DIfferential/ALgebraic equation Solvers (SUNDIALS) has been redesigned to better enable the use of application-specific and third-party algebraic solvers and data structures. Throughout this work, we have adhered to specific guiding principles that minimized the impact to current users while providing maximum flexibility for later evolution of solvers and data structures. The redesign was done through the addition of new linear and nonlinear solvers classes, enhancements to the vector class, and the creation of modern Fortran interfaces. The vast majority of this work has been performed "behind-the-scenes," with minimal changes to the user interface and no reduction in solver capabilities or performance. These changes allow SUNDIALS users to more easily utilize external solver libraries and create highly customized solvers, enabling greater flexibility on extreme-scale, heterogeneous computational architectures.

Motivation & Objective

  • To enable application-specific and third-party algebraic solvers within SUNDIALS without breaking backward compatibility.
  • To support evolving HPC architectures, especially heterogeneous systems with CPU+GPU or other accelerators.
  • To reduce code duplication and increase sustainability by abstracting solver and data structure interfaces.
  • To allow users to create highly customized solvers with minimal code changes.
  • To provide modern, sustainable Fortran 2003 interfaces that mirror the C API and support advanced features.

Proposed method

  • Introduced new linear and nonlinear solver classes based on object-oriented design principles, decoupling solvers from integrators.
  • Enhanced the SUNDIALS vector class to support a 'many-vector' abstraction, combining multiple subvectors for multiphysics and heterogeneous memory models.
  • Added an MPI+X vector abstraction built on the many-vector to support on-node parallelism and heterogeneous memory access.
  • Designed new fused operations to reduce communication and improve hardware utilization on modern architectures.
  • Implemented modern Fortran 2003 interfaces that mirror the C API, enabling full access to new solver and vector abstractions.
  • Used virtual method tables (VMTs) and constructor functions (e.g., TaskLocalNewton) to instantiate custom nonlinear solvers with encapsulated data.

Experimental results

Research questions

  • RQ1How can SUNDIALS be redesigned to support application-specific and third-party solvers with minimal user code changes?
  • RQ2What design patterns enable long-term sustainability and extensibility of numerical software in HPC environments?
  • RQ3How can vector abstractions be extended to support heterogeneous memory and on-node parallelism?
  • RQ4Can new solver interfaces be implemented without degrading performance or breaking existing code?
  • RQ5To what extent can custom, problem-aware solvers improve performance in complex simulations?

Key findings

  • The new infrastructure maintains backward compatibility and does not increase simulation cost, preserving existing solver behavior.
  • Numerical tests confirm that the new design enables performance-competitive results with minimal runtime overhead.
  • Significant speedups were achieved when using a problem-specific nonlinear solver that exploits system structure and locality.
  • The many-vector abstraction enables efficient handling of multiphysics problems and heterogeneous memory layouts.
  • The MPI+X vector abstraction simplifies integration of new on-node parallelism models in heterogeneous systems.
  • Modern Fortran 2003 interfaces provide full access to new features and mirror the C API with equivalent functionality and performance.

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.