In the world of high-performance computing, researchers often face a frustrating trade-off: write code that is fast (native CUDA for NVIDIA) or write code that is portable (and often slower). This "vendor lock-in" is particularly acute in Machine Learning, where libraries like PyTorch and TensorFlow dominate but are heavily optimized for specific hardware.
A recent paper from the University of Stuttgart presents GPRat, an open-source Python library that aims to have it both ways. By leveraging SYCL and the oneMath library, the authors demonstrate that exact Gaussian Process Regression (GPR) can achieve near-native performance across NVIDIA, AMD, and Intel GPUs using a single codebase.
TL;DR
The authors developed a SYCL backend for the GPRat library, enabling performance-portable exact Gaussian Process Regression. Their implementation matches native CUDA performance within 3% on NVIDIA hardware and significantly outperforms established frameworks like GPyTorch and GPflow on AMD GPUs.
What Problem Does This Paper Address?
Gaussian Processes (GPs) are a powerful non-parametric tool for regression, prized for their ability to provide high-quality uncertainty estimates. However, they are computationally expensive, scaling cubically ($O(N^3)$) with the number of data points due to the need for Cholesky decomposition of large covariance matrices.
While modern GPUs are perfect for this kind of heavy lifting, the programming landscape is fragmented. NVIDIA’s CUDA is the industry standard, but the rise of AMD (Instinct series) and Intel (Max series) accelerators in supercomputers means that "NVIDIA-only" is no longer enough. Existing libraries often struggle to maintain high performance across these different vendors without maintaining multiple, costly code paths.
Methods
The authors built upon GPRat, a library designed for "exact" GPR (as opposed to approximate methods). The core of their approach involves three key pillars:
- Tiled Algorithms: Instead of treating the covariance matrix as one giant block, GPRat breaks it into smaller "tiles." This allows for better memory management and asynchronous execution.
- HPX Runtime: GPRat uses the HPX asynchronous many-task runtime to manage the complex dependencies between these tiles. Tasks are launched as soon as their data dependencies are met, maximizing hardware utilization.
- SYCL & oneMath: To achieve portability, the authors implemented a backend using SYCL, an open-standard abstraction layer. They specifically used oneMath (part of the UXL Foundation) to dispatch linear algebra operations (BLAS) to vendor-native libraries like cuBLAS (NVIDIA) or rocBLAS (AMD).
A particularly interesting technical hurdle was the "Hybrid Scheduling" design. The authors found that wrapping oneMath calls directly inside HPX tasks caused stability issues. Their solution was to run oneMath calls in a separate queue pool outside the HPX task graph, while HPX continued to orchestrate custom kernels and overall data flow.
Datasets
The implementation was evaluated using a mass-spring-damper (MSD) dataset, a standard benchmark representing a system of nonlinearly coupled carts. The authors performed scaling tests with problem sizes ($N$) ranging from $2^0$ to $2^{14}$ (16,384) data points.
Key Insights and Ideas
- The "Portability Tax" is Shrinking: The most significant finding is that the overhead of using a portable layer like SYCL is negligible at scale. On an NVIDIA A30, the SYCL backend was within 3% of the performance of a hand-tuned native CUDA implementation for large problem sizes.
- Tiling Enables Smart Shortcuts: Because GPRat uses a tiled approach, it can skip calculating parts of the posterior covariance matrix that aren't needed for simple uncertainty estimates (which only require the diagonal). This "uncertainty-only" path yielded speedups of up to 2.39x compared to full covariance calculations.
- Hardware Class Matters More Than Software: On the Intel Arc B580 (a consumer card), the GPU actually trailed the CPU backend. This wasn't a failure of the SYCL code, but a reflection of the card's low double-precision (FP64) throughput. It highlights that "performance portability" still requires hardware with the right "muscle" for the task.
Key Results
The benchmarks compared GPRat against a oneMKL CPU reference and two major GPU libraries: GPflow and GPyTorch.
- NVIDIA A30: GPRat (SYCL) outperformed GPflow by 1.75x and GPyTorch by 2.17x at the largest problem sizes.
- AMD Instinct MI210: The results were even more dramatic on AMD hardware, where GPRat outperformed GPflow by 1.79x and GPyTorch by 4.62x.
- Scaling: As shown in the figures below, while GPyTorch is faster for very small problem sizes due to lower overhead, GPRat’s tiled, asynchronous approach takes a commanding lead as the problem size grows.

Limitations and Future Work
While the results for prediction are impressive, the authors acknowledge several limitations:
- No Training Yet: The current study focuses on prediction and uncertainty quantification. Evaluating the SYCL backend during the hyperparameter optimization (training) phase is the next logical step.
- Single GPU Focus: The tests were conducted on a single GPU per vendor. Extending GPRat to distributed, multi-node systems with heterogeneous GPUs remains a future goal.
- Intel Data Center Hardware: Testing was limited to a consumer-grade Intel GPU; the authors hope to test on the Intel Data Center GPU Max series (Ponte Vecchio) to see how the stack performs on high-end Intel silicon.
Summary updated