Runtime-dlopen'd cuSOLVER dense symmetric eigensolver (syevd). More...
#include <Eigen/Dense>#include <cstdint>Go to the source code of this file.
Classes | |
| class | gpr::linalg::CusolverEighLib |
Namespaces | |
| namespace | gpr |
| Gaussian-process regression, kernels, priors, and the searches that run on the surrogate. | |
| namespace | gpr::linalg |
| Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators, backend selection. | |
Runtime-dlopen'd cuSOLVER dense symmetric eigensolver (syevd).
This is a drop-in GPU accelerator for the dense symmetric eigendecomposition on the GPR critical path: the rank-N dual-kernel HS-SVD eigensolve that StableBasisND runs once per outer iteration. For the large-molecule cells (dim ~ 60, design rows ~ 7000, rank ~ 6000) that eigensolve is the campaign bottleneck and dominates wall time; cusolverDnDsyevd moves it onto the A100 with no change to the math (same all-eigenpairs ascending decomposition as Eigen SelfAdjointEigenSolver / LAPACK dsyevr range 'A').
Deliberately NOT wired through the compile-time linalg_backend macro (Backend.h): the production campaign build is GPR_LINALG_SCALAPACK, which is mutually exclusive with GPR_LINALG_CUSOLVER. Instead this mirrors the LapackRrrLib dlopen pattern in StableBasis.cpp – libcusolver / libcudart are loaded at runtime, so the same binary GPU-accelerates where the CUDA runtime is present (build-gpu-scalapack on A100 nodes) and transparently falls back to LAPACK MRRR / Eigen where it is not (CPU-only builds link nothing CUDA).
available() reports whether the cuSOLVER + CUDA runtime symbols loaded AND a CUDA device is usable. allEigenpairs() returns false on any device error so the caller falls through to the CPU eigensolve; it never aborts.
Definition in file CusolverEigh.h.