English

JAXMg: A multi-GPU linear solver in JAX

Distributed, Parallel, and Cluster Computing 2026-01-22 v1

Abstract

Solving large dense linear systems and eigenvalue problems is a core requirement in many areas of scientific computing, but scaling these operations beyond a single GPU remains challenging within modern programming frameworks. While highly optimized multi-GPU solver libraries exist, they are typically difficult to integrate into composable, just-in-time (JIT) compiled Python workflows. JAXMg provides multi-GPU dense linear algebra for JAX, enabling Cholesky-based linear solves and symmetric eigendecompositions for matrices that exceed single-GPU memory limits. By interfacing JAX with NVIDIA's cuSOLVERMg through an XLA Foreign Function Interface, JAXMg exposes distributed GPU solvers as JIT-compatible JAX primitives. This design allows scalable linear algebra to be embedded directly within JAX programs, preserving composability with JAX transformations and enabling multi-GPU execution in end-to-end scientific workflows.

Keywords

Cite

@article{arxiv.2601.14466,
  title  = {JAXMg: A multi-GPU linear solver in JAX},
  author = {Roeland Wiersema},
  journal= {arXiv preprint arXiv:2601.14466},
  year   = {2026}
}
R2 v1 2026-07-01T09:13:14.060Z