Skip to main content
QUICK REVIEW

[Paper Review] Kokkos Kernels: Performance Portable Sparse/Dense Linear Algebra and Graph Kernels

Sivasankaran Rajamanickam, Seher Acer|arXiv (Cornell University)|Mar 22, 2021
Parallel Computing and Optimization TechniquesComputer Science13 references26 citations
TL;DR

This paper presents Kokkos Kernels, a portable library of sparse/dense linear algebra and graph kernels designed for performance portability across diverse CPU/GPU architectures, with demonstrations on multiple kernels and backends.

ABSTRACT

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.

Motivation & Objective

  • 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.

Proposed method

  • 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.

Experimental results

Research questions

  • 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?

Key findings

  • 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.

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.