amgcl 1.5.1
Permanent link:
cppdashboard.dev/r/2026/11/amgcl-1-5-1C++ library for solving large sparse linear systems with algebraic multigrid method
Release notes
## 1.5.1 A maintenance release with an opt-in mode for thread-count-independent results, a Ruge–Stüben correctness fix, Jacobi iterations for ILU on the CPU, modernized CMake, and optional CUDA CI. No breaking API changes. ### Reproducible results across thread counts (opt-in) New `AMGCL_DETERMINISTIC_REDUCTIONS` macro (#321 by @dokotor). When defined: - `backend::builtin::inner_product` sums fixed-size blocks (4096 elements) with Kahan compensation and combines block sums in order, instead of per-thread partials. - `product()` always uses `spgemm_saad` rather than switching to `spgemm_rmerge` above 16 threads. Krylov scalars and Galerkin coarse operators then depend only on the input, not on the number of OpenMP threads. The macro is **off by default** and the default code path is unchanged. Documented in `docs/compiling.rst` and covered by a new test that checks bit-identical results for different thread counts (including across the 16-thread spgemm switch). ### ILU: Jacobi iterations on CPU `ilu_solve` in the builtin backend now accepts `iters` and `damping` parameters (#324 by @ImperatorS79). With `iters > 0`, the triangular solves are replaced by Jacobi iterations, which can be faster than the parallel solve on CPU. Defaults (`iters = 0`) keep the existing serial/parallel behavior. Workspace memory is now reported by `bytes()`. ### Fixes - **Ruge–Stüben:** clear strength flags for rows without negative off-diagonals (#323 by @kvotab, fixes #322). Previously `connect()` left those `S.val` entries uninitialized, so the C/F splitting and interpolation could depend on heap contents. - Fixed `ilu_solve::bytes()` to include the Jacobi workspace allocations. ### Build & CI - CMake configuration modernized: minimum version 3.10, `CMP0167` set to `NEW` to use upstream `BoostConfig.cmake` instead of deprecated `FindBoost`, and the deprecated `FindCUDA` module / `cuda_add_executable` replaced with first-class CUDA language support. - New optional `CUDA examples (simulated H100)` workflow (#325 by @saqibkh) that builds and runs `solver_cuda`, `schur_pressure_correction_cuda`, and `cpr_drs_cuda` on a simulated H100 via PantheonSim. It is not a required check and complements, rather than replaces, real-GPU testing.
Share this resource