From-scratch tile-DAG Cholesky for distributed SPD factorisation. No Chameleon / DPLASMA / StarPU dependency – pure C++ + MPI. More...
#include <Eigen/Cholesky>#include <Eigen/Core>#include <cassert>#include <vector>#include "../../backend/Macros.h"Go to the source code of this file.
Classes | |
| class | gpr::linalg::TileCholesky |
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. | |
From-scratch tile-DAG Cholesky for distributed SPD factorisation. No Chameleon / DPLASMA / StarPU dependency – pure C++ + MPI.
The matrix is decomposed into B*B tiles. Tiles are distributed across MPI ranks in a 1D row-cyclic pattern: tile (i, j) is owned by rank (i mod nprocs). The factorisation runs the standard Cholesky DAG:
for j = 0 .. n_tiles - 1:
(1) owner of (j, j) factors L_jj = chol(A_jj) and broadcasts it
(2) for each i > j: owner of (i, j) computes
L_ij = A_ij @ L_jj^{-T}
then broadcasts the panel column to ranks owning rows i..
(3) for each (i, k) with j < k <= i: owner of (i, k) updates
A_ik -= L_ij @ L_kj^T
Bit-deterministic across rank counts because (a) tile ownership is a fixed function of (i, j, nprocs), (b) each tile-level kernel runs on exactly one rank with deterministic Eigen LLT / dgemm calls, (c) cross-rank communication is point-to-point Bcast, never SUM-reduction.
Reference: Buttari et al., "A class of parallel tiled linear algebra algorithms for multicore architectures", PARCO 2009; Kurzak et al., "Scheduling dense linear algebra operations on multicore processors", CCPE 22, 2010. The DAG-scheduling layer here is static (left-looking panel-by-panel), not dynamic; that suffices for determinism and matches the algorithm Ballard-Demmel-Holtz-Schwartz 2010 prove communication-optimal for SPD factorisation.
Definition in file TileCholesky.h.