[论文解读] Kokkos Kernels: Performance Portable Sparse/Dense Linear Algebra and Graph Kernels
本文介绍 Kokkos Kernels,这是一个可移植的稀疏/密集线性代数和图核库,旨在在多样的 CPU/GPU 架构上实现性能可移植性,并在多个内核和后端上演示。
As hardware architectures are evolving in the push towards exascale, developing Computational Science and Engineering (CSE) applications depend on performance portable approaches for sustainable software development. This paper describes one aspect of performance portability with respect to developing a portable library of kernels that serve the needs of several CSE applications and software frameworks. We describe Kokkos Kernels, a library of kernels for sparse linear algebra, dense linear algebra and graph kernels. We describe the design principles of such a library and demonstrate portable performance of the library using some selected kernels. Specifically, we demonstrate the performance of four sparse kernels, three dense batched kernels, two graph kernels and one team level algorithm.
研究动机与目标
- Motivate the need for performance-portable kernels in the exascale era for CSE applications.
- Describe the design principles and architecture of Kokkos Kernels to support portable kernel development.
- Present new algorithms, data structures, and interfaces that enable portable performance on CPUs and GPUs.
- Demonstrate portable performance for selected sparse, dense, and graph kernels across architectures.
提出的方法
- Adopt CRS (CrsMatrix) sparse storage with a StaticCrsGraph to fix row pointers for memory efficiency on accelerators.
- Provide a set of core sparse/dense/graph kernels with symbolically separated phases to optimize performance (e.g., symbolic/numeric phases in SpGEMM and SpAdd).
- Implement Jacobi-fused SpGEMM to reduce kernel launches and memory usage by fusing updates into the SpGEMM numeric phase.
- Develop a suite of sparse triangular solvers including supernodal and level-scheduling approaches for GPU/CPU portability.
- Offer BLAS/LAPACK interfaces that route to vendor libraries or native Kokkos Kernels backends, with support for multi-vectors and batched DLA operations.
- Provide batched dense linear algebra interfaces in a functor-level, hierarchical-parallelism-friendly manner (Serial, Team, TeamVector) with SIMD data types.
实验结果
研究问题
- RQ1How can a portable kernel library deliver competitive performance across diverse architectures (CPU/GPU) for sparse/dense linear algebra and graph workloads?
- RQ2What data structures, interfaces, and algorithmic strategies enable performance portability in sparse/dense kernels and graph kernels?
- RQ3How do fused or staged kernel designs (e.g., Jacobi-fused SpGEMM, symbolic/numeric decoupling) impact performance and portability?
- RQ4Can batched and team-level routines provide efficient dense computations on small matrices across backends?
- RQ5What are the trade-offs of requiring interface portability versus exploiting vendor-optimized kernels when available?
主要发现
- Kokkos Kernels achieves portable performance across CPU and GPU backends for a set of sparse, dense, and graph kernels.
- A structured approach with symbolic and numeric phases (e.g., in SpGEMM and SpAdd) enables portable performance and flexible optimization.
- A Jacobi-fused SpGEMM reduces kernel launches and memory overhead, with performance gains observed in multi-GPU configurations.
- Supernodal and level-scheduling strategies provide portable SpTRSV solutions that leverage hierarchical parallelism on GPUs.
- Batched dense linear algebra interfaces and team-based execution patterns enable efficient small-matrix operations across backends.
- Comparisons show Kokkos Kernels competitive with or faster than vendor libraries for certain workloads, particularly as problem size and parallelism scale.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。