[Paper Review] Toward Performance-Portable PETSc for GPU-based Exascale Systems
This paper presents a performance-portable GPU programming model for PETSc, enabling scientific applications to leverage diverse GPU programming models (e.g., CUDA, Kokkos, HIP, SYCL) without sacrificing performance or portability. By decoupling the application’s programming model from PETSc’s internal back-end, the framework achieves high performance on current GPU systems and paves the way for exascale computing with seamless interoperability and minimal data movement across models.
The Portable Extensible Toolkit for Scientific computation (PETSc) library delivers scalable solvers for nonlinear time-dependent differential and algebraic equations and for numerical optimization.The PETSc design for performance portability addresses fundamental GPU accelerator challenges and stresses flexibility and extensibility by separating the programming model used by the application from that used by the library, and it enables application developers to use their preferred programming model, such as Kokkos, RAJA, SYCL, HIP, CUDA, or OpenCL, on upcoming exascale systems. A blueprint for using GPUs from PETSc-based codes is provided, and case studies emphasize the flexibility and high performance achieved on current GPU-based systems.
Motivation & Objective
- To enable performance portability for PETSc on GPU-based exascale systems across diverse programming models.
- To overcome fundamental challenges in GPU library development, including memory bandwidth limitations and heterogeneous hardware.
- To allow application developers to use their preferred GPU programming model (e.g., Kokkos, RAJA, SYCL) while relying on PETSc’s scalable solvers and time-integration capabilities.
- To demonstrate high performance and flexibility through case studies on real-world PDE and plasma physics solvers.
- To provide a blueprint for integrating GPU acceleration into PETSc-based applications with minimal performance loss and no data duplication.
Proposed method
- Decouple the application’s programming model from PETSc’s internal back-end programming model, enabling independent selection of GPU models.
- Share data between application and PETSc programming models without copying, preserving performance and avoiding runtime overhead.
- Implement GPU kernels using multiple back-ends (CUDA, Kokkos, HIP, SYCL) while interfacing with optimized vendor libraries (e.g., cuBLAS, cuSPARSE, rocBLAS).
- Use hierarchical, composable solvers and time-integration routines that run entirely on GPU, with support for implicit time stepping and adjoint methods.
- Employ adaptive meshing (p4est) and data-parallel abstractions (e.g., Kokkos parallel_for, RAJA, DPC++) to express portable, high-performance kernels.
- Optimize memory access patterns and kernel launches to sustain high bandwidth utilization and minimize latency.
Experimental results
Research questions
- RQ1How can PETSc achieve performance portability across multiple GPU programming models (e.g., CUDA, Kokkos, HIP, SYCL) on exascale systems?
- RQ2What architectural design patterns enable high performance while decoupling application-level programming models from PETSc’s internal GPU kernels?
- RQ3To what extent can PETSc’s back-end support achieve high performance on current GPU systems without sacrificing flexibility or requiring application-level rewrites?
- RQ4How do different programming models (e.g., CUDA vs. Kokkos) impact kernel performance and maintainability in PETSc’s GPU back-end?
- RQ5What are the key performance bottlenecks in GPU-accelerated PETSc solvers, and how can they be mitigated through kernel and data structure design?
Key findings
- PETSc’s back-end GPU support achieves high performance on current systems, with solver and matrix assembly times scaling efficiently across multiple GPU programming models.
- The Landau collision operator kernel, implemented in both CUDA and Kokkos, shows linear scaling with the number of species, indicating memory-bound behavior rather than compute-bound limitations.
- The Kokkos version of the Landau kernel is slightly slower than CUDA due to abstraction overhead from variable-length arrays and parallel reductions, but offers better code maintainability.
- Data sharing between programming models avoids costly data copies, enabling seamless interoperability between application code (e.g., Kokkos) and PETSc’s GPU kernels (e.g., CUDA).
- The framework supports mixed-model execution, allowing applications to use multiple programming models (e.g., OpenMP offload with HIP, or Kokkos with CUDA) in a single workflow.
- The design enables full GPU execution of algebraic solvers and supports ongoing development of on-device matrix assembly, a critical step toward full GPU acceleration of PDE simulations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.