Repository navigation
LibDDLA 0.0.7
LibDDLA — Dense Distributed Linear Algebra — provides dense matrix operations and solvers on CPU, CUDA and HIP with MPI and ScaLAPACK-style two-dimensional block-cyclic layouts.
This release covers changes since v0.0.6 and targets commit 0a65e570d3d3bc70e4d53a7e992b2de60abc884c on main.
Highlights
- Expanded mixed real/complex products, including batched GEMM, triangular-output updates, symmetric/Hermitian products and matrix-region scaling.
- Distributed SVD, one-stage/two-stage Hermitian eigensolvers, generalized Hermitian-definite solvers and opt-in partial-spectrum methods.
- CPU support in every build, optional CUDA or HIP, explicit backend selection per handle and runtime communication selection.
- Reusable internal workspaces, stronger allocation diagnostics, and CPU/HIP compatibility fixes.
New operations and solver coverage
- Mixed-domain fixed-size and variable-size batched GEMM, mixed triangular-output GEMM and symmetric/Hermitian products, with distributed variants. Matching real coefficients can scale complex matrix regions through
scal,pscalandscalBatched. - Local/distributed diagonal multiplication, triangular products and memory operations, symmetric/Hermitian completion, and diagonal log determinants.
- Local/distributed pivoted LDLT factorizations and solves; distributed QR least-squares; Q application/generation; and local/distributed LQ and RQ.
- Distributed SVD with distributed bidiagonal factors and an opt-in QR reduction for eligible tall/wide problems.
- Distributed one-stage/two-stage Hermitian eigensolvers, local SYEVD/HEEVD/STEDC, and generalized Hermitian-definite solvers.
phegstcan reuse an existing Cholesky factor. - Opt-in Chebyshev-filtered partial Hermitian solves and selected tridiagonal eigenvectors. These methods are explicitly selected; the default tridiagonal route remains divide and conquer.
- Per-handle MPI, host-staged MPI or compiled-in GPU collectives. Global matrix-sized spectral storage remains distributed; small replicated vectors/metadata and bounded panels are permitted.
Breaking changes and migration
Rebuild LibDDLA and downstream applications together. This is a source-incompatible pre-1.0 release; the major-version-0 SONAME does not imply ABI compatibility.
- CPU support is unconditional. Enable at most one of CUDA or HIP. Building the implementation requires C++17; public-header consumers can use C++11 or newer. MPI and host BLAS/LAPACK, including the required CBLAS complex-dot interfaces, are required in every build.
- Public computational templates take scalar types only. Select CPU or GPU explicitly when initializing each handle. Public GPU capability checks use
DDLA_HAS_GPU. - Distributed LU pivots use handle-selected memory, including device memory for GPU handles.
ppotrfreturnsvoidand reports throughinfo; obsolete head-correction arguments are removed.- Distributed QR and QL have separate public entries. Replace removed
transport_blockcalls with the appropriatepgeaddredistribution. pheevdand its one-/two-stage entries requirenevimmediately aftern. They return allneigenvalues and only the requested lowestneveigenvectors.pstedcrequiresnblkand returns eigenvectors as backend-resident contiguous row slabs. The former descriptor-output overloads and outerDDLA_EIG_DC_LEAFpolicy are removed.- Optional Fortran/Python bindings have their own exported coverage. The Python package metadata currently remains
0.1.0; the core library version is0.0.7.
See the migration and release guide for exact call shapes, descriptor rules and memory placement.
Build and numerical fixes
- Link host BLAS/LAPACK before HIP libraries to avoid CPU calls resolving to conflicting Fortran symbols exported by the tested DTK hipSOLVER package.
- Keep GCC CPU-dispatch helpers inside LibDDLA on GNU x86-64 builds, addressing the observed IFUNC resolver failure during
dlopenon older loaders. - Fix GCC 9 compilation of PSTEDC backend conditions.
- Normalize ignored imaginary input diagonals before HIP local HEEVD and distributed PHETRD updates, using the GPU memory API without extra workspace.
- Protect distributed HIP bidiagonalization at extreme input magnitudes with power-of-two scaling, restoring the bidiagonal outputs while preserving reflector vectors and existing workspace.
- Improve workspace-query tracing, diagnostic labels, mixed-type test declarations, rounding bounds and CPU test time budgets.
Validation, performance and known limits
Recent df_dcu validation included CPU/HIP builds and structured-operation checks on 1×4, 2×2 and 4×1 process grids, with both grid orders. Earlier recorded runs also covered the CPU suite and targeted solver/workspace checks. These results do not establish a fully passing release-wide GPU suite. Hardware, toolchain and workload scope matter; no uniform speedup is promised. The migration guide records accepted workload-specific performance trade-offs.
- DTK POTRF: use the factor in the selected
uplo. Some tested DTK versions overwrite the strict opposite output triangle. Selected-factor correctness and padding protection remain required. - DTK HERK/HER2K: NaNs in ignored imaginary input diagonals can contaminate selected outputs. Keep these diagonal components finite, preferably zero. Native calls are retained without a per-call clearing workaround.
- Native HIP QR/QL: huge, tiny, subnormal or mixed-scale finite inputs can still produce incorrect reflectors or non-finite factors. Ordinary well-scaled cases passed the recorded checks; the finite-extreme failures remain documented.
- Ring replay: an earlier intermittent missing-rank stall remains unresolved. Six later serial forced-ring repetitions passed, which does not establish that the original issue is fixed.
See HIP/DTK compatibility notes for tested versions and regression policy.
Full changelog: v0.0.6 → 0a65e57.