Changelog¶
Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project uses towncrier for changelog management.
1.0.0 - 2026-11-30¶
Security¶
Bofill no longer dlopens
librgsaddle. The library is linked, so a working-directory-relative candidate is never opened, including when the process was started asbin/gprdor whendladdrreports a relative image name.
Removed¶
Removed the unused spectral median helper from the Python distribution.
The cluster campaign workflows, job scripts, workflow-manager configuration and measurement sessions under
bench/andscripts/are no longer in the source tree, nor are the tests that checked them. The benchmarks that users and CI run (benchmarks/,bench/gp,bench/quantum,bench/determinism,bench/baselines,bench/instanton_gp,bench/omp,bench/uma) stay. The Baker PET-MAD baseline table moves tobench_data/baker/baker_bench.csvand the UMA charge and spin table tobench/determinism/uma_baker_birkholz.json.The in-tree dimer rotation (the modified-Newton angle step on an L-BFGS rotation plane) and the in-tree L-BFGS translation are removed, together with
gpr::optim::LBFGSand thedeltaOrient,deltaFandF_oldmembers ofgpr::LBFGSInfo. The rgmin Rayleigh-Ritz and sphere L-BFGS rotation and the bounded rgmin translation step are the only dimer path, soDimer::setUseRgminRotation,Dimer::setUseRgminTranslationandAtomicDimer::setUseRgminTranslationare gone.gprd --dimer-rgmin-translation trueis still accepted;falseis an error that names the removal. ADimerwithout a bound translation session takes rgmin’s empty-memory step.The installed headers no longer ship model potentials:
<gpridge/AnalyticalPotentials.h>and<gpridge/TersoffPotential.h>are removed. The Si-O Tersoff header moved to the test support tree. The Muller-Brown surface behindgpr_potential_muller_brownandgpr_oracle_muller_brownis now rgpot’s built-in model with the same published parameters; the Lennard-Jones and LEPS C entry points keep their in-tree evaluations, whose header is private to the library. The C ABI is unchanged.Use spectral-instanton for bead and spectral rate calculations. The Python distribution keeps the instanton Gaussian-process helpers and warns on import. The native instanton and quantum-path interfaces are also marked experimental work in progress. The archived study checkout retains the benchmark drivers and reproduction instructions.
PotentialWrapper::from_rpc_clientand thePotClientforward declaration: the factory was declared and never defined, so a call failed at link time. The_coremodule no longer declaresPy_MOD_GIL_NOT_USED, so a free-threaded interpreter turns the GIL back on when it imports it; the module had no synchronisation to back the declaration.readcon-core is a required dependency for structure I/O:
-Duse_readcon=falseis a configure error, and the code paths that ran without it are gone. The direct chemfiles reader and writer (ChemfilesManager, theuse_chemfilesbuild and the chemfiles wrap) are removed;-Duse_chemfiles=trueis a configure error. readcon-core reads the non-CON formats throughrkr_read_chemfiles_first; gpridge builds readcon-core with itschemfilescargo feature by default, so a default build still reads them.
Deprecated¶
AtomicDimer.get_final_force_at_mid_point()returned the gradient, not a force. Useget_final_gradient_at_mid_point(); the old name returns the same values and emits aDeprecationWarning. In C++,AtomicDimer::getFinalForceAtMidPoint()is[[deprecated]]in favour ofgetFinalGradientAtMidPoint().
Added¶
A
-Dlinalg_backend=kokkosbuild now has Kokkos kernels that assemble species-environment covariance blocks over environment data held in the execution memory space (gpr/covariance_functions/EnvironmentKokkosAssembly.h). They are internal building blocks and only the test suite calls them: no model, optimizer or public API routes through them yet. The blocks equal the host work items bit for bit, and the pairs run in chunks sized from a scratch-memory budget, so the result does not depend on the chunk size.A prior-free marginal-likelihood fit whose first start does not converge restarts once instead of failing, keeping the kernel’s prior state across the restart. C ABI 1.15 adds
gpr_model_fit_restartsto read the restart count, with the C++, Fortran, Python, Rust, R and Julia bindings; after a restartgpr_model_fit_iterationsand the report’soptimizer_iterationscover both passes. No struct layout changes.Add a “Methods and design decisions” section that records every scalable-GP and numerical technique tried, with its status, switch and measured outcome. Add how-to guides with runnable examples for the covariance operator layer, automatic random features, the atomic inducing posterior, HS-SVD, derivative providers, the noise floor, the C API model lifecycle and the choice of solver by problem size. Add a per-function C API reference.
Add a generic derivative-provider interface for analytic posterior Hessians and finite differences of physical forces, with an opt-in Enzyme toolchain probe.
Added Spack packaging updates for gpridge (latest tagged release and
develop, Fortran/Python/rgpot/UMA/Kokkos variants, and seven install tests), updated companion recipes includingira@2.2.0, and Spack installation documentation (docs/orgmode/howto/spack.org).Added
gpr_model_get_noise_floor_reportandgpr_noise_floor_report_t(C ABI 1.14, FortranNoiseFloorReportandGPModel%noise_floor_report). For a trained exact-kernel HS-SVD MAP model the report gives the likelihood noise plus jitter, the condition-floored noise the trained factor inverts, the certificate gapeps_K - lambda_min_certand the floored noise the variance interval certifies. The C++ wrapper, the Rust safe wrapper, the R and Julia packages and the PythonGaussianProcessexpose the report and the interval.Added a public development quick reference,
codemeta.jsongenerated fromCITATION.cffviacffconvert, build-timellms.txtandllms-full.txtgeneration,robots.txt, OpenGraph and Twitter card metadata with a1200x630social card rendered fromassets/branding/gpridge-saddle-logo.svg,schema.orgSoftwareSourceCodeJSON-LD on the documentation index, and completed package metadata acrosspyproject.toml, Meson/pkg-config,fpm.toml,Cargo.toml,Project.toml, andr/gpridge/DESCRIPTION.Added opt-in BFGS, SR1, and Bofill Hessian estimates from consecutive true force evaluations. gprn and gprd can check GP directional curvature, use the secant as a quadratic GP mean, and seed band, dimer, and P-RFO curvature. The force-call summary always prints the secant counters. All of these paths remain off by default.
Added opt-in rigid-motion nullspace deflation (
use_rigid_null_deflation/--gp-rigid-null-deflation/setRigidNullDeflation, defaultfalse). When enabled, projects each free training geometry’s Cartesian gradient block onto its orthonormal rigid-motion complement before dense Cholesky or HS-SVD factorization, reducing the factored order by 6 modes per geometry (5 for linear molecules, 4 for 1D-periodic minimum-image cells, 3 for 2D/3D-periodic minimum-image cells). Closed-form rigid-subspace noise terms reconstruct the posterior mean, posterior variance, and negative log marginal likelihood of that projected factorization. The diagnostic is deflated_exact only when the relative Schur residual (sum_i ||K_i R_i||_F^2 / sigma_i^2) / max(1e-30, ||K_grad||_F) is at most 1e-10, the tolerance at which this reconstruction certifies the undeflated posterior. When the signal-kernel nullspace check passes but that residual is above 1e-10, the diagnostic is deflated_projected and the closed-form terms do not certify that the undeflated posterior mean, variance, and negative log marginal likelihood are unchanged. Deflation activates only with zero frozen atoms in the kernel frame, a complete Cartesian channel layout, uniform per-row gradient noise within each geometry block (checked with a relative tolerance), and a verified signal-kernel nullspace (||K R||_F<= 1e-10 * max(1e-30,||K_grad||_F), including cross-block checks on incremental Cholesky appends), with deterministic logged diagnostics. Combininguse_rigid_null_deflation = truewithprincipled_nugget = trueor running on ScaLAPACK builds is rejected with an explicit error rather than silently ignored.schema/params.capnpextends schema version 5, and C ABI 1.22 addsgpr_model_set_rigid_null_deflationandgpr_model_get_rigid_null_deflation(with matching C++, Fortran, Rust, R, Julia, and Python parity) without changing existing struct layouts.Added the thread-local
gpr_neb_request_sidpprequest (C ABI 1.16), with matching C++, Fortran, Python, Rust, Julia, and R bindings, so the next NEB search can select sequential IDPP (1) or classic IDPP (0) without changing the releasedgpr_neb_config_tlayout. SIDPP remains the library default. Every NEB search entry point consumes the request, including a search that argument validation rejects, and the Pythongp_nebandrun_ocineb, which take their settings fromGPNEBConfig, discard it.gpr_neb_search_periodicandgpr_neb_search_periodic_potentialtake their initializer fromgpr_periodic_band_config_t::initialalone, so the request has no effect on them, andGPR_PERIODIC_BAND_SIDPPbuilds the sequential IDPP path.gpr_neb_request_index_certificatekeeps its ABI 1.6 behaviour: a rejected search leaves it for the next search.Bayesian quadrature integrates a Lebesgue box, the uniform probability on that box, and a Gaussian measure. Isotropic Matérn moments in any dimension use a one-dimensional gamma mixture of analytic squared-exponential kernel means. The integral report keeps the historical variance and also returns the raw GP, observation-noise, hyperparameter, and numerical contributions separately.
Bayesian quadrature training can store an explicit integration box.
gpr_bq_train_bounded_checkedis part of C ABI 1.17, and the C++ model, the RAII wrapper, and the Rust, Python, R, Julia, and Fortran bindings expose the same call. Training without bounds still infers the box from the data extrema.C ABI 1.11 adds
gpr_model_train_checked,gpr_model_update_checked,gpr_model_predict_checked,gpr_model_predict_variance_checked,gpr_model_predict_full_checkedandgpr_model_predict_batch_checked. Each takes the length of every caller buffer and returnsGPR_ERR_INVALID_ARG, naming the buffer, for one that is too short; no existing declaration or struct layout changes. TheForceFnthird argument,gpr_force_fnand the Fortrangpr_force_interfacecall itenergy_noise_rms, which is what it always held (a standard deviation, not a variance).C ABI 1.13 adds prior-free marginal-likelihood fitting with a selected-parameter report, held-out true-force and closed-form leave-one-out residual calibration through one shared report, and fixed-hyperparameter Cholesky block appends. Buffer-taking calls are extent-checked; no existing declaration or struct layout changes.
C ABI 1.17 adds heteroscedastic scalar Bayesian quadrature, cumulative integral covariance and seeded joint samples, candidate variance reduction, and leave-one-out z-scores. The in-tree Rust system crate adds an owned safe wrapper with one-dimensional convenience methods.
C ABI 1.20 adds harmonic (Vineyard) rate prefactors and the batched posterior derivatives they are built on.
gpr_model_mean_hessian_batchandgpr_model_mean_hessian_action_batchreturn exact posterior-mean Hessians and Hessian-vector products at many points, with rigid invariance residuals and rigid projection behind a flag.gpr_model_hessian_bilinear_covariance,gpr_model_hessian_trace_varianceandgpr_model_posterior_variance_batchgive the matching probabilistic uncertainty, andgpr_model_condition_fixedconditions a model on new oracle rows without a hyperparameter refit;gpr_model_condition_fixed_hessian(and optionalhessian/hvparguments in the language bindings) additionally accepts a user-supplied exact Hessian or Hessian-vector-product callbackgpr_hvp_fnat the fixed point, validates its shape, finiteness and symmetry before mutating the model (no silent fallback), and uses it in the Vineyard prefactor instead of GP curvature. Each takes agpr_derivative_options_twith energy and length unit tags and a fail-closed support threshold, which returns the new statusGPR_ERR_OUT_OF_SUPPORT, and fills agpr_derivative_report_t.gpr_htst_half,gpr_htst_half_from_hessianandgpr_htst_ln_prefactorcompute ln nu from a minimum half and a saddle half, each from the GP Hessian refined by oracle Hessian actions until ln nu moves less than a tolerance (GPR_HTST_REFINED), from the full central-difference Hessian (GPR_HTST_MEASURED) or from the GP alone (GPR_HTST_SURROGATE). Every NEB search, including local and periodic bands, andgpr_minimizereport halves for their stationary points throughgpr_neb_result_prefactorandgpr_search_prefactoronly aftergpr_request_prefactoropts in withenabled = 1.NULLselects the surrogate at no extra oracle call, and a later call selects another mode or turns the halves off. The NEB saddle half reuses the index certificate’s measured stencil when one ran. A half that cannot be formed is stored with statusGPR_HTST_UNAVAILABLE.gpr_htst_ln_prefactorreturnsGPR_ERR_INVALID_ARGunless the minimum half has exactly one more real mode than the saddle half. Each half records theomega_scaleit was computed with, andgpr_htst_ln_prefactorreturns the new statusGPR_ERR_UNIT_MISMATCHfor two halves whose scales differ. The C++ wrapper, Fortran, Python, R, Julia and Rust bindings expose all of it.C ABI 1.23 adds
gpr_fes_t, a Gaussian-process free-energy surrogate on collective variables, withgpr_fes_create,gpr_fes_destroy,gpr_fes_dimension,gpr_fes_n_observations,gpr_fes_train_checked,gpr_fes_predict_batch_checked,gpr_fes_noise_from_weights_checkedandgpr_fes_rate_path_checked, the size-prefixedgpr_fes_config_t,gpr_fes_rate_config_tandgpr_fes_rate_report_t, and their init functions. It trains on free-energy values with optional gradient observations, each with its own noise variance and a per-row gradient mask, and predicts the mean, its gradient and the latent posterior variance of F. The configured noise and jitter add to the F observations only; gradient components take a separate added variance per collective variable, given togpr_fes_createor derived from the value noise and the spread of the training points along each variable, so a change of unit of one variable leaves the predictions unchanged.gpr_fes_noise_from_weights_checkedturns relative sample weights into variances inversely proportional to the weight, an approximation that ignores correlation between samples.gpr_fes_rate_path_checkedestimates an overdamped Kramers-Langer rate across a path: it locates the index-one saddle of the posterior mean by eigenvector following from the highest path point, to a gradient tolerance, and returnsGPR_ERR_NOT_CONVERGEDwhen no such saddle lies on the path. It takes a diagonal diffusion tensor, one coefficient per collective variable in that variable’s unit, and samples F and its Hessians at the reactant and the saddle jointly from the posterior, so the barrier carries the covariance between the two points; it reports means and standard deviations of the barrier, prefactor and rate, and equal-tailed intervals of the barrier and the rate only, and returnsGPR_ERR_UNSUPPORTEDwhen the mean barrier is not positive or fewer than 90% of the draws have a positive barrier, a positive-definite reactant Hessian and an index-one saddle. The C++ wrapper, Rust, Fortran (FESSurrogate), Python (gpridge.FreeEnergySurrogate), R and Julia bindings expose it. The squared-exponential kernel is the only one supported.C ABI 1.24 adds
gpr_model_predict_hessian_checkedand the FortranGPModel%predict_hessianbinding, andlibgpr_engineexposes checked Hessian, Hessian-action and prediction-support entry points alongside the saddle-quadratic residual prior, phase/learn hints and operation counters.C ABI 1.26 adds the scalar surrogate and the parameter search. A
gpr_sgp_t(gpr_sgp_create,gpr_sgp_destroy,gpr_sgp_n_observations,gpr_sgp_set_kernel,gpr_sgp_set_mean_basis,gpr_sgp_set_hyperparameters_checked,gpr_sgp_get_hyperparameters_checked,gpr_sgp_observe_checked,gpr_sgp_fit_checked,gpr_sgp_predict_checked) observes rows with one noise variance each, fits its hyperparameters by marginal likelihood and predicts the mean with the latent or the noisy standard deviation. Agpr_psearch_t(gpr_psearch_create,gpr_psearch_destroy,gpr_psearch_set_allowed_values_checked,gpr_psearch_observe_checked,gpr_psearch_propose_checked,gpr_psearch_best_checked) proposes batches over linear, logarithmic, integer and listed axes, with optional constraint values and a noise-aware incumbent. The Python package exposes them asgpridge.ScalarSurrogate,gpridge.ParameterSearchandgpridge.PsearchAxis; the C++ wrapper, the Fortran module, the Rust crate and the R and Julia packages bind the same functions.Document every public name in the Python
_corestub, every exported Julia name, and every exported R function. Wheels are built for CPython 3.11, 3.12 and 3.13, so the Python 3.14 classifier is no longer advertised.Exact posterior-mean gradients, Hessian-vector products and Hessians for radial (SE, Matérn 3/2, Matérn 5/2) expansions with energy and gradient observations, computed by four interchangeable methods (hand-derived, derived symbolically in SymPy with common-subexpression elimination, hyper-dual and jet forward-mode AutoDiff) behind one interface, with a deterministic operation counter. The generated coefficients are reproduced by
scripts/codegen/radial_kernel_jets.py, which the test suite checks against the committed header.Expose trained Gaussian processes as position-based surfaces, ASE calculators, and native rgpot potentials, with fit and training-data inspection.
Kokkos GP models retain an owned device factor across posterior queries. Combined covariance solves keep their intermediate on the device, and variance queries return only the column norms. A native benchmark reports operation times and transfer counts for host, stateless, mutable-workspace and immutable-factor routes.
Kokkos dense posterior conditioning keeps its covariance, equilibrated factor, coefficients, prediction intermediates and likelihood weights in device memory. Native CPU and GPU checks compare the results with independent dense references.
New tutorials take the C API from a GP model to a GP dimer saddle and the shipped
examples/capi_*.cprograms, run a GP-OIE band from C++ withgpr::neb::gpNEB, and explain OCI-NEB with a worked comparison of CI-NEB, GP-OIE andgpr_ocineb_search; a how-to coversgpr_minimizeandgp_minimize. The C++ GP-NEB how-to, the R and Julia examples and the native-package install steps now run in the documentation test, the R and Julia ones against the installed prefix through the new:needs-installheader ofscripts/run_doc_examples.py. The build options reference listsenzyme.Precompute 3x3 Cartesian pair-Hessian blocks in
PreparedHssvdHessianVector(InverseDistanceDescriptor::computeWeightedHessianPairs) so repeated HS-SVD posterior mean Hessian-vector and Hessian-block contractions avoid per-direction dense descriptor Hessian allocations, and add prepared analytic mean Hessian operators forAdditivePairKernel,Pullback, andMatern52.Production Scheme II CUDA launch sizes can be compared with Kernel Tuner while checking every result against the CPU reference. The GPU and performance guides distinguish oracle offload, matrix products, dense solves and approximate GP inference.
The C ABI 1.12 adds an extent-checked posterior-mean Hessian action and exposes the GP active-learning kernel-support decision through C and Fortran model calls.
The C API now exposes the HS-SVD stable-basis posterior solver through
gpr_model_set_hssvd_backendandgpr_model_get_hssvd_backend. Both takeGPR_HSSVD_BACKEND_DEFAULT(0, the library HS-SVD default),GPR_HSSVD_BACKEND_HSSVD(1) andGPR_HSSVD_BACKEND_CHOLESKY(2). The setter rejects any other value. A zero-initializedgpr_model_config_tkeeps the default. GP-NEB and OCINEB honor the same choice.The EasyBuild recipe generator takes
--uma VARIANTand adds the UMA oracle to a recipe: the engine plugin built against a prebuilt libtorch (cpuor a CUDA tag) and Cap’n Proto.easybuild/uma_dependencies.pywrites the easyconfigs of those two dependencies for the foss/2026.1 generation, whose Python has no torch wheel.The EasyBuild recipe installs the saddle library of rgsaddle,
lib/librgsaddle.so, built from the revision the wrap pins with its C API, and names it in the module asRGSADDLE_LIBRARY; the kappa dimer and the converged-saddle check of an installed module load it. A recipe with the UMA oracle also checks that the engine is installed.The Lennard-Jones pentamer tutorial includes Python, C++, C and Fortran examples, an energy profile and a two-distance projection. The SciMap guide shows how GPRidge passes search data to ReadCon, ASE, RgPyCrumbs and ChemParsePlot.
The build writes CycloneDX 1.5, SPDX 2.3 and SPDX 3.0.1 SBOMs, selected with the Meson option
-Dsbom(autoby default,enabled,disabled). The generator checks licenses with thelicense-expressionpackage; without itenabledstops configure andautobuilds without the SBOM, with a Meson message. They install toshare/gpridge/sbom, a wheel carries them ingpridge/sbom, and the SHA-256 of the CycloneDX document is compiled intolibgpridge. Every configured Meson subproject is listed, with its version and license read from its own metadata.gpridge.read_build_info()returns the verified build inventory next to the runtime component registry.The native EasyBuild recipe supports the cuSOLVER backend with a CUDA runtime module and an allocation-local CUDA cache.
--potential orca(TOML[oracle] potential = "orca"with[oracle.parameters.orca]) runs ORCA through rgpot’s ORCACPot and liborcac: GPRidge hands thePotentialConfig.orcaarm (method, basis, keywords, charge, multiplicity, nprocs, maxcore, timeout) to liborcac, which writes the ORCA input, runs the orca executable and reads the.engradback. SetORCAC_LIBRARYtoliborcac.so.codemeta.jsonrecords the GPRidge paper (arXiv:2611.20591, doi:10.48550/arXiv.2611.20591) as itsreferencePublication, taken from thepreferred-citationofCITATION.cffbyscripts/gen_codemeta.py.curvature_mode = nlml_hessian_vector(--curvature-mode nlml_hessian_vector, Cap’n ProtonlmlHessianVector) is an opt-in curvature source. rgmin SCG, the length-scale tie screen and the marginal-likelihood stationarity check then take their curvature from the exact Hessian-vector product of the Gaussian negative log marginal likelihood. The optimizer and tie screen add the MAP penalty curvature; the stationarity check uses the unpenalized marginal likelihood. A Student-t process, the residual diagonal correction, a leave-one-out objective, an active HS-SVD Q-form objective and the ScaLAPACK backend have no such product; for them, and for a product that fails during a fit, each site takes thefinite_differencepath (the gradient probe, the tie screen’s gradient differences, the stationarity secant), logs it at report level 1 and records it (RgminScg::hessianVectorFallback,GaussianProcessRegression::nlmlHessianVectorFallbacks()).exactstays the default, andexactandfinite_differencerun the code they ran before, with the same results. The C ABI does not change.easybuild/generate_easyconfig.py --backend kokkosrenders a recipe for the portable Kokkos backend against theKokkosandKokkos-Kernels5.1.1 modules offoss/2026.1.--cuda 13.3.0selects their device installation and writes the Meson native file fornvcc.easybuild/kokkos_pic.pyderives the position-independent Kokkos easyconfigs that recipe depends on. The ScaLAPACK and Kokkos device recipes acceptRUNPATHin EasyBuild’s sanity check. The device recipe stops before configuring when the Kokkos module has no CUDA device, which is what the stock easyconfig installs on EESSI.kokkos_pic.py --cuda-archderives a Kokkos easyconfig that enables the backend for a named GPU architecture.gp_minimize,gp_neb,run_ocinebandAtomicDimer.set_training_policytake a training policy. The default is the engine’s own decision. The four-argumentgpr::optim::gp_minimizesymbol is unchanged; the policy is a fifth-argument overload.SizeCapPolicy,DistanceDedupPolicy,VarianceThresholdPolicyandFreezeHyperparametersPolicyare the four shipped recipes. The C API is unchanged.gpr::bo::ParameterBoundgainsinteger,allowed_valuesandcategorical.gpr::bo::minimizerounds candidates to the lattice of such axes inside the acquisition, never evaluates a lattice point twice, and stops when a small lattice is exhausted. An allowed-values list, such as the divisors of a core count, is ordered by position; a categorical list is compared for equality through the new categorical flags ofScaledEuclideanDistance, whichScalarLikelihoodDataandScalarSurrogatecarry as well.unitToParameter,parameterToUnit,snapUnit,isDiscreteandvalidateBoundexpose the mapping.gpr::bo::ParameterObservationgains aconstraintvalue, feasible at or below zero.gpr::bo::ParameterSearchfits a second scalar GP to it and multiplies expected improvement by the probability of feasibility; before a feasible loss exists it proposes by that probability alone. A run without a loss is recorded with a non-finite loss and a positive constraint.predictFeasibility()returns the probability, andprobabilityOfFeasibilityandconstrainedExpectedImprovementForMinimumare the scalar formulas. The feasibility model is a regression on the constraint value or on -1/+1 labels, not a classification likelihood.gpr::bo::ParameterSearchConfig::noisy_objectivemakes the incumbent ofgpr::bo::ParameterSearchthe smallest posterior mean at the evaluated points instead of the smallest observed loss, the plug-in form of expected improvement for a noisy oracle. A single lucky run then does not capture the search, an evaluated point can be proposed again as a replicate, andbest()reports the posterior mean.gpr::bo::ParameterSearchis an ask-and-tell parameter search:observerecords an evaluated parameter vector, with its noise variance when known, andpropose(q)returns up toqvectors to evaluate together. The batch is built with the constant liar heuristic, with the incumbent as the lie.best(),predict()andhyperparameters()read the state.ParameterSearchConfiggainsradial,fit_hyperparametersandfit_startsfor it.gpr::bo::ScalarGaussianProcess::fit(x, y, noise_variances)takes one noise variance per observation row and adds it to that row’s diagonal entry, andfit(x, y, noise_variance)keeps the shared form.predictreturns the standard deviation of the latent function, and the newpredictObservationadds the noise variance of a new run.noiseVariance()andobservationNoiseVariances()read the stored values.gpr::bo::ScalarGaussianProcess::setMeanBasissets a meanm(x) = phi(x)^T betafrom caller-supplied basis functions.fitestimatesbetaby generalized least squares together with the process, andpredictadds the variance term from the uncertainty ofbeta.meanCoefficients()andmeanCoefficientCovariance()return the estimate and its covariance. The zero mean stays the default, andsetUsePriorMean(true)is the constant basis.gpr::bo::fitScalarHyperparametersmaximizes the log marginal likelihood of the scalar GP over one length scale per axis, the signal variance and, when the rows carry no noise variance of their own, the noise variance. It runs the rgmin L-BFGS solver from several starts inside a box, with the analytic gradient ofscalarLogMarginalLikelihood. The newgpr::bo::ScalarSurrogateholds a scalar GP whose radial shape (RadialKind), hyperparameters and mean basis are run-time values, andoptimizeHyperparameters()fits them.ScalarGaussianProcess::logMarginalLikelihood()reports the value at the last fit.gpr::linalg::kokkosTransferAuditStats()reports every Kokkos copy the library makes: calls and bytes by direction, the logical host/execution crossings, and the largest single crossing.resetKokkosTransferAuditStats()starts a new window. Every library copy goes through one audited wrapper, including the status reads and pair, channel and geometry uploads that used to bypass the counters.gprdandgprnof a Kokkos build close their report with aDevice posterior:line: the execution space, the fits conditioned on the device and those that fell back to the host factor, factorizations, appends and reuses, the bytes that crossed the host boundary, and any download of the factor or the coefficients.gprn --gp-endpoint-symmetry truetrains the band GP on the symmetry image of every oracle row for a degenerate rearrangement, whose product is the reactant with like atoms relabelled and rigidly moved. IRA finds the relabelling, and the run refuses to start unless the operation carries each endpoint to within--trust-radiusof the other, or when the frame has fixed atoms or a periodic cell. Only the OIE and AIE modes accept it. The image row is exact for a potential invariant under relabelling like atoms and rigid (including improper) motion, and it never reaches the observation archive. An image within the endpoint residual or the resolution floor of a row is refused, and the run prints the images admitted and refused. In C++ the switch isGPNEBConfig::symmetry_permutation; it is empty by default, which leaves the training set unchanged. The C API is unchanged.gprnandgprdload any rgpot engine plugin from configuration alone:[oracle.plugin](library_path,params_path) or--potential-librarywith the new--potential-params FILEhands the file’s bytes to the engine unread, so a backend needs no engine table entry.gprdnow honours[oracle]of a TOML--configasgprndoes, with command-line flags taking precedence. The unified schema gainsInputParameters.oraclePlugin(schema version 4).gprntakes the per-image IDPP, S-IDPP and inverse-distance S-IDPP seeds from the linked rgsaddle library (C ABI minor 71) and prints[startup] path_seed engine=rgsaddle.scripts/gp_environment_types.py --descriptor bondstypes atoms for--gp-environment-typesby element and bonded neighbourhood,--hopsbonds deep, with no dependency beyond ASE. On a 78-atom BODIPY rotary motor, where the knn+soap default gives 59 environments and 1724 pair length scales, it gives 10 and 52 at one hop and 24 and 291 at two, and keeps the hydrogens of each methyl in one type.docs/environment_types.mddescribes how the number of pair length scales grows with the types and lists measured counts. The default descriptor is unchanged.scripts/gp_environment_types.py --descriptor decaftypes atoms by their DECAF classes in each endpoint when the anneal Python package providesdecaf_atom_classes. The cutoff defaults to 3.5 A for it, and--decaf-radiussets the leader radius. On the BODIPY motor it gives 10 environments and 52 pair length scales, the partition ofbondsat one hop. Without anneal the descriptor stops with a message and the other descriptors are unchanged.gprn, gprd, and the Python searches can start from a saved GP (
--gp-init,--restart, orgp=/init_data=). The seed rows are prior data, not oracle calls, and the run records a sha256 of the seed file.
Developer¶
The historical unified fixture layout check and the rest of the parameter tests run on every platform. (#338)
“Design variance forms the cross covariance in the working type” adds six queries in the range of the training design, where the variance is near the floored noise and rounding k* to binary64 moves it by about 1e-10 of its value. It checks that the binary64 variances of an evaluation with a binary64 k* differ from the pinned ones for some query, so the pin fails for an implementation that rounds k* first under double-double as well as x87; the previous queries differed only in the working-type value, which the final round-up hid for double-double.
A static build with OpenMP off no longer inherits
-fopenmpfrom rgpot’s cell walk or from linkcell’s libgomp link. Shared builds keep rgpot’s internal OpenMP and still export a consumer dependency without that edge.An installed-package benchmark measures complete C++ GP fits, mean predictions and variances on deterministic energy-and-gradient observations, retaining numerical outputs, individual timings and optimizer status for backend comparisons.
Every code block of the tutorials and how-to pages is run by
scripts/run_doc_examples.py: shell, Python, C, C++ and Fortran blocks under the meson suitedocsand pytest, with the checked output stated in the block header. A block that cannot run in CI says why (:eval no :why,:needs-env,:needs-bin), anddocs_example_lintfails on a block with neither. The docs workflow also runs the reference generators in check mode and a coverage check of the C API symbols against the reference page.Secant Hessian seeding is now tested at masses 194, 24 and 1: a measured-step seed of a convex mass-weighted quadratic keeps the sign and the measured curvature in 2000 deterministic cases, and the whole-Hessian seed that the dimer walk uses reproduces the mass-weighted Hessian.
The benchmark commenter workflow skips pull requests from forks, never runs pull-request code, takes the commit to comment on from the
workflow_runevent instead of the artifact, checks the size of the comparison it posts, and pins its actions by commit.The bordered eps_K and certificate-gap tests no longer pin values derived again by
tests/gpr/ml/gp/BorderedEpsKReference.h, which repeated the production derivation step by step with the library’s own directed-rounding helpers and so could not catch an error shared with it. They check bounds that follow from the stored kernel alone (BorderedCertificateEnvelope.h): the gap is at least the assembly error less lambda_min of the kernel’s exact symmetric part from an 80-digit mpmath spectrum, which soundness requires, and at most the resolution of the binary64 eigensolver above it. The Gram residual and latent training-row bounds are checked against their formulas evaluated in binary128, and the reported gap is checked to be the same at every noise level.The default pixi environment no longer installs pytest. Meson configures in that environment, and rgpot registers
ipi_driver_asewhenimport pytestsucceeds; ASE is not installed there, so the test exits 5. pytest stays in the python, symbolic and petmad-assets environments.test_build_sbomis registered only when this interpreter can import pytest and the other SBOM modules.The developer guide documents build and test commands, the repository layout, C API and ABI rules, and the language bindings.
scripts/gen_llms_txt.py --validatenow fails when a prose page linked fromllms.txtis absent fromllms-full.txt.The exact binary128 oracles of the directed-rounding, Ozaki and training product tests order and take magnitudes of
__float128values from their encodings (tests/support/ExactBinary128.h) instead of with relational operators orfabsq. Those operators call the soft-float__lttf2family, which the Rust staticlibs on the test link line also define, with a 32-bit return where libgcc’sCMPtypeis 64-bit on x86-64. Whichever archive the linker met first decided the result, so a GCC build could fail 2568 assertions of “Directed binary64 operations bound every edge case”, and the OzakiabsErrorcould return a negative error that passed every tolerance. The test objects no longer reference those symbols.The example runner
scripts/run_doc_examples.pynow coversREADME.org,python/README.org,CONTRIBUTING.org,schema/readme.org, the verification notes and the Markdown pages as well asdocs/orgmode, and runs Rust blocks. A#+DOC_OUTPUT:listing before an output block is asserted against what the block before it prints, with numbers compared to the precision they show and placeholders (<s>,<n>,<version>) for machine-dependent values.--prefixlinks the C and Fortran blocks against an installedgpridge.pc,--inventoryand--coveragereport every block and every uncovered file, andscripts/ci_docs_tests.sh(pixi run -e python docs-tests) runs the lint, the mesondocssuite, the installed-library run and the pytest suites. The docstringExample::blocks ofgpridgerun under pytest with EMT standing in for the exported model. Stale listings were corrected: the CuH2 example, the dimer observer counts, thegpridgeparameter error text, the C++ reference ABI number and the missingwall_clock_limitanduncertified_force_stoprows of the Python termination table.The free-threaded GIL probe in
python/tests/test_binding_fixes.pybuilds against the nanobind thatsubprojects/nanobind.wrappins and fails, rather than skips, when it cannot preprocess. The probe used a pip-installed nanobind 3, which sets the module GIL slot inside its compiled library, so it never saw the declaration it checks.python/tests/test_readcon_script_io.pyimports click at module level andscripts/run_sanitized_pytest.shstops with a message naming the test extra when click is missing, so the script tests are never silently skipped.The version update command uses Cog to generate the CITATION.cff version from meson.build and regenerates CodeMeta from that citation.
DerivativeProviderTestgains a mixed-direction anisotropic Hessian-vector-product check. It evaluates a Gaussian well with unequal lengthscales atx = (3e-5, 0.5)along(1, 1), both as written and normalised, and compares the finite-difference action with the closed-form Hessian times the direction. The tolerance sums the Richardson term, the force-roundoff floor and a coordinate-rounding term, and the check fails if the action drops the off-diagonal terms. The roundoff floor of the directional-step tests now followsfiniteDifferenceDirectionStep.numerics.orglinks the test file in-tree instead of an orphaned commit, and the how-to and design note no longer name the reserved ABI minors 1.14 and 1.15.scripts/check_install_closure.pyisruff formatclean andtest_install_closure_commentsis registered only when the interpreter has pytest.gpr/linalg/BackendInterface.hnames the memory and execution spaces, the arithmetic class and thread budget of a linear algebra backend and the distributed kernel provider seam, andBackend.hchecks that the selected backend provides the whole local operation set.docs/design/linalg-backend.mdrecords the inventory of dense linear algebra and the residency plan.scripts/check_c_api_reference.pynow also fails when a C function has no filled row in the function reference or no documentation comment in the header, and runs as the meson testsdocs_c_api_referenceanddocs_c_api_reference_self_test.scripts/codegen/radial_kernel_jets.pynow runs only under the SymPy release it pins (PINNED_SYMPY_VERSION, the versionpixi.lockresolves) and exits 77, a Meson skip, under any other version or without SymPy, sotest_radial_kernel_jets_codegenno longer depends on the host’s SymPy.test_radial_kernel_jets_sympy_gateexercises both the pass and the skip path without SymPy and fails if the pin andpixi.lockdisagree.scripts/run_sanitized_pytest.shrunspython/testsagainst a sanitized build tree,tests/sanitizers/ubsan.supplists the one third-party report with its justification, the sanitizer matrix runs with leak detection on, and the pytest markersanitizer_incompatibleseparates the two files that cannot run with a preloaded sanitizer runtime. The readcon test helper loads the library withdlopeninstead ofdlmopenin a sanitized build, wheredlmopencrashed the AddressSanitizer runtime.meson setupnow refuses a sanitized build withwith_ira=truewhen the Fortran compiler that builds IRA is not the C++ compiler, becauselibira.sowould link a second sanitizer runtime andgprnwould abort. Pass-Dwith_ira=false.test_engine_library_loadsandtest_engine_answers_a_cold_query_from_the_oracleinpython/tests/test_wheel.pyno longer skip whenGPR_ENGINE_LIBRARYis unset in an uninstalled tree; the engine library must load.test_install_consumerbuilds with a compiler launcher such asCC='ccache gcc':tests/cinstall/smoke.shpasses the launcher to CMake asCMAKE_C_COMPILER_LAUNCHERand the compiler asCMAKE_C_COMPILER, and looks for the C++ compiler’s Eigen under the compiler’s prefix instead of the launcher’s.
Changed¶
Rgpot energy variance is converted to energy-noise RMS. A negative variance within 1e-8 of zero, relative to 1 eV^2, is cancellation and becomes zero RMS; a more negative variance is an error. GP surfaces validate the moving atoms’ species and the periodic cell axes. The periodic-cell tolerance is scaled by the periodic lattice vectors only, so a long vacuum direction does not loosen it.
GaussianProcess.as_rgpot()is the preferred refit-aware construction path; the compatibleRgpotGPSurface(model)constructor remains available. Third-party rgpot callables must now return energy variance in tuple slot 3; callables that still return RMS there will have its square root applied.GprMeanPotentialnow throws when atomic numbers are missing or the box pointer is null. Its C++ object grows by 8 bytes (epoch_base_,base_factor_epoch_), so C++ consumers must rebuild. The C ABI is 1.24. This change does not alter it. (#319)A device prediction that reads only the mean no longer copies the cross covariance and runs the triangular solve of its variance; the variance is computed when it is first asked for.
Automatic random-feature selection is opt-in (
rff_features = "auto",--rff-features auto, or Cgpr_model_set_rff_features(model, -1, fraction)). The count doubles from 1 up to the twice-overdetermined guard until the held-out random-feature posterior matches the exact GP to a fraction of the 0.0514221 eV/Å force tolerance. The default fraction is the gradient-noise standard deviation over that tolerance, so the approximation cannot move a converged decision outside the band the noise already blurs. The exact validation Gram stays under 256 MiB. A count that misses the tolerance is reported and refused. The default remains off, and C ABI 1.9 adds the two calls without changing an existing struct.Builds without an installed Google Benchmark take it from the WrapDB
google-benchmarkwrap, so a toolchain without it (such as EESSI) still configures the tests and benchmarks.Inside a tied objective the Kokkos molecular posterior contracts each group of tied length scales once, and an assembly builds its totals without per-type tables, so the memory of a fit no longer grows with the number of environment pair types.
Rigid endpoint alignment and the aligned RMSD (
aux::kabschAlignProductToReactant,aux::calculate_aligned_rmsdand the endpoint connectivity report’s labelled RMSD) are computed by rgmin’srgmin_rigid_aligninstead of three in-tree Kabsch copies.aux::rigidAlignedRmsdreturns that RMSD directly. Results agree with the previous SVD to rounding.The IRC driver steps with rgsaddle (
rgsaddle_irc_create,rgsaddle_irc_step,rgsaddle_irc_set_direction,rgsaddle_irc_set_lengths) and throws if that runtime is not available. Morokuma keeps a fixed length. MorokumaExtended adapts that length in the library. An older librgsaddle withoutrgsaddle_irc_set_lengthsthrows and does not fall back to a local stepper.The Kokkos molecular posterior assembles its covariance and contracts its hyperparameter gradient over the pairs of each entry’s own atoms. A Cartesian slope of an inverse-distance feature is zero for every pair that does not contain its atom, so an entry visited all pairs to add zeros; the squared feature distance of two geometries, which every entry of their block shares, is now computed once. The assembled matrices are unchanged bit for bit. The two slope sums of an entry depend on one row and the geometry of the other, and are tabulated once per assembly, so an entry reads them and loops only over the pairs two coordinates of one atom share.
The Kokkos molecular posterior no longer loops over the pair types in a covariance entry or a gradient term: the per-type sums are totalled once per pair of geometries and per row, and the gradient sums the coefficients of its entries into tables before it meets the per-type sums. A model with hundreds of environment pair types costs what one with a few does, apart from the tables.
The Python distribution is now named
gpridge(pip install gpridge, https://pypi.org/p/gpridge). The import package is stillgpridge, andimportlib.metadata.version("gpridge")gives the installed version.The UMA oracle is built through the
with_umaoption of rgpot, against torch alone: the metatensor and metatomic packages are needed only foruse_rgpot_metatomic. Torch may be a libtorch tree named byRGPOT_TORCH_ROOT, and the static OpenBLAS that the build links next to torch is also looked for under$EBROOTOPENBLAS, so an EasyBuild toolchain can build the oracle.The
hdf5dependency inmeson.buildnow requires HDF5 1.12 or newer, the first release withH5Fis_accessible, whichmanagers/io/H5Dump.cppcalls. An older HDF5 found through pkg-config now stops configure with a version message instead of failing later in the compile.The documentation follows the Diataxis split: getting started, tutorials, how-to guides, reference and explanation. The
gprnandgprdflag tables, the TOML key list and the Fortran module reference are generated from the sources and checked in CI, the C and C++ APIs come from Doxygen, and the Python API comes from autoapi. Install routes state their prerequisites, the quickstart runs on the HCN band, and the pages that describedgprnflags, GP-NEB options, the C API and the ASE and eOn interfaces were corrected against the sources.The documentation is served from https://gpridge.rgoswami.me/. The sitemap,
robots.txt, package metadata and in-tree links point there, and the published tree carries aCNAMEfile for the custom domain.The minimage subproject is pinned to its main branch, which now carries the exact right-angle CON box and the unique-image radius that the engine uses. Its C functions are named with the
minimage_prefix there, and the engine calls them by those names. The fixes on that branch include evaluating image shifts in their original order.The records behind the JCIM figures are no longer in git.
paper/jcim/fetch_records.pydownloads them from the public Hugging Face datasetTheochemUI/gpridge-paperat a pinned revision and checks each file againstpaper/jcim/records/MANIFEST.sha256; the figure scripts and the documentation runner call it first. The periodic inputs that the tests read stay in the tree.The rgpot pin is develop at 4a5a7321, with rgconf’s potential schema and ORCACPot. rgpot’s own
use_openmpswitch replaces the consumer OpenMP patches, and the deterministic AOTI export is upstream;use_openmpis now passed as true or false.The rgpot subproject is pinned to its develop branch with the UMA device check: an oracle asked to evaluate on a GPU refuses a package that was exported for the CPU, and the other way round, and passes the CUDA device index to the runner. Before, a CPU package ran on the CPU whatever device was requested.
The true-oracle Hessian stencil stays the full Cartesian stencil by default: two gradient calls per coordinate, and a resolution that includes the rigid columns.
--vibrational-stencil vibrational, and[band] vibrational_stencil, displaces only the vibrational directions. One opt-in stencil costs2(3N - 6)oracle calls forNfree atoms,2(3N - 5)for a linear molecule and2(3N - 3)in a periodic cell. Its resolution is the measured block and can call a borderline mode resolved where the full stencil leaves it unresolved. A lone atom is measured in every coordinate either way. The oracle-stencil JSON records those directions as schema 3, and a stencil along every coordinate stays schema 1.Use GPRidge consistently across the Python module, native library, headers, build targets, and language bindings. Python users install and import
gpridge. Native users linklibgpridgeand find it through thegpridgepkg-config or CMake package. The C function symbols and data layouts stay the same.DerivativeProvider::hessianandhessianVectorarenoexceptand accept an optionalstd::string* reasonthat records why a call failed. Exceptions thrown from force, Hessian-preparation, and Hessian-action callbacks are caught at the provider boundary and reported through that string instead of unwinding into the caller. The standalone finite-difference scale and step helpers also provide non-throwing overloads that reset their output and report invalid options or positions through a reason string. The newcoordinateScalesfeature lets finite-difference column steps usehᵢ = h₀ max(|xᵢ|, scaleᵢ)with a characteristic scale per coordinate instead of the uniformcoordinateScale; HVP stencils normalize tiny or huge directions safely and weight each coordinate scale by the normalized direction component. Every provider now rejects a zero or non-finite HVP direction with a reason rather than returning an exact zero or evaluating a callback.Sexpatnow prepares its posterior-mean Hessian and Hessian-vector product in blocked compensateddoubleby default, packing fixed-vocabulary training pair features and gradient contractions into L1-sized blocks with TwoSum compensation across pair and training reductions. Extended-precision (long double) setup remains available as an explicitSexpat::HessianPrecision::LongDouble(setHessianPrecision/setUseLongDoubleHessian) option onSexpatandSexpatCF, and invalid primitive configurations or precision selections are refused without silent fallback. A zero signal variance yields the exact zero Hessian and action in either precision, whatever the length scales or coefficients, and thedoublepreparation throwsstd::range_errorwhen an inverse squared length scale or a gradient-weight contraction is not representable in binary64.gp_minimizeandgpr_minimizenow shareActiveLearningSessionwith the dimer and NEB drivers: the GP is refitted only when training data changes,hyperparameter_refitscounts completedrefitGPpasses allowed by any training policy (including passes where objective stationarity holdsthetaand refreshes the full posterior without running SCG), hyperparameter fits are warm-started once initial geometries seed the kernel with the objective-stationarity posterior refresh skip enabled (without advancing seed tracking on policy-declined refits),max_training_points(anchoring the newest and best-observed rows) andfps_historyare honoured during active learning, and exact recorded oracle evaluations are retained so convergence confirmation returns the exactx_final/e_final/g_finalevaluation and avoids redundant oracle calls when admissions are declined; a trust exit at a measured point that retention ormax_training_pointsremoved is admitted again from its record instead of being measured again, andretain_training_rowsruns once after the initial design and once per outer step. Each outer cycle (bounded bymax_iter) relaxes the GP surrogate in an inner deterministic L-BFGS (rgmin) loop of up toMinimizationConfig::max_inner_steps(defaulting toMinimizationConfig::kDefaultMaxInnerSteps,200, rejecting values< 1withstd::invalid_argument, and exposed forgpr_minimizewithout changinggpr_minimize_config_tlayout via the thread-local C ABI 1.18 requestgpr_minimize_request_max_inner_steps(taken by the nextgpr_minimizecall when it starts, so a nested call made from an oracle callback does not inherit it and a request made in a callback survives the outer return) with matching C++, Fortran, Python, Rust, R, and Julia bindings, also exported fromgpridge) steps inside the trust region withmax_moveandtrust_radiusapplied per atom, checking the whole step against the union of the training rows’ trust balls (so a step that crosses the gap between two disjoint balls and ends inside one is truncated where it first leaves the union) and truncating the crossing to that point, resetting the L-BFGS history whenever the surrogate changes or a trial is abandoned, never forming an L-BFGS curvature pair between a surrogate gradient and a held exact gradient, stopping without committing an unmeasured iterate when a training policy declines aTrustExitoracle evaluation or when the surrogate posterior is non-finite, and initializing the best-observed state from the lowest-energy initial measurement whose energy and gradient are finite, whether or not a training policy admits that row into the training set.MinimizationResult::total_iterations(and PythonMinimizationResult.total_iterationsandPolicyState.iteration/SearchState::iterationacross both oracle and hyperparameter-retraining hooks during minimization) now counts inner surrogate steps taken across outer cycles rather than outer cycles.gpr_neb_searchandgpr_neb_search_potentialnow run the default GP modes (GPR_NEB_GP_OIEandGPR_NEB_GP_AIE) when the coordinate length is three times an atom count, which is whatgpr_neb_config_defaultsasks for. Every atom moves and the model is the gprn NEB default.gpr_neb_search_potentialgives each element its own atom type, in order of first appearance, as gprn does;gpr_neb_searchhas no atomic numbers and uses one type. A length that is not a multiple of three is stillGPR_ERR_INVALID_ARG. To request model-free behaviour, setconfig.modetoGPR_NEB_STANDARD,GPR_NEB_AIE, orGPR_NEB_OIEbefore calling either entry point.gprnkeeps its band in the readcon output and writes--outputas a GP trace. The first frame of--write-con(and of its.corpus) carries the run summary underneb_summary: forward and reverse barrier, the oracle-call breakdown, convergence and its status, and the maximum-energy image.--outputholds a small per-outer GP trace by default (rootschemaattributegprn-gp-trace/2): the band energies, measured mask, NEB force norms, acquisition variance, hyperparameters and oracle-call count the loop already holds, at no extra posterior evaluation.--trace-band-history trueadds the global posterior snapshot (global_gp) per outer iteration,--gp-trace falseturns the trace off, and with neither a trace nor--full-h5no HDF5 file is written. It no longer repeats the band or the training set, which are in--write-conand the observation archive.--full-h5 truewrites the whole band to--outputin the shared NEB band layout (schemaneb-band/1):/path,/metadatawith atomic numbers and cell, 2-D/training,/summaryand/trace, rows as whole structures.rgmin is a required dependency.
-Duse_rgmin=disabledis a configure error. GP hyperparameter SCG and L-BFGS, dimer steps, and the L-BFGS two-loop go through rgmin. The in-tree SCG and L-BFGS solvers are removed. A curvature pair thatrgmin_lbfgs_pairs_push_rhodeclines is omitted.rgsaddle is a required dependency. The build cargo-builds the pinned wrap and links
librgsaddle.so; configure fails when that library cannot be built. Path seeds go through the linked library, and the local IDPP routines are gone.--rgsaddle-libraryandRGSADDLE_LIBRARYselect the index test. The band engine, the min-mode dimer and the kappa dimer stay opt-in.
Fixed¶
A failed variance check on an engine evaluation, an rgpot potential, or a GP mean surface leaves the caller’s forces, energies, energy noise, and force noise unchanged. A means-only batch, including a callable rgpot batch, checks every image before it writes any caller buffer. An eOn GP callback rejects a non-finite raw energy variance, or one below -1e-8, before it writes forces, energies, variances, or the surface epoch; a smaller negative value stays on that raw slot. An rgpot force-noise RMS must be finite and non-negative, or nothing is written. An engine evaluation, whether one system or a batch, an rgpot native batch, a callable means-only batch, and the per-image uncertainty walk reject a non-positive atom count before any call. A null energy pointer on the native batch, and a null energy or force pointer on the callable means-only batch, are left unwritten. An engine batch copies the shared box once per system only when that pointer is non-null, and otherwise passes no cell. A composed geometry and energy-uncertainty pair writes the caller’s energy noise only after the uncertainty source returns. (#319)
The historical unified Cap’n Proto fixture now has a reproducibility check, uses an atomic same-directory replacement, rejects unsupported schema commit arguments, and pins both historical and current root layouts exactly. Documentation sessions also defer post-processing when their native producer is unavailable. (#338)
Publish the Student-t hyperprior defaults (
prior_mu = 0,prior_nu = 20,prior_s2 = 1) consistently acrossInputParameters,applyCanonicalReadconDimerDefaults,applyGprdDimerDefaults,default_parameters(),canonical_dimer_parameters(), the Cap’n Proto schemas (schema/gprd_params.capnpandschema/params.capnpvia a wire-compatible struct-pointer default onGprModel.prior), and the TOML-to-Cap’n Proto converters (schema/gen_capnp_params.pyandscripts/prepare_petmad_assets.py).GaussianProcessRegression::initialize()copies this initial triple onto the Student-t magnitude, Gaussian length-scale, and log-normal priors, after which data-bearingsetHyperparameters()assigns separate scales (target_variancefor Student-ts2andseed_length_scale_^2for Gaussians2).initialize(),setHyperparameters()on classic profiles, and the prior densities (PriorSqrtt,PriorT,PriorGaussian,PriorLogNormal) now reject non-positive or non-finite prior scales instead of dividing by zero; refits whose marginal likelihood is non-finite at the input hyperparameters now fail explicitly, incrementnonfiniteMarginalLikelihoodRejections(), and report"non-finite marginal likelihood"as the stop reason. A dimer search now checks its L-BFGS hyperparameter recovery: when the recovered point does not lower the MAP objective by more than an absolute 1e-3, the earlier SCG point is restored, the fit reports failure, and its stop reason is"restored scg point"; the setting a caller had beforeexecute()is put back afterwards. The Cap’n ProtoschemaVersionis now 5: a version 5 message that omitsgpr.priorreads as the published defaults, while a version 4 message (theoraclePluginrevision), any older message, or a legacygprd_paramsmessage that omits it keeps reading as zeros, whichinitialize()rejects by name. Version 5 also addsNebParams.vibrationalStencilandDimerParams.vibrationalStencil.currentSchemaVersionis the one line that sets this threshold. (#342)Posterior covariances are accepted as rounding only inside a unit-scale backward-error bound, so a correlation entry larger than one no longer widens that allowance. Distributed Schur conditioning sums its residual with an exact cross-rank accumulator, and a resident Kokkos factor download is included in the transfer count. An empty resident factor’s Schur error is documented to return machine epsilon. (#346)
Fixed R callback re-entrancy and validation of callback status values. (#391)
The Eigen thread guard shared by the dense factor and the atomic inducing posterior is now one mutex-protected scope: concurrent fits no longer race on Eigen’s global thread count, nested scopes keep one thread until the outermost scope exits, and the previous count is restored when a scope unwinds. The guard’s state is never destroyed, so a static destructor that runs late can still use it, its symbols stay hidden in
libgpridge, andAtomicInducingPosterior::fitandevaluateno longer hold it across an MPI collective. The learned-noise gradient takes its trace from the same guarded factor as the covariance derivatives, so prior-free Eigen fits use the explicit inverse and an HS-SVD Q-form evaluation never reads a stale dense factor, and the Krylov gradient passes no factor. (#392)An R error during construction of a callback-backed potential leaked the C potential and its callback, and successful construction looped when the unwind continuation was not C NULL. Construction now returns the potential, and an unwind frees both. (#395)
The SPDX 3.0.1 document’s
elementlist no longer contains the document. SPDX 3 forbids an element of type SpdxDocument inelementand inrootElement; the document is the collection, androotElementstays the root package. (#409)The linkcell OpenMP patch now applies in source-distribution and wheel builds, so a packed wrap checkout still configures
linkcell:use_openmp. (#428)band.lbfgs.newton_agreementrejects a negative or non-finite value. Zero still leaves the curvature cap at the configured band trust, and a positive value is kept. (#438)A CUDA build against a Kokkos installation that also enables OpenMP compiles its device translation units with OpenMP and links the runtime. Kokkos refused them with
You enabled Kokkos OpenMP support without enabling OpenMP in the compiler.A GP arc-tail model that implements
prepareHessianbut returns no action now fails the search curvature instead of differencing predicted gradients. Models that do not implementprepareHessianstill use that difference.A GP-NEB band that the force-stop index certificate resumes now continues on the rows its search measured. Without a caller session each pass of
gpNEBbuilt an empty model: the resumed band measured both endpoints again and fitted three rows, the two tied endpoint minima and the stepped image, so the hyperprior alone set its length scale and signal variance. With the signal-variance prior floored, the escape case oftest_vibrational_index_pathleft the reaction axis on its first resumed relaxation and stopped at its outer budget after 330 oracle calls, or converged by chance after 313 calls and 14 s.gpNEBnow runs every pass of a GP-mode search that requests the certificate on one session, its own when the caller passes none, as OCI-NEB does: the endpoints are measured once and the case converges in 292 oracle calls, the OCI-NEB count, under OpenBLAS 0.3.26 and 0.3.33 alike.A GP-NEB recovery-growth observation is retained at most once per outer step and counts as one oracle draw. The acquisition batch admits the measured row and the outer step retains it, and an accepted recovery trial admitted the same row again. That asked the training policy a second time, archived the row twice, and merged it into itself, which raised its multiplicity and the training revision. The accepted trial now only records the row’s current-chain certificate when the training set still holds it, with or without a policy. A row that retention dropped is admitted again without a second archive entry, the policy is not asked again, and the session revision is marked as retained so the closing refit does not ask either. The C API is unchanged.
A GP-OIE band is no longer recalled to an earlier, lower climb when its climbing image carries an oracle energy at its present geometry. The recall rule guards against a barrier that only the surrogate reports; applied to a measured barrier it returned the band to an early corner-cutting climb after each measured step toward the saddle. At four ranks with two threads the Baker set takes 1089 oracle calls in place of 1130.
A Kokkos build accepts Kokkos Kernels 5.1 with cuBLAS or rocBLAS enabled. That release does not export the
KokkosKernels_TPLSCMake variable the build read, so configuration stopped withrequires KokkosKernels_ENABLE_TPL_CUBLAS=ON; the build now also reads the installed configuration header.A band with no finite interior energy reports quiet NaN forward and reverse barriers. The missing saddle used to be read as image -1.
A binary configuration is read as
gprd_params.capnpdimer input only when its root has the size of agprd_params.capnprevision: 6 data words and 10 pointers, 6 and 14, 7 and 14, or 7 and 15. A root between those sizes, such as 7 data words and 10 pointers, came from no writer and is now refused, with its size in the message. Before, such a root was decoded as dimer input.A binary configuration is read as
gprd_params.capnpdimer input or as aparams.capnpmessage only when its root has a size that some revision of that schema wrote. A largerparams.capnproot, from a newer writer, still reaches the schema version check. Any other root is refused with its size in the message. Before, a root from thegprd_params.capnprevision that numberedpruning@13 was decoded with the current field numbers.A build with
use_openmp=truenow gives the bits of a serial build for the triangular solves of a vector. The OpenMP solve sent a vector through Eigen’s blocked matrix kernel, where a serial build runs the matrix-vector sweep, and the two round differently, so the OCINEB bands oftest_capi_gp_nebandtest_fortran_gp_nebtook 53 oracle calls in an OpenMP build and 50 in a serial one. The Cholesky factor, the matrix solves and the inverse already matched.test_team_kernel_threadsnow checks every dense factor operation against the serial Eigen expression.A certified dimer force stop reports the curvature that the stencil measures along the dimer direction, including when the starting geometry already meets the force tolerance.
A charted Sexpat gradient that is not given a covariance factor now factors the training covariance itself. Under CHOLMOD the missing factor used to leave the trace term at zero.
A classic
gpr_neb_searchon coordinates that are not a whole number of atoms, such as a two-dimensional surface, no longer fails whengpr_request_prefactorhas opted in. The search runs without halves, the result holds none andgpr_neb_result_prefactorreturnsGPR_ERR_UNSUPPORTED, as the Pythongp_nebdoes.A climbing-image walk that has stopped above the force tolerance keeps its dimer handoff until the dimer is leased. A fixed-point grant is no longer dropped while the information gate is still waiting for training growth. The harmonic GP-NEB prefactor search records 18 oracle calls where it recorded 17, because the curvature cap shortens one saturated step and that step takes one more true-force evaluation.
A dimer force stop counts as converged only after a Cartesian index stencil at the stopped midpoint measures exactly one negative mode. This uses the existing certificate and its default stencil step. A stop that is not certified, such as the zero-force plateau of a Cu2 EMT dimer beyond the cutoff, ends unconverged with the new stop reason
uncertified_force_stop(GPR_DIMER_STOP_UNCERTIFIED_FORCE_STOP, C ABI 1.10). The stencil’s calls are reported asn_certificate_calls, andGPDimer.oracle_callsincludes them.gpr_dimer_report_t.certificate_step = 0now selects the library step. OCI-NEB keeps its band certificate. gprd without--force-stop-certificatenow runs the dimer’s own stencil and printsConverged: nofor an uncertified force stop; with the flag or--oracle-stencil, gprd’s certificate decides andConverged:reports that certificate. The dimer’smax_oracle_callsis checked before every oracle call and is never exceeded. A search stopped by the budget reports the best midpoint it measured.A driver that opens a torch engine also loads
libtorch.sofrom beside the engine’slibtorch_cpu. The compiled model of an oracle package needs it, the engine may not link it, and a model whose own run path names its export environment does not search the driver’s run paths, so an installed module stopped at its first oracle evaluation withlibtorch.so: cannot open shared object file.A force-stop index certificate that stepped the climbing image along a negative mode reported the force of the geometry it left; a band now resumes from the stepped image when its measured force is above the tolerance, and the certificate calls of earlier passes stay in the result.
A hyperparameter gradient asked for without a covariance factor, an inverse or a trace estimator now throws
std::logic_errorinstead of contracting an empty inverse. Under the CHOLMOD backend, which never forms the inverse, that read out of bounds and crashed or returned a wrong trace.A measured-step secant seed of a mass-weighted Hessian now projects onto the mass-weighted steps M^1/2 s instead of the Cartesian steps. The two agree only when every mass is equal.
A null argument to the LJ, Muller-Brown or LEPS oracle adapter writes a non-finite energy and returns, which is the failure signal the searches already understand.
A prepared posterior-mean Hessian that returns no action, or whose action returns false, is no longer replaced by a Cartesian difference of predicted gradients. A kernel that does not implement an analytic Hessian is not a prepared contraction, and its mean still uses that difference.
A recipe whose UMA oracle takes torch from a PyTorch module now records torch’s library directory as a run path of every program it links. The compiled model of an oracle package needs
libtorch.so, which the engine does not keep as a dependency, and the drivers stopped withlibtorch.so: cannot open shared object fileat the first evaluation.A secant curvature seed that cannot be formed is now a typed refusal, not a throw: with no accepted pair, no usable current direction or no resolved negative curvature, the dimer, the climbing-image controller and the GPNEB band keep their current direction and say why. The seed direction is the lowest resolved Ritz mode of the approximate Hessian on the measured-step span, so unmeasured Bofill or SR1 curvature cannot supply a mode. The resolution criteria are unitless, and a seed that is used is scaled to the current length once.
A seeded dimer that refits its hyperparameters on its own search footprint no longer moves the length scales those rows do not resolve. The rows of a footprint can lie a few thousandths of an angstrom apart; fitting a length scale on them moved it by an order of magnitude on the priors alone, and the surrogate’s curvature at the search became the prior mean’s (a saddle search on a ZBL prior went from one negative mode to more than one hundred and stopped converging). A length scale now moves only when the fit rows’ inverse-distance features of its pair type span at least one length scale.
A stalled SCG step is remembered for one objective, including output normalization, the ZBL prior mean, and which length-scale ties are released, so a later fit on a different objective retries SCG. The reported iteration count includes the SCG steps that preceded an L-BFGS fallback.
A static rgpot (
-Drgpot:default_library=static) links beside rgmin again: the pair-list object keeps its Rust standard library and compiler builtins local, solibgpridgeno longer fails with multiple definitions ofstd_detect::detect::cache::CACHEand the rest of the Rust runtime. Only the fourrgpot_fast_*entry points stay global.A sum or conditioned kernel now prepares a mean Hessian only when every kernel inside it has a preparation of its own. A composition that contains a kernel without an analytic Hessian, such as the Matern 5/2 kernel or a correction with no Hessian, goes back to the posterior’s probe and finite-difference fallback instead of refusing the Hessian. A sum with a chart whose curvature is refused still refuses, through the probe.
A surrogate step of the GP band is no longer rewound when its force error is within what a calibrated posterior produces. The cut was the mean of that distribution, which half of all calibrated steps exceed; it is now the upper 95% point for the number of force components (2.09 at 6 components, 1.52 at 24, 1.16 at 234). On a 78-atom band the old cut rewound a step whose squared error was 1.006 times the predicted variance.
Added
gpr_model_predict_energy_variance_intervaland its extent-checked variant (C ABI 1.14, FortranGPR_C_ABI_MINOR = 14) backed byStableBasisND::noisyBorderedVarianceIntervals, returning two-sided outward-rounded variational/residual enclosures[lower, upper]for the HS-SVD MAP energy variance whenM = K + sigma2 Iis certified positive definite (mu_min = sigma2 + lambda_min_cert - eps_K > 0). Only exact-kernel factorizations are supported; other paths returnGPR_ERR_UNSUPPORTED, while failure to certifyMreturnsGPR_ERR_CHOLESKY. The noise is the model’s likelihood variance plus jitter floored by the condition floor the trained mean, log-determinant and LOO routes use, so a noise below that floor, such as the exact 0 of an analytic oracle, is the posterior the model trained on. Both endpoints are that posterior: the noise is not replaced by a larger certificate noise, which would invalidate the lower endpoint. Wherelong doubleis binary64 the factor runs in double-double arithmetic; a platform without IEEE binary64 reportscertified = 0. The variance interval clamps a negative lower endpoint to zero when the upper endpoint is nonnegative, and refuses the interval when the upper endpoint is negative.BorderedSchurSign::PreserveSignedopts into the signed Schur value. Posterior covariance paths keep their computed signed roundoff.Added opt-in stable posterior variances, enabled with
--stable-posterior-varianceongprdandgprnor with[uncertainty] stable_posterior_variance = true(Cap’n Proto fieldUncertainty.stablePosteriorVariance, schema version 6). Dense Cholesky energy, derivative, and directional variances use the bordered Cholesky pivot reduced in one exact sum. HS-SVD variances, joint covariances, and linear actions use nonnegative eigenmode sums at a variance noise floor ofeps * s2_max, which does not grow with the number of training observations. A stable variance below zero by at most four signal ulps is clamped to zero; a larger negative value, a NaN or infinity, or a stable reduction that cannot run raisesStableVarianceErrorinstead of reporting the prior or an infinite variance. Default behaviour is unchanged when the option is off.An IRC branch no longer stops when the launch step’s first sample is already inside the force tolerance. That sample is the kick, and the walk continues.
An IRC step that reaches the force tolerance records the geometry rgsaddle accepted, so a path ends at the minimum rather than at the sample the step started from.
An R or Julia callback error is now reported as
GPR_ERR_ORACLEwhatever status the library returned or left as its last status afterwards. The R binding reportedgpr_last_status()and the Julia band searches read it, so a callback that failed after another gpridge call had been refused (GPR_ERR_INVALID_ARG) surfaced as that status on the Gaussian-process band, oCI-NEB and potential searches. The R binding now records the failure through one helper where the callback error is caught, for the oracle, force and force-with-uncertainty callbacks; the Julia_throw_callback_erroralways throwsGPR_ERR_ORACLE. The Python binding already raisesOracleErrorbefore it reads the last status. The C ABI does not change.An exact posterior-mean Hessian refusal belongs to the call that raised it. A second direction, a reentered action, and a second model each keep their own answer, and a generic miss still falls through to the stencil.
An image’s local training set keeps its selected rows ahead of any archived neighbours, so a row the image is oracled at and a row removed from the global set both bind to the right local row. Before, a row added behind an archived neighbour was overwritten onto that neighbour by the next repeated draw, and a gprn search with the secant quadratic mean and curvature seed under MMF stopped with “duplicate channel for a geometry” at outer iteration 26.
An installed GPRidge built with the UMA or metatomic oracle now has its engine,
libuma_engine.soorlibmetatomic_engine.so, in its library directory, where the drivers load it by name; rgpot builds them in a tree a subproject does not install. Every engine the install script copies drops the run path entries that point into the build or source tree and finds what it needs beside it.An installed prefix now carries minimage’s headers, library and pkg-config file, because the public C++ headers include
<minimage.h>.gpridge.pcnames that library when the wrap is used, and requires the system package when minimage comes from pkg-config.BFGS calls
rgmin_bfgs_hessian_update. The library returnsRGMIN_HESSIAN_UPDATE_SKIPPEDwheny·sor|sᵀ B s|does not clear the absolute 1e-12 floor, and that skip does not move the reference. A repeated relation can still be accepted when a pair is already stored, the residual is inside the relative resolution, andy·sis positive, without calling the library. Callers compare the status name. The rgmin minor floor stays 43 until Saddle tags the minor that adds the export, and the pin check must require that minor once the tag exists.has_header_symbolis the gate until then.Band influence, the score adaptive and budget pruning use, is the worst posterior shift over the energy and every Cartesian force at the band. A row that leaves the energy profile untouched and still moves a force stays in the training set.
Bayesian model averaging (
calculatePotentialBMA,calculateVarianceBMA) no longer corrupts the heap in an OpenMP build: the grid fit ran the kernel builder on every thread at once, and each call rewrote the shared length scale,sigma2and the covariance function’s distance scratch, which AddressSanitizer reported as heap-use-after-free and double free atOMP_NUM_THREADS=4. Grid points now build their matrices one at a time; the eigendecompositions still run in parallel.Bayesian quadrature: a covariance that does not factor returns
GPR_ERR_CHOLESKYagain instead ofGPR_ERR_OPTIMIZER; a refusedgpr_bq_set_extra_sigma2leaves the stored value and the posterior unchanged; one unbounded observation fits in the Map, TpMarginal and Marginalized modes; an ARD marginalized fit reports its own optimizer iterations; an asymmetric Gaussian measure covariance is refused withGPR_ERR_INVALID_ARG;gpr_bq_fit_hyperparameters_checkedno longer turnsstd::bad_allocandstd::length_errorintoGPR_ERR_OPTIMIZER; the cumulative outputs are indexed withoutintoverflow; the C++ wrapper passesNULLfor an emptied vector; the Julia wrappers keep the handle owner alive across each call;gpr::bo::ScalarGaussianProcess, whichgpr::bo::minimizeuses, keeps its zero prior mean, and the profiled constant mean is an opt-in throughsetUsePriorMean(true); the C API reference, the C header and the R and Rust wrappers say that agpr_bq_*call that builds a posterior returnsGPR_ERR_CHOLESKYwhen the covariance does not factor andGPR_ERR_OPTIMIZERwhen hyperparameter inference fails.Build SBOM SPDX documents follow SPDX 2.3 more closely: every license and copyright field is written, NOASSERTION where unknown, and the root’s copyrightText comes from the project license file. Packages state filesAnalyzed, with a packageVerificationCode for the artifact they contain, and files carry SHA-1. A package contains only its own artifact and depends on the other libraries it links; CycloneDX lists a linked library that no component owns as a file component in dependsOn, and a manifest component keeps the link edges of the Meson dependency it replaces. A curated license is licenseConcluded rather than licenseDeclared, combined license headers keep their parentheses, the root license is the one project() declares, and an expression that is not a valid SPDX expression stops generation. SPDX 2.3 and SPDX 3 carry the build provenance that CycloneDX records as properties. The document namespace and SPDX 3 element identifiers change with SOURCE_DATE_EPOCH and every other recorded input. The source-tree digest covers file kind and the executable bit, and it is recorded as an annotation and the gpridge:source-tree-sha256 property instead of a package checksum. Only allowlisted build options are published, and a secret-named value is withheld. No document names a host path: the build and source roots and the home directory become /build, /source and /home/
, including a path glued to a compiler flag or joined with commas, and any other absolute path outside the system directories keeps only its file name. IRA’s license is the SPDX expression GPL-3.0-or-later AND Apache-2.0 on a default build, with the drivers left enabled. The recipe SBOM is installed only when do_install is set. A combined -Wl,-Bstatic,-lfoo,-Bdynamic,-lbar group resolves each library in the link mode that precedes it, and the SBOM depfile resolves -fopenmp with the recorded compiler’s runtime. SBOM schema checks read the vendored CycloneDX and SPDX schemas. A source distribution does not ship the digest header under share/gpridge/sbom. The anneal static archive is sealed with deterministic ar headers in the build tree, and the pin’s generated C header is written beside the build root, so the wrap checkout stays unmodified and two builds share one CycloneDX document. Cargo runs with the cargo and rustc of the Rust compiler Meson found, never another cargo on PATH or a compiler a crate’s rust-toolchain.toml selects. The C ABI minor in the pkg-config and CMake package files is the meson variable, so it stays with the header. Builds with rgpot RPC support compile with Clang and Cap’n Proto. The factory keeps serialized configuration in the word-aligned array returned by Cap’n Proto and passes its byte view to the potential engines.
Canonical posterior factors, weights, predictions, optimizer contractions, and fixed-tile kernels now produce the same bits across x86-64-v2, x86-64-v3, and native SIMD baselines while preserving the scalar GEBP arithmetic and parallel rank and thread paths.
Classic potential-backed NEB searches now retain requested harmonic prefactor halves, and refined prefactor uncertainty avoids quadratic covariance storage.
Conditioning an active posterior no longer evaluates chart curvature. The Hessian-vector probe runs only when a Hessian is requested, so a collinear valence angle does not throw while predicting an energy or a force. A chart that does not provide directionalJacobian makes that product refuse instead of differencing the Jacobian.
Deterministic rank/thread tests now select the reproducible ScaLAPACK factorization, vendored SLATE patches can be applied repeatedly, and the runtime-path gate accepts resolved non-conda library prefixes without requiring an unused OpenBLAS dependency.
Directed binary64 addition now orders operands before recovering the rounding error near overflow, and the double-double variance-scale enclosure retains positive normal binary64 squares at the bottom of that range.
Documentation shell examples use the Python interpreter selected by
--python, including its virtual environment. Example subprocesses release their pipe handles when a page finishes.Every C API
*_destroyfunction (gpr_atoms_destroy,gpr_model_destroy,gpr_potential_destroy,gpr_neb_result_destroy, andgpr_bq_destroy) and everyNULL-handle accessor (usable_or_null) now clears stale non-oraclegpr_last_status()andgpr_last_error()state toGPR_SUCCESS, while all destroy cleanup paths preserve a pendingGPR_ERR_ORACLEstatus and message,gpr_neb_search/gpr_neb_search_potentialpreserve non-success status across internalatomscleanup, and successful live-handle accessors leave any existing thread-local error state intact. This status-clearing behavior is a contract fix in ABI 1.17 without a minor version bump.loadAtomsConfigurationFromFramenow rejects out-of-rangeatomic_numberandatom_idvalues in.conframes instead of silently narrowing them.check_gp_neb_argschecks3 * n_atoms_totaloverflow and negative or mismatchedn_coordsbefore mapping coordinate buffers inrun_c_gp_neb.live_handles()allocates the handle-tracking table on the heap so callbacks andatexithandlers running during process teardown do not access a destroyed static table.Failed documentation examples print bounded tails of redirected logs before their temporary directories are removed.
Fixed Bayesian quadrature C API, Julia binding, and GP output-scale follow-ups:
Documented
GPR_ERR_UNSUPPORTEDongpr_bq_create,gpr_bq_reset,gpr_bq_integrate_measure_checked, andgpr_bq_integrate_uncertainty_checkedingpridge_c.hand the C binding reference.Checked handle liveness and trained state before null output pointers in
gpr_bq_integrate_checked,gpr_bq_integrate_measure_checked, andgpr_bq_integrate_uncertainty_checked, and reported the public entry point name ingpr_last_error().Stopped
BayesianQuadratureModel::setLengthscalesandsetSignalVariancefrom overwriting the configured hyperparameter mode withFixed.Resolved
libgpridgeat runtime inGPRidge.__init__()so precompiled Julia caches relocate across library paths.Linked
dlinto thefake_enginetest shared library and removed the duplicate C ABI 1.17 entry from the releasedCHANGELOG.mdsection.Rejected non-finite or non-positive output scales and calibration factors in
scaleTrainingVarianceToPhysical, rejected non-convertible output scales (including underflow and overflow) in posterior covariance scaling consistently withtryBorderedNoiseReport, and rejected negativey_scaleinvarianceScaleEnclosure.Scoped the finiteness check in
StableBasisND::floorCertifiedSchurDiagonalto relevant negative, non-skipped columns so unrelated-column NaNs do not fail closed while relevant-column NaNs still fail closed.Required
GPR_MPMATH_PYTHONwithout silent fallback inBorderedCertificateEnvelope.hand launched it viarunExecutableusing thetest_envmpmath interpreter.
Fixed macOS wheel builds on case-insensitive filesystems by separating the vendored vesin header from its version metadata in the source distribution.
HPC benchmarks use the installed optimizer API and library thread controls, time independent complete MAP fits, and expose production ARD and model-averaging searches with covariance callbacks. Callback failures propagate as exceptions across parallel searches.
HS-SVD posterior and covariance eigenpairs no longer depend on the OpenBLAS kernel the CPU selects: the dual-kernel eigensolve runs Eigen’s self-adjoint solver on the host instead of LAPACK
dsyevr, so GP-NEB and OCINEB take the same steps to the same bits underOPENBLAS_CORETYPE=Haswelland the native kernel (the OCINEB curvature test now takes 55 calls on both). The host solver is slower thandsyevr(about 1.6x at n=200 and 5x at n=2000); cuSOLVER builds are unchanged.HS-SVD predicted variance keeps an uncertified entry at
+infwhen it is converted to physical units. The conversion multiplied byy_scale^2 * calibration, which underflows to 0 for an output scale below about 1e-162, so an uncertified entry becameinf * 0 = NaNand every finite entry was flushed to 0 though its physical value is representable. When that factor is not a finite normal binary64, each entry is now scaled as((v * y_scale) * y_scale) * calibration; otherwise the conversion is the previous product, bit for bit.Internal-coordinate retraction keeps the redundant Gabriel primitive set and solves the Wilson least-squares step from sparse primitive rows. The molecular chart now obtains its stable row space from sparse QR followed by an SVD of the compact R factor, preserving near-linear modes that a Wilson Gram matrix lost. Chart coordinates and Jacobians apply the QR factor’s orthogonal transformations before the compact inverse singular values, avoiding a second squaring of the Wilson condition number. A retraction that cannot be formed or solved fails instead of silently returning the Cartesian trial; dimer translation rejects such a trial, while NEB explicitly logs and counts its documented Cartesian fallback. Exact zero dimer steps retain the cycle certificate, and a line search reports a retraction only after an accepted step or a residual within tolerance. A valence-angle target outside [0, pi] still returns that trial and an infinite residual.
Internal-coordinate retraction no longer reports success when a line search dies on a tiny step, or when the accepted geometry has an undefined primitive gradient. The length that decides a tiny step is the spread of the involved atoms about their centroid, so translating the molecule does not change the result.
Internal-coordinate retraction takes its anchor row space and Gauss-Newton steps from the same sparse QR and compact-R SVD as the molecular chart, so rigid-body null modes of a free molecule stay out of the row space.
Isolated Python builds require Ninja 1.11.1 or newer. The manylinux images can provide Ninja 1.8.2, which cannot read Meson’s generated dependency rules with multiple outputs.
Kokkos CUDA builds use RUNPATH with supported Linux linkers so the GPU runtime environment can select the installed driver ahead of toolkit stubs used during CPU-node compilation.
Kokkos device posteriors and the Krylov gradient path now apply
hyperparameterDataTermScale()for Student-t models, andStudentTProcessRegressionreads the log determinant and whitened quadratic form from the resident device posterior when hostLandbare cleared.Kokkos device selection reads the installed CMake device and vendor BLAS metadata. CUDA dependencies stay on the device translation units, while GP callers compile with the host C++ compiler.
Lambdas in
gpr/auxiliary/Gradient.cpp,gpr/auxiliary/ElementPairContactFloor.hand two tests no longer capture a structured binding. Clang 18 rejects that capture when it compiles with-fopenmp, which a build enables as soon as libomp is installed, so the library did not build with Clang and libomp.MEASURED
gpr_htst_halfapplies a supplied model’s geometry projection and mass rules, the same rules REFINED and SURROGATE already use.Meson configuration and the
RgminAbi.hcompile-time assertion now require rgmin C ABI 1.43 or newer, matching the optimizer symbols gpridge uses.Meson records the generated rgsaddle shared library as a dependency of every consumer, so clean parallel builds can link the Cap’n Proto schema after Cargo produces the library.
Minimization now accepts curvature seeding only with BFGS, whose positive-curvature update defines a descent model. Saddle searches reject a BFGS curvature seed so it cannot overwrite their negative mode. Secant consistency checks now use the quadratic Hessian installed on the trained GP.
Mixed
SumandConditionedKernelcomposites propagate an exact child’s posterior-mean Hessian refusal instead of falling back to a finite-difference stencil, and dispatched HS-SVD MAP Hessian-vector products build the exactSexpatHessian action only when consumed.Mixed derivatives of two different atoms no longer change the sign of pair type derivatives accumulated for earlier coordinates. Each coordinate pair keeps its own sign, and the pair type field remains the sum of those pairs.
OCINEB no longer stalls behind a current-chain measurement while a fixed-image recovery owns the band: the recovery’s model-growth proposal now replaces a current-chain pick on another image, as it already replaced idle and rejected-proposal picks. On the adatom band the Eigen backend re-measured one image on 139 of 149 outers and stopped at the oracle budget; it now converges in 27 calls.
On Kokkos Serial and OpenMP builds,
cholesky,forward_solve_mat,back_solve_mat,cholesky_inverseand the vector solves run the Eigen backend’s kernels in place on the host matrices instead of copying them into Kokkos views, and a GP model no longer duplicates its training factor into a resident Kokkos factor. The host log determinant is the sum of the logarithms of that Eigen factor’s diagonal. A failed factorization releases a device posterior together with the resident factor. Their results have the Eigen backend’s bits, so the Kokkos GP-NEB oracle-call counts equal the Eigen pins. CUDA and HIP builds keep the device factorization and solves. Each of these functions starts the Kokkos runtime on first use and throwsstd::logic_errorafterKokkos::finalize.On
gpr_neb_search_periodicandgpr_neb_search_periodic_potential, a nonzero step ofgpr_neb_request_index_certificateagain takes precedence overgpr_local_band_config_t::certificate_step, as it did before the SIDPP request was added. A change that moved the request ahead of the band settings had letcertificate_stepwin there. The header and the C, Fortran and Python documentation state the order.Pair-spline neighbor lists reuse pairs with unchanged endpoints and recompute pairs touching changed atoms. Periodic-motion checks compare their energies, gradients and Hessians with fresh lists.
Predicted variance on the HS-SVD paths is again never negative, without a silent clamp. A negative computed Schur diagonal is replaced by the smallest nonnegative value of the outward-rounded bordered enclosure of the same quantity: 0 where the enclosure contains zero (counted as floored), and its lower endpoint where it lies entirely above 0, since binary64 cancellation then fell below a true value the enclosure proves positive (counted as raised). Where the enclosure lies entirely below 0 the entry is
+infand counted as proven negative, and where no enclosure exists (design-only factorization or an uncertifiedM) it is+infand counted as uncertified. A NaN or-infentry is+infand counted as uncertified.StableBasisND::schurFloorTotals()reports the four counts. The latent variance of a training row is floored against a rounding-error bound that counts the whole operation depth of the term; a NaN latent value or a NaN, infinite or negative bound is+infand uncertified. On the paths that use it the latent formula runs before the floor, which skips the channels it replaced. The local HS-SVD posterior covariance takes the same certified floor. Posterior covariance diagonals take the same floor, and off-diagonal entries keep their computed signed roundoff.Pytest prefers an installed gpridge when one is already on sys.path. The version test names the imported file when that metadata is missing, and the wheel test builds one wheel and checks its single METADATA record.
Python C-API NEB searches now clear a pending SIDPP initializer request when binding-level argument validation rejects the search. The request can no longer affect the next NEB search on that thread.
Python GP marginal-likelihood training and fixed-hyperparameter append now reject invalid inputs before mutating a fitted model. HS-SVD append failures now explain that marginal-likelihood training must materialize a Cholesky posterior, and R wrapper documentation describes the related update and calibration calls.
Python NEB and dimer searches honor ASE
FixAtomsconstraints. The native NEB optimizes only the moving atoms and sends the full geometry to the calculator.GPRCalculatorlets ASE apply its own constraints once to the underlying energy and forces.Python bindings and the C and Fortran surfaces:
logfiletakes anos.PathLike;verbose=Falseandreport_level=0silence the dimer’sstd::clogprogress report;use_idpp=Falsenow seeds a linear band where the session builds the path, and an IDPP-familypath_methodwithuse_idpp=FalseraisesValueError;NEBPath.image,neb_force,tangent_atandGPNEBResult.image_positionsraiseIndexErrorfor an index out of range (a badimage_positionsindex used to crash the process); a wrongly typed parameter-dict value raisesInvalidArgumentErrornaming the key instead ofInternalError: std::bad_cast;actdist_frokeeps its fraction when set from Python, anddefault_parameters()andcanonical_dimer_parameters()report the 30.3 the engine uses instead of a truncated 30.3 instead of 30 (it only matters for frozen atoms between 30 and 30.3 Angstrom from a moving atom);convergence_force_normis a parameter key and aGPDimerargument;from_rgpot(None)raisesNullHandleError;gp_nebandgpNEBwithGP_AIEorGP_OIEand nogp_setupthrow instead of running without a Gaussian process; the FortranGPModelwrappers take assumed-shape arrays and refuse a buffer shorter than the call needs withGPR_ERR_INVALID_ARG. Default numerical behaviour is unchanged.Python bindings now read NumPy arrays by logical element. A transposed, sliced, or Fortran-ordered view of positions, forces, a cell, atomic numbers, or a parameter array was walked as a packed buffer, which returned the wrong values and could read past the allocation when a stride was negative.
RFF feature selection, the layered-RFF rebuild on a noise update and the SCG stall-latch scope now treat the ZBL, Morse and secant quadratic prior means alike. Selection no longer refuses the Morse prior, a noise update rebuilds layered features under any prior mean, and a change of the Morse or secant mean ends the stall latch.
The GP minimizer’s finite-difference consistency probe now reports its real trust distance to the oracle policy, and it moves the current point to a lower measured probe. A probe whose gradient meets
conv_tolends the run converged. The secant Newton seed is clipped to the trust radius and the maximum move. A secant that is not positive definite is refused with a status: the run keeps the surrogate step and reports the refusal insecant_curvature_seed_refusalsandlast_secant_seed_statusinstead of throwing.An OCI-NEB climbing-image burst keeps the mode seeded from the image’s own secant; the dimer’s band-wide replay no longer overwrites it. GP-NEB clears the secant climb direction whenever the climbing image’s secant cannot resolve a mode, so the climb follows the live tangent.
Rank-invariance integration searches use separate output directories for independent processes, preventing concurrent serial searches from sharing observation archives.
Re-factoring the design for an SVGD prediction or Hessian sets the fitted targets on a resident device posterior again. The factorization conditions that posterior on placeholder zero targets, so a fit that fell back to the MAP mean read zero weights, a zero Hessian, and left the posterior corrupted.
Require true-PES local-maximum evidence before treating an evaluated climbing image as a measured barrier, restoring the documented Lennard-Jones pentamer trajectory and certification.
Restore exact internal-coordinate chart curvature after the chart’s anchor operator moved to its compact sparse-QR representation.
SLATE (
--linalg-mode library), distributed GP/HS-SVD/RFF/Laplace reductions, local OpenMP/TBB/Kokkos reductions, and external engine-plugin OpenMP scopes now preserve canonical fixed-tile summation order, producing byte-identical.conband trajectories and posterior energies, forces, variances, and fitted hyperparameters across thread counts, MPI rank counts, and 2D BLACS process grids unlessGPR_UNCONSTRAINED_REDUCTIONS=1is explicitly requested.SR1 calls
rgmin_sr1_hessian_update, which issr1_hessian_updatewith no second copy of its arithmetic. The library leaves the matrix untouched when any step or gradient entry is non-finite, whenδ·sis non-finite, when|δ·s|is at most 1e-12, or when|δ·s|is below1e-8 ‖δ‖ ‖s‖.δ·sis the ndarray dot. That skip does not move the reference. A negative-mode seed at Hessian scale 1e-12 is one of those skips; scales above the floor still resolve. The local Nocedal–Wright acceptance check is gone. Upstream reserves 7 forRGMIN_NOT_CONVERGED, so the carried name is 8. Callers compareRGMIN_HESSIAN_UPDATE_SKIPPEDby name.Search harmonic prefactors are now opt-in. Explicit requests retain their results and report failures; enabled prefactors add about 2x geometric-mean wall time and up to about 12x on individual systems without adding oracle calls. Refined uncertainty (
ln_sum_std) is the root-sum-square, over the positive modes with a component outside the measured directions, ofsqrt(var)/(2 lambda), using each mode’s diagonal curvature variance rather than the full cross-mode covariance quadratic form, which avoids quadratic temporary storage.Secant curvature now seeds saddle directions and the surrogate-index probe’s model Hessian only from the measured-step Rayleigh–Ritz projection, defers unavailable consistency probes, and respects the dimer oracle budget. The dimer’s mass-weighted Hessian walk keeps seeding from the whole secant Hessian, because restricting it to the measured steps moved the Ne pentamer MMF search onto higher-energy saddles and past its oracle budget. Band and MMF models no longer apply a quadratic mean across image histories; consistency checks and curvature seeds remain available.
Secant pair decisions and estimates are unit independent, and the secant finiteness guards are tested. A disabled secant never reaches the GP minimizer, which a leak of any secant field into a disabled run would now fail.
Seeding a model Hessian from a secant now takes the measured-step restriction as an explicit
SecantSeedSupportoption at each call site. The default and the dimer walk seed from the whole secant Hessian as before, and the surrogate-index probe asks for the measured-step projection.Shared Pixi native-build tasks take library and pkg-config paths from the selected environment, so GPU environments retain their own numerical libraries.
Source archives carry only Cargo’s registry and Git caches and omit dependency instruction files, cache locks and local cache databases.
Source archives omit local configuration and hooks from legacy Cargo Git caches. The installation guide identifies the release source distribution as the source build route on macOS.
Source distributions select their packaged Rust crate cache for every Meson subproject, so plain pip builds work with Cargo offline and an empty external cache, without requiring the platform wheel wrappers.
Source distributions support both standalone Cargo source replacements and a Cargo Git object cache. Cargo uses Meson’s configured zstd selection. Python metadata lists the bundled license files explicitly.
Source-distribution preparation removes generated Meson redirects into dependency checkouts it refreshes, allowing vendoring from a configured tree. Project-tracked redirects and redirects to other checkouts remain intact.
Squared exponential derivative blocks requested for several coordinates each hold only that coordinate.
Squared-exponential Bayesian quadrature uses a fixed error-function evaluation order, so changes in the system math library do not shift the pinned one-dimensional posterior variances.
Stable affine energy variance evaluates the unrepresented part of the residual kernel directly, preserving finite near-span variances with double-double arithmetic.
The Bayesian-model-averaging grid builds each hyperparameter point’s kernel one at a time. The grid fit ran those builds from an OpenMP loop while they set the model’s length scale and noise, which raced under
-Duse_openmp=true. The factorizations and likelihoods of the grid points still run in parallel, and the threaded result equals the serial one.The Bofill update reports the rgsaddle ABI it requires, major 1 and minor 3, and the major and minor (or stamp status) the linked library returned.
The C API and the
.conframe loader reject a coordinate count that does not fit inint, a null atom pointer, and a second destroy or a later call on a handle that was already destroyed.The C++ GP-NEB howto names
<gpridge/GPNEB.h>for an installed prefix. The Muller-Brown helper in that example stays in the library sources, and the installed C API evaluates the surface withgpr_potential_muller_brown.The CHOLMOD backend factors with the simplicial up-looking Cholesky instead of the supernodal one, which ran dense supernodes through OpenBLAS
dpotrf,dsyrkanddgemm; a dense covariance of order 64 or more now factors to the same bits under everyOPENBLAS_CORETYPE. Dense factors are slower: 0.002 s instead of 0.001 s at n=200, 0.3 s instead of 0.055 s at n=1200 and 1.4 s instead of 0.15 s at n=2000.The CUDA tests and the molecular benchmark of a Kokkos build compile again. They include
KokkosBackend.h, which needs the execution and memory kinds from the build, and only the library target passed them to the CUDA compiler. The CUDA build ofbench_molecular_posteriorno longer hands the host-marchargument to the CUDA compiler. The shared library of a CUDA build contains the Kokkos environment assembly, which only its test calls and a plain static link left out.The Cartesian stencil record writes a bound that the refinement did not establish as null. It was written as inf, which is not JSON, and a reader of the record of an unresolved stencil failed.
The EasyBuild test step compiles a registered Cargo test that is already locked without passing the flag a second time, which stopped the step before any test ran.
The EasyBuild test step of the CUDA recipes drops the driver stub directory from the library path, so tests run against the driver of the node and no longer stop at their first CUDA call.
The Fortran tutorial program that reads the hyperparameters now deallocates its arrays. gfortran does not free the allocatable arrays of a main program at exit, so the program leaked 360 bytes in 3 allocations, which LeakSanitizer reports.
The GP mean potential’s Hessian-vector product acquires the session’s global model before it prepares the action. A parked or stale global factor is rebuilt first, as the energy and the gradient already are, so the action is the current posterior rather than the factor left in place.
The GP mean potential’s Hessian-vector product follows the prepared posterior-mean Hessian. When an exact kernel refuses at a query, that product is an error rather than a finite-difference stencil of the predicted gradient. A refusal belongs to that call: the next direction is not refused because the previous one was. The dispatched product evaluates an exact MAP preparation, and an empty or false action is a refusal rather than a stencil. A prepared HS-SVD block that does not apply is a final refusal of the dense matrix. The C API returns GPR_ERR_UNSUPPORTED and does not write the matrix, and Python raises UnsupportedError. The action columns and the fourth-order stencil are not substitutes. The C header and the C function reference describe that refusal. The prepared HS-SVD block is tried before the exact MAP kernel. Without it, the dense MAP matrix keeps a refusal by an exact term final, while a generic kernel term without an analytic contraction, alone or beside an exact
Sexpatsummand, is not a refusal and takes the columns of the prepared action.The Gaussian NLML directional-curvature and exact-Hessian oracles (
evaluateDirectionalCurvature,assembleHessianInDirections, andassembleExactHessianLocalDense) now returnfalsewhenhyperparameterEnergyIsGaussian()isfalse, so Student-t models do not silently receive a Gaussian Hessian under SCG, Laplace/INLA, or Hessian-based optimizers.The Gram, symmetry, eigen and QR residual bounds of the bordered variance certificate scale their Frobenius norms by a power of two when an entry lies outside [2^-450, 2^450], in the manner of LAPACK
dnrm2. A double-double working type has the binary64 exponent range, so a nonzero residual with entries near 1e-200 used to square to zero and bound to exactly 0. Entries too small to square are covered by an explicit absolute term, and a bound that lands below the normal range when it is scaled back is pushed outward, so the bound stays above the exact norm and is positive for any nonzero residual. Residuals with every entry inside that range keep the previous bound bit for bit.The IRC driver uses the linked librgsaddle.
RGSADDLE_LIBRARYandGPR_TEST_RGSADDLE_LIBRARYare not paths the process opens.The Kokkos backend uses status-returning cuSOLVER and rocSOLVER Cholesky on CUDA and HIP, retaining the GP jitter retry for non-positive covariance matrices. Vector solves use the portable matrix triangular-solve interface.
The Lanczos IRC launch draws its seed from
sketch_seedand drops rigid translations, and rotations of a free molecule with three or more atoms. A returned mode that is not imaginary is rejected.The Laplace mixture Hessian is computed only when some rank contracted a factor. A mixture with no contractible factor refuses instead of reporting a zero product.
The Laplace mixture posterior-mean Hessian-vector product is the weighted sum of exact pair-kernel products at each CCD factor, scaled back to physical units. It no longer differences four gradient predictions. A factor whose exact contraction refuses fails the product instead of falling through to that stencil.
The Laplace mixture posterior-mean Hessian-vector product now also differentiates the block-assembled mean, not only the alpha-K contraction. Both are the weighted sum of exact pair-kernel products. A factor that cannot be contracted fails the product instead of differencing four gradient predictions. A posterior that is not available uses the MAP mean’s own derivative.
The Python
_coreextension now retains the GIL on free-threaded CPython with all supported nanobind versions, preventing its shared mutable state from being advertised as GIL-independent.The Python extension and the GIL probe use the nanobind imported by the interpreter that builds _core. A missing import fails configuration instead of falling back to the vendored headers, and the probe fails when its version or headers differ from the ones linked into _core.
The Python test extra, wheel tests and contributor environment select the chemfiles-enabled readcon distribution, so XYZ reader tests exercise the installed feature without colliding with a base readcon installation.
The R and Julia
model_inittakeuse_hssvd_backend, and they andmodel_set_hssvd_backendpass agpr_hssvd_backend_tvalue to the C API unchanged, soGPR_HSSVD_BACKEND_DEFAULTcan be selected and -1, 3 or any other value outside the enum is refused withGPR_ERR_INVALID_ARG. The R setter used to sendNAor a logical vector to Cholesky and truncate 2.5 to 2; it now refuses them.TRUE/truestill selects HS-SVD andFALSE/falseCholesky.The R and Julia binding page, the C page, the Python binding page, the HS-SVD guide, the methods catalog and the numerics record now describe C ABI 1.19. They no longer say that the packages expose the 1.18 surface, that the Julia package pins minor 18, or that the C API has no HS-SVD switch. The HS-SVD guide lists the C, Fortran, R, Julia and Rust solver selectors, the methods catalog names the C setter, and the Python extension table lists
HssvdBackend.The R and Julia packages load the installed librgpot SONAME from pkg-config and from the library itself. Julia package tests run on 1.10 and 1.11. The wheel-metadata policy test takes its version from meson.build. The C++ GP-NEB how-to states that gpr_neb_search accepts GPR_NEB_GP_OIE and GPR_NEB_GP_AIE when n_coords is a multiple of 3, and that only GPR_NEB_GP_LOCAL returns GPR_ERR_INVALID_ARG. The Richardson curvature bound is spelled with abs() so the generated API page is not an RST substitution.
The SVGD and Bayesian-model-averaging posterior-mean Hessian-vector products are the weighted sums of exact pair-kernel products at the same factors the predictive mean uses. They no longer difference four gradient predictions. A mixture component whose contraction refuses fails the product; a fit that falls back to the MAP mean leaves that mean’s own derivative in place.
The Sexpat posterior-mean Hessian and its Hessian-vector product scale each pair by the atomistic pair length, the same length the energy and gradient kernel use. A fitted chart length no longer replaces that scale.
The Student-t hyperparameter gradient now records its data-term scale with the posterior weights, so an update, append, retain, refit, or geometry evaluation cannot reuse an earlier training vector’s quadratic form.
The Student-t process fit now optimizes the gradient of its own objective. With the HS-SVD objective contractions on, which is the default, the energy was the Student-t one and the gradient was the Gaussian one, so the hyperparameter fit stopped at an unconverged point with a gradient norm of 27 to 60 against a tolerance of 1e-4, and the stopping point moved with the compiler’s floating-point contraction. The Gaussian gradient now scales its data term by the Student-t weight
(a + n/2) / (b + S/2)on the shared assembly, and the Student-t energy no longer reads the Gaussian HS-SVD energy shortcut.get_tp_prefactor()after a fit changes accordingly.The UMA package checker takes atomic numbers from ASE, so magnesium and bromine in the grignard cell resolve instead of raising KeyError.
The
fake_enginetest fixture callsdlsymbut was not linked againstlibdl, so the engine tests that load it failed to resolve the symbol on platforms wherelibdlis separate from libc (glibc older than 2.34). It now depends ondl.The bordered variance certificate bounds the rounding of its formed factor
B = D V sqrt(Lambda)when entries ofBfall below the range where the working type is accurate to its unit roundoff (2^-968 for double-double, the smallest normal for long double). The relativegamma_3model alone gavebb ||B||_F^2, which is 0 when the squares underflow, while each such entry can be off by a subnormal step. Those entries now add an absolute allowanceH, and the bound becomesbb (N + H)^2 + H (2N + 3H)withNa scaled upper bound on||B||_F, which the QR term of eps_K uses as well. A factor with no entry near underflow keeps the previous bound bit for bit.The bordered variance certificate is rigorous where rounding hid error. The condition floor is stored rounded up. The Gram, symmetry, eigen and QR residual bounds add a gamma times the sum of absolute values of the terms to the computed norm, so a sum that cancels to zero still carries a positive bound. The
eps_Kmargin counts the operations of the norm of the factor and adds the rounding of the factor’s own entries. The noise report scales by the outward enclosure ofy_scale^2, in the units ofgpr_model_get_sigma2, a scaled bound beyond binary64 is+infinstead of NaN, an underflowed outward product no longer reports a lower bound below zero, and rounding a NaN or a double-double with a non-finite limb to binary64 raises an error. The design variance forms its cross covariance in the working type.The bordered-variance enclosure runs its mpmath reference with the Python Meson configured, which must provide the mpmath module.
The chart branch of
GaussianProcessRegression::evaluateDirectionalCurvatureread only the first two entries of the direction, so a learned-noise direction contributed nothing to the curvature: on a bond-chart case with learned noise its pure-noise curvature was 0 where the true value is 0.393, and its mixed-direction curvature was 5.725 where the true value is 5.971. The curvature andevaluateNlmlHessianVectornow build the first and second covariance derivatives for the chart from one routine, so every covariance direction and the learned log noise variance enter. The exact Hessian-vector product has tests on the chart path, with and without learned noise, against Richardson-extrapolated differences of the gradient and of the objective. A charted covariance with fixed likelihood noise now rejects a trailing noise direction, so its HVP remains exactly the covariance-parameter dimension.test_sympy_nlml_hvpnow runs in the meson suite and aspixi run -e symbolic derive-nlml-hvp. The ScaLAPACK Hessian-vector wrapper inOptimize.cppcould not be reached, because the backend never advertises the product; it is removed, and the tie screen asks for the product throughfuncmin::holderNlmlHessianVector.bench_scg_curvatureno longer passes aconst booltobenchmark::DoNotOptimize. The installed C++ layouts changed with the exact Hessian-vector product:gpr::GaussianProcessRegressiongained the virtualexactNlmlHessianVectorAvailable()and five data members,funcmin::RgminScggainedhessianVectorFallback, andScgCurvatureModegained an enumerator. The project versions only the C ABI, which does not change, and the C++ classes carry no version contract, so this breaks no documented guarantee; a C++ program built against the headers of an earlier revision has to be rebuilt. The C++ API page now says so. One measured example of the cost ofnlml_hessian_vectoris in the SCG curvature-mode note; it is not a benchmark claim.The checked C API fuzzers (
tests/fuzz/CapiCheckedFuzz.cpp) now initialize their model fixtures inLLVMFuzzerInitializeand printgpr_last_error()tostderrbefore aborting if any fixture setup step fails, rather than silently returning 0 fromLLVMFuzzerTestOneInputwithout fuzzing.The command-line quickstart uses prepared Lennard-Jones pentamer endpoints and checks convergence and the IRC certificate on the matching potential.
The conditioning-aware allowance for a negative stable Schur complement now reaches the full joint ScaLAPACK covariance, resident Kokkos factors, the resident device posterior and the local GP. They used a fixed four-ulp allowance and raised
StableVarianceErroron a valid ill-conditioned case that the host path accepts. The joint covariance and the diagonal-only path share one helper,requireStableSchurDiagonal. A Kokkos factor reduces||L||_Fon the device and estimates||L^-1||_1with its own forward and backward solves, so no host copy is read. A Schur complement that is negative by more than the bound, or not finite, still raises. The maintainer notes now state that stable mode is process-global. A bound of one or more is now treated as no certified digit, and an allowance of one or more no longer clamps a negative value to zero. The conditional posterior’spredictVariancetakes the plain subtraction with stable mode off, aspredictCovariancedoes, and the active and local posteriors pass their factor’s allowance instead of the fixed one.ExactSum.hno longer warns under-Wpedantic.The cuSOLVER backend records Cholesky and triangular-solve wall times, including device transfers, in the GP phase timers. Matrix-inverse construction contributes to the solve time.
The default MAP hyperparameter prior weight stays annealed. The half-Cauchy on the signal amplitude and the Student-t on each length scale are scaled by the signal-variance barrier,
1e-4 + 1e-3per data point, and that barrier keeps its own schedule. Full weight (1) remains available when a setup selects it. A full-weight default moves the pinned MAP fits: the SCG reference hyperparameters, the H2CO rotation fit, the GP-NEB oracle budgets, the default lifecycle iteration count, the harmonic GP-OIE composition trace, and the numbers printed by the C, Fortran, and RFF examples.The default
reproduciblelinalg mode now runs the HS-SVD kernel eigensolve with Eigen’s own symmetric solver on every rank and keeps the basis product whole on each rank. It used the linked LAPACKdsyevr, whose last bits differ between reference LAPACK and the OpenBLAS kernel sets, and from order 512 across ranks ScaLAPACKpdsyevand a column-split product, whose bits follow the process grid. The OCINEB bands oftest_capi_gp_nebandtest_fortran_gp_nebtook 49, 53 or 62 oracle calls depending onOPENBLAS_CORETYPE, and now take the same count under every kernel set and with reference LAPACK. A failure of Eigen’s solver now reaches the caller instead of falling back to LAPACK.librarymode keeps cuSOLVER when a GPU is present, Eigen’s self-adjoint solver on the host, andpdsyevfrom order 1 when unconstrained reductions are enabled. The basis product stays distributed from order 512.The default build (
scalar_eigen=true) definesEIGEN_DONT_VECTORIZEand forcesgpr/linalg/ScalarGebpKernel.hahead of each library translation unit. The header specializes Eigen’s scalar double product kernel so four columns of a panel stay in one vector while each entry keeps that kernel’s rounding.test_scalar_gebp_kernelbuilds one source with and without the header and requires the same bits.-Dscalar_eigen=falseopts into vectorized Eigen and forces neither the macro nor the header.The default build installs librgsaddle next to libgpridge, and a wheel installs it in the gpridge package directory. The drivers link that library. An installed executable finds it through the RUNPATH entry from bindir to libdir, and an installed library finds the sibling through
$ORIGIN. The shared-library suffix follows the host.The default build matches develop. It compiles Eigen with
EIGEN_DONT_VECTORIZE, pins alignment to the vectorized build, and forcesgpr/linalg/ScalarGebpKernel.h, so dense products round from the matrix sizes alone at everysimd_baseline.-ffp-contract=offstays required.-Dscalar_eigen=falseopts into vectorized Eigen, whose packet order followssimd_baselineand is not the bit-stable default.simd_baseline=autoisx86-64-v3on x86-64 and the compiler default elsewhere, and a level the compiler rejects stopsmeson setup. The GP-NEB tests pin 32 oracle calls on the GP-OIE band and 55 on the OCINEB band, the counts develop measures with this scalar arithmetic.The deferred residual-Hessian probe resolves once for the posterior state that copies of a model share, so concurrent first requests no longer see a half-written capability. A kernel reports whether its chart supplies exact curvature, so a chart nested in a sum or a conditioning refuses the product as a top-level chart does. A refusal is no longer latched from the curvature at one training row: a geometry where the curvature is undefined refuses that query only.
The design-variance accumulation in
StableBasisND::rangeVarianceFromDesignand the kernel assembly bound now run in the working type (WorkingReal) instead of a nativelong double, so they keep their extra precision wherelong doubleis binary64. The directed margin on the bordered factor’seps_Know counts the rounded operations inside its inlineeps_posandeps_qrterms as well as the four additions that combine them.The device gradient contraction reduces the length derivatives of at most 30 pair types per pass, so an environment model with hundreds of pair types no longer exceeds the scratch memory of a CUDA reduction.
The documentation example runner compiles C++ blocks with the
-marchflag of the library build. A block that allocates an Eigen matrix that the library frees no longer corrupts the heap.The documentation text index describes the Lennard-Jones pentamer quickstart and validates its heading against the source page title.
The energy-variance interval gate scales training-unit endpoints by
y_scale^2times the calibration factor, and the bordered noise report byy_scale^2alone, in the working type (WorkingReal) instead of a nativelong double, which is binary64 on some platforms and never rounded outward there. The scale is enclosed with one working step on each side and each endpoint is pushed outward to binary64.StableBasisND::borderedNoiseReport(sigma2, y_scale, calibration)returns the scaled report and decidescertifiedfrom the scaled endpoints,flooredrounded down andcertificate_gaprounded up, so a one-ulp gap that survives in training units is no longer certified when it collapses under the multiply.The engine ABI stamp check reads the major, minor and layout revision from the pinned rgpot header and requires this tree’s copy of that header, and every engine plugin, to match it exactly. The ASE/eOn example and the ABI table state that stamp, 1.11 with layout revision 1.
The engine Taylor jet contract says that inputs and output must not overlap, which includes overlaps between the input ranges.
The engine plugins built here (
libgpr_engine,libcpmd_engine,libcp2k_engineandliblammps_engine) exportrgpot_engine_abi_stampwith the stamp of the rgpot engine header they are compiled against. The engine loader of the pinned rgpot serves a plugin without that symbol as 1.0, layout revision 1, without the later optional symbols.The environment executor header resolves its batch type correctly when cuSOLVER’s backend details namespace is present.
The factorized and chemistry constrained hyperparameter fits profile the marginal likelihood of sf2 times (Kt + rho I). Kt is the sexpat kernel at unit signal variance and rho is the noise to signal ratio. Those fits now build that unit kernel, leaving out the current observation noise and the constant kernel, and they install the observation noise sf2 * rho. Previously the eigendecomposition used the current signal and noise, and the fitted likelihood variance was rho.
The finite-difference Hessian-vector product no longer loses a coordinate that the direction moves by less than the floating-point spacing of its position. At
x = (1e8, 1)along(1e-3, 1)the directional step movedx_0by 6e-9, below the spacing 1.5e-8, so the stencil dropped that coordinate and returned a 99.95 percent error.finiteDifferenceDirectionStepnow multiplies the base steph_0 / Mbymax(1, cbrt(||x||_2 M / 4)), withM = max_i(|u_i| / max(|x_i|, scale_i)). At the defaulth_0this ismax(cbrt(eps) / M, h_r)forh_r = cbrt(eps ||x||_2 / (4 M^2)), the minimum of the error modelE(h) = (h M)^2 + eps ||x||_2 / (2 h), truncation plus the rounding of the displacement over the whole vector:E'(h) = 2 h M^2 - eps ||x||_2 / (2 h^2)vanishes where4 M^2 h^3 = eps ||x||_2, andE''is6 M^2 > 0there. Because the rounding term belongs to the whole vector, the step is bounded and continuous in the direction: a small component of the direction on a coordinate of order one does not move it, which it did when the floor divided by|u_i|. The step is proportional torelativeStep, so the stencils athand2hof a Richardson comparison differ. In the example the step is 1.8e-3 and the relative error 1.5e-3. Tests pin the step to this closed form, solved with sympy, check that it is continuous acrosssqrt(eps)in the direction weight, and check the Lennard-Jones cluster of the how-to with a component of5e-8against the analytic product to 1e-7. The step also validatescoordinateScalesonce per call instead of once per coordinate, so a Hessian-vector product is O(n) in the dimension rather than O(n^2).The forces section of
--write-conand--trace-conframes holds forces. It held the gradients, with the opposite sign, while the observation archive and readers of CON files take forces.The forces section of
gprd --gp-dimer-traceframes (corpus andtrace.con) holds forces. It held the gradients, with the opposite sign, asgprn --write-conframes did before.The hierarchical hyperparameter prior of the default
extendedmodel profile centres the log signal variance on the robust spread of the training energies, 1.4826 times their median absolute deviation, only when its square exceeds the likelihood noise variance, and on the variance of the energies otherwise. When more than half the energies tied, as the two symmetry-equivalent endpoints of a band do at its first fit, the median absolute deviation was their round-off: the prior held the signal variance near 1e-28 eV², the GP predicted forces near zero, and a GP-NEB between symmetry-equivalent endpoints took more oracle calls than it needed.The host copy of the rgpot engine header, the engine loader and the stamp check now match the pinned engine C ABI 1.11, layout revision 1. The loader accepts a plugin when the major and layout revision match and the plugin minor is at most 11, treats a missing stamp as 1.0 layout 1, and calls
rgpot_engine_availablewhen the plugin exports it. Caps reads stop at the size the plugin writes, sojet_orderis zero on an older struct;rgpot_engine_hvpruns only whenanalytic_hvpis set;rgpot_engine_taylor_jetruns only up tojet_order; andrgpot_engine_unload_policyis honoured only from minor 7.The in-tree build SBOM records
scalar_eigenwith the other project options. The option changes numerical results, so the published build provenance keeps the value that produced the binaries, alongsidesimd_baseline.The install consumer calls
minimage_version, the symbol minimage exports, instead ofmi_version. The install smoke test buildstests/cinstall/minimage_consumer.cpp.The internal-coordinate retraction counts the gradient recheck of an accepted geometry in its Wilson-row total.
The linkcell wrap is d-SEAMS/linkcell
36ae8eb7(crate 0.4.3), the merge of PR #39 on main.f345776, the merge of PR #38, is an ancestor, and a Clang build links one OpenMP runtime instead of two. Clang builds need LLVM’slibompandomp.hat configure time. The Spack recipe stays atf345776.The local HS-SVD posterior covariance no longer runs the certified Schur floor when
--stable-posterior-varianceis on. The stable reduction marks an entry it cannot certify with NaN for its caller to refuse, and the floor had turned that NaN into+infand counted it in the process-wide floor totals before the refusal.The local leave-one-out hyperparameter gradient is the derivative of each neighborhood’s predictive density, holding that neighborhood fixed. It no longer differences the scalar objective. A directional block that does not assemble makes the objective non-finite instead of falling back to that difference.
The mean-Hessian dispatch takes the random-feature route before any uncertainty-mode arm, the same order the predictive mean uses. A model whose exact solve was replaced by random features no longer contracts the Laplace, SVGD or BMA factors it dropped, which disagreed with the mean by a few percent. The mixture and chart arms run only when the mean does.
The measured soft-mode walk that follows a refused saddle certificate in the dimer allows a model error of the force tolerance times the Euclidean length of a step. It used the dual norm of the configured force norm, the sum of the step lengths of every atom, which on a molecule absorbed a model that predicted the wrong sign of the energy change; the walk then accepted and widened steps whose force rose many times. On the Birkholz set the dimer of Grignard takes 656 calls instead of 848 and oxirane 301 instead of 356; every other reaction is unchanged.
The measured walk off a soft second negative mode lets its per-atom step bound grow under the trust-region rule: a step on the bound whose energy the model predicted and whose measured gradient it reproduced within the force tolerance doubles the bound, and a refused step halves it back toward the limit. The four-point curvature check before the stencil covers every model mode inside the stencil resolution. Oxirane takes 311 oracle calls at four ranks with two threads in place of 409.
The noise floor report (
tryBorderedNoiseReport,gpr_model_get_noise_floor_report) rejects an output scale that cannot convert training units togpr_model_get_sigma2units: one that is not finite and positive, or whose square overflows or falls below the normal binary64 range. It used to fall back to a scale of 1 there and return the training-unit noise, floor and certificate gap as physical values. The C API returnsGPR_ERR_INVALID_ARGfor it. A scale of exactly 1, disabled output normalization, is still reported in the training units, which then coincide with the physical ones.The one-shot
[hssvd]line now reads[hssvd] dual-kernel rank=R of nobs=N cond(Psi)=C. It used to printrank=R/0, where the 0 was the Mercer mode count that the dual-kernel basis never has, so a rank-5 basis on 551 observations read as a rank-0 one.The pair-type, species-environment, additive-pair and geodesic-heat kernels report an exact mean curvature. A sum of one of them with a chart pullback is therefore exact and is not probed at a training row where the chart curvature is undefined.
The pinned rgpot engine loader refuses a newer ABI minor, or a different major or layout.
The posterior-mean Hessian-vector product of a random-feature (RFF) mean, used when RFF replaces the exact GP or carries the Laplace-slice mean, is now exact: cosine-feature curvature through the descriptor Jacobian plus the inverse-distance descriptor curvature. It previously differenced four gradient predictions.
The prior-free marginal-likelihood gradient no longer gathers a replicated N x N inverse under ScaLAPACK or SLATE. Those backends take the trace from the distributed factor and never read it, so the gradient values are unchanged and only the per-rank memory goes down.
The random-feature replacement fits the residual of every prior mean that is added back at prediction, not only the ZBL one. With the Morse prior or the secant quadratic mean active and ZBL off, the prior used to be counted in both the features and the prediction, and the validation copy used to ignore the Morse and secant priors.
The rgpot engine header copied into this tree matches the pinned revision 4a5a7321: ABI 1.11, layout revision 1, including the jet order on the capability struct and the optional cache, Taylor-jet and unload symbols. That revision contains eba7181d, so rgpot:ipi_driver_ase is registered only when the Python that runs the suite can import pytest, numpy and ase.
The rgpot fast pair-list build strips Cargo color sequences from Rust’s native linker flags, so forced-color logs do not corrupt the libc link argument.
The rgpot wrap pins a revision whose UMA oracle compiles against torch 2.8, the torch of the
scalapackenvironment. The revision pinned before called an AOTI runner member that torch 2.8 does not have, so a build withuse_rgpot_umafailed.The secant consistency probe is an oracle call like any other. GPNEB measures it through the band evaluator, so an oracle that refuses it counts toward the consecutive-failure bound and leaves the probe unbought instead of ending the search with an error, the dimer skips it once its oracle budget is spent, and a probe that was not delivered is not counted as a Hessian-vector product.
The secant quadratic GP mean now layers on an active ZBL or Morse prior. The quadratic is fitted to the residual of that prior, and the composite energy, gradient, and Hessian are exact. Combining the two is no longer refused.
The source distribution uses a portable floating-point parser for rgpot plug-in configuration, including on macOS.
The stable posterior variance check no longer applies a fixed four-ulp allowance to a Schur complement that follows a rounded triangular solve. A valid but ill-conditioned case (Gram condition number near 9e5, exact Schur complement one ulp of a prior near 5e9) rounds to a negative value past four ulps and was refused with
StableVarianceError. The allowance is now a forward-error bound built from the Cholesky factor:gamma_m m nufor the substitution andgamma_{m+1} m^2 nu^2for the factorization, withnu = ||L||_F ||L^-1||_1and||L^-1||_1estimated by Hager’s method, evaluated only when a negative value appears. It applies to the dense, StdPar, Kokkos, cuSOLVER and ScaLAPACK backends and to the posterior, functional, Laplace and conditional-posterior callers that hold the factor. A Schur complement that is negative by more than the bound, or whose factor has no certified digit (a bound of one or more), still raises.The stable range posterior variance of the HS-SVD basis,
StableBasisND::stableRangePosteriorDiagonal, now reorthogonalizes the projection of the cross covariance onto the retained basis with a second classical Gram-Schmidt pass, as the other stable variance reductions already did. A singlePsi^T kleft an error of the size of the basis’s loss of orthogonality in the eigenmode coordinates, which a nearly resolved unresolved tail turned into a relative variance error many orders above rounding. A test now compares it with an 80-digit QR projection on a basis with1e-4loss of orthogonality, where one pass misses by 7 to 20 percent.The stencil index certificate can bound oracle noise in its refined weak-mode curvatures. With a noisy oracle the difference of the two refinement stencils is a noise sample, not a truncation estimate, and a soft mode inside the noise could be certified negative, reporting a first-order saddle as higher order.
gprd --oracle-stencil-noise Madds M times the measured spread to every refined error; 3.6 is three standard deviations. The default of 0 keeps the previous behaviour.The wheel metadata test now resolves its Python build prerequisites outside the checkout, fails clearly when they or Linux patchelf are unavailable, and reads the wheel named by
GPRIDGE_TEST_WHEEL. CI builds that wheel once intowheelhouse/and passes it in; without the variable the test builds a single wheel itself. Coverage and cibuildwheel avoid redundant rebuilds.The workstation batch runners resolve their source checkout from the Slurm submission directory or
GPRIDGE_ROOT, and write logs in the submission directory. They support Slurm’s spooled script location and submission from a checkout subdirectory.Three C API tests held the optimizer to an exact iteration count and one to a minimum number of oracle calls. The count follows the last bits of the linear algebra library; it is now held to within three iterations of the measured one, the report and the model still agree exactly, and the oracle calls are bounded from above only. The documentation coverage check runs in an unpacked release archive, where it lists the documents of the tree.
Three tests that bracket a value with an mpmath spectrum fail when
GPRIDGE_REQUIRE_MPMATHis set and the test interpreter has no mpmath module.meson testsets that variable, so an official run does not treat a missing module as a pass. A process started without the variable skips those tests and exits 77, which Meson records as a skip. Configure pointsGPR_TEST_PYTHONandGPR_MPMATH_PYTHONat the python3 that has the mpmath module.test_stable_basis_ndis not one of them. Two tests that compared a device result with a host result bit for bit now allow a few units in the last place. On an H100 the Kokkos CUDA build failed these in the EasyBuild test step.True-force secant curvature now counts each measurement once and keeps its reference consistent. A dimer midpoint supplied by the caller, a staged or harvested band row and a per-image secant stream no longer add a second pair to the counters. A refused or energy-less pair no longer replaces the reference energy of the quadratic mean, and the quadratic mean now enters the mean Hessian on the prepared and active-posterior paths. A negative seed is the lowest resolved Ritz mode of the Hessian projected onto an orthonormal basis of measured unit-step directions. An unresolved seed keeps the current direction normalised, and the BFGS curvature floor scales with the gradient change and step it judges. Leasing a GP’s quadratic prior keeps its use counter.
When a kernel prepares its own exact posterior-mean Hessian, a refusal of that operator at a query is now reported as a failure. Before, the Hessian action and the dimer’s midpoint Hessian silently replaced it with a finite-difference stencil of the predicted gradient. A preparation that yields no action at the query is the same refusal as an action that returns false, for
prepareMeanHessianandcalculateMeanHessian. In an active posterior with one exact term and one generic term, refusal of the exact term refuses the composed mean. A sum or a conditioned kernel is exact only when every child prepares its own Hessian; a child without one still uses the stencil. Kernels without an analytic Hessian contraction still use the stencil.When an internal-coordinate retraction fails, the NEB Cartesian fallback keeps each image’s minimum-distance cap and internal-trust scaling. An empty primitive set or a failed Gauss-Newton solve no longer drops those limits and hands the raw band step to the contact floor.
When internal-trust scaling cannot evaluate a collinear angle or a non-finite step, the NEB Cartesian fallback still applies that image’s minimum-distance cap and does not rethrow.
With
--stable-posterior-varianceon a ScaLAPACK or SLATE build, a stable variance that one rank refuses while it sums its Laplace factors no longer leaves the other ranks waiting in the collective. The refusing rank marks the sum invalid, every rank completes the collective, and every rank then raises the sameStableVarianceError. A two-rank test covers the covariance, the integrated functional and the per-factor moments.With
--stable-posterior-variance, the covariance form of the HS-SVD training-row latent identity now accumulates the diagonal exactly, as the diagonal form does, and refuses a value that is not finite and nonnegative within roundoff. It used to subtract in binary64 and floor a negative result to 0 through the certificate, which hid a variance that should have been refused.With the UMA oracle and no conda environment, the copy of the IRA library that drops a shared OpenBLAS keeps the run path of the library it copies, as an RPATH; it lost FlexiBLAS from it, and programs that load IRA stopped with
libflexiblas.so.3: cannot open shared object file. The install smoke test also finds Eigen through an EasyBuild module, and the two Cap’n Proto parameter tests that run under pytest are left out where the interpreter has no pytest.With the dimer’s analytic-curvature option on, a mode just installed from the posterior-mean spectrum still reports that mode’s Ritz value. After the orientation leaves the mode,
AtomicDimer::calculateCurvaturetakesv^T H_mu vfromGaussianProcessRegression::calculateExactDirectionalCurvaturewhenKernelOperator::meanCurvature()isExact. APullbackwhose chart providesCoordinateChart::directionalJacobianis Exact, and so is aConditionedKernelofGeodesicHeat. A mean that is not Exact uses the posterior-mean Hessian action and logs that once per search. The exact value contracts the direction once, through the HS-SVD product first for a spectral model, and does not assemble a dense Hessian. A Laplace, SVGD, or BMA mean is a mixture, so its exact curvature is refused and the dimer uses that mixture’s Hessian action. The forward difference of the image gradients is no longer that curvature. No C symbol or struct changes, so the C ABI stays 1.19.--rgsaddle-libraryandRGSADDLE_LIBRARYstore the selection that turns the post-convergence index test on. The linked librgsaddle runs the test, andRgsaddleClient::loadchecks its ABI stamp.-Drgpot:default_library=staticwithuse_openmp=falseno longer putslibgomp.so.1in theDT_NEEDEDoflibgpridge,gprdandgprn. Without an OpenMP request gpridge now passesuse_openmp=sharedto rgpot, which compiles its cell-walk OpenMP regions only when rgpot itself is a shared library; the decision used to follow the top-leveldefault_library, so a shared gpridge over a static rgpot linked the archive’s OpenMP references. Adefault_library=bothbuild now also keeps the static archive serial.GPNEBResult::returned_true_forceis now the oracle force, in the stopping norm, at the geometry the result returns on every exit, and infinity when that geometry has no oracle row. It was set only when a GP-OIE or GP-AIE band converged: a band stopped by its outer budget or by the wall-clock limit reported NaN, as did every Standard, AIE, OIE and GP_LOCAL band. A GP band that does not converge reports the oracle row at the image it returns from its measured anchor band.GaussianProcessRegression::optimizeMarginalLikelihood(the prior-free fit) hands back the SCG-stall latch of the MAP fit it interrupts. It used to clear the latch before saving it, so the next MAP fit retried the stalled SCG instead of starting on L-BFGS.GaussianProcessRegression,BackendContext,GPNEBConfig,DimerandAtomicDimerhave the same size and member offsets whether or not a consumer definesGPR_LINALG_KOKKOS,USE_RGMINorUSE_READCON_DB. A consumer compiled without the library’s configuration macros used to disagree with the library about these classes, which crashed the HS-SVD documentation example.KokkosWorkspacemoves to its own installed header, and its execution-space state is created once even when two threads make the first call together.Pullback::meanHessianVectoron internal-coordinate charts now uses the exact directional derivative of the chart Jacobian, computed by forward-over-forward AutoDiff of each bond, angle, dihedral and linear-bend primitive, instead of a four-point difference of the Jacobian.CoordinateChartgainsdirectionalJacobian; a chart that does not provide it makes the Hessian-vector product refuse instead of differencing.bench/baselines/baker_irc_rg.pyopens the librgsaddle mapped by importinggpridge, including the copy in a meson build tree and the copy besidelibgpridgein a prefix install.RGSADDLE_LIBRARYnames an explicit file.bq_train()andbq_train_bounded()takenoise_varof lengthnrow(x), one variance per observation. Any other length is an error and leaves the model unchanged. Each exported C API wrapper now has its own manual page, andmodel_set_hssvd_backend()documentsenabledas aGPR_HSSVD_BACKEND_*value.gp_neb,run_ocinebandgp_minimizeno longer change the reference count of the Python oracle while the GIL is released. The search copied a function that held the oracle by value, which is undefined behaviour and aborts a nanobind build withoutNDEBUGwith anincref_checkerror.gpr::potentials::tersoffForcesreturns the exact negative gradient oftersoffEnergythrough forward-mode Eigen AutoDiff on each bond and angle term instead of central differences of the energy. Forces now conserve momentum to rounding, and one force call costs O(N^3) rather than 6N energy evaluations. Thestepargument is removed.gpr_backend_name()returns"cholmod"for a-Dlinalg_backend=cholmodbuild instead of"eigen", and the CHOLMOD factor now counts toward the phase-timer factor total like the other dense backends. No C ABI symbol is added or changed.gpr_minimizeandgp_minimizereport convergence only when the oracle gradient norm at the returned point is belowconv_tol. A small GP-predicted gradient now only proposes the stop.x_final,E_finalandG_finalare always an oracle evaluation, the best one measured when the run does not converge.max_oracle_callsis checked before every oracle call and is never exceeded.gpr_model_initon an already initialised C API model now rebuilds it, so a refit starts from the configured hyperparameters and matches a fresh fit. A failed re-initialisation keeps the previous model. The rgmin scaled conjugate gradient path now reports its step count when a stop request follows a finished run, instead of 0; error statuses still report none.gpr_search_prefactor,gpr_neb_result_prefactorand their checked variants returnGPR_ERR_INVALID_ARGfor a negativen_coords, and the C++ wrapper throws that status before it sizes a buffer. Posterior energy and curvature variances that are negative beyondkNegativeVarianceTolerance(sqrt(eps)) of the functional’s prior scale are refused as unsupported. Before, they were set to zero, so they counted as in support and as a converged prefactor spread. Smaller negatives are round-off and still read as zero.gprn --max-iterations 0now exits with status 0 and logssetup only (max-iterations 0): band built, not relaxedinstead ofConverged: no, treating zero iterations as a deliberate band-setup request rather than a failed relaxation. A setup-only run spends no oracle calls beyond the band setup: the post-search IRC certificate walk (logged asEndpoint connectivity: skippedandIRC time: 0s, with noirc_certificate.txt), the rgsaddle index test and thegp_localretries are all skipped, and the barrier lines are annotated as not evaluated when the saddle image was never evaluated. A negative--max-iterationsis now rejected with--max-iterations must be nonnegativeand exit status 1. Nonzero--max-iterationsruns that do not converge continue to exit with status 2 and logConverged: no.gprn --sidpp trueandgprn --sidpp-geodesic truenow seed the band on their own. Both were read only when--idpp truewas also given, so either flag alone left the band at the linear interpolation; the same holds forsidpp = trueandsidpp_geodesic = truein the[band]table of a run file.--idpp truewith no--sidppstill selects the sequential variant, and a run with none of the three flags still starts from the linear band.gprnandgprdnow enforce--max-wall-secondsinside surrogate, hyperparameter, dimer and IRC work and before oracle calls. Expiry returns the best measured state, reports the distinctwall-clock limitstop reason and printswall-clock limit reached.gprnno longer starts the IRC certificate after a search that did not converge. The walk begins with a measured Hessian, 6N oracle calls, and ran on the highest image of an unconverged band for as long as the oracle took; it now printsIRC certificate skipped: the search did not convergeand reportsIRC time: 0s.measureVibrationalIndexdropped the rotations of a periodic cell when its stencil was vibrational. It asked for the free-molecule directions, so a periodic geometry was measured along 3N-6 directions instead of 3N-3. It now passes that periodicity through. The spectrum still leaves those rotations out, as the stencil along every coordinate does.scripts/con_io.pyreads a gas-phase.conframe with a zero box as non-periodic inread_structure,read_atoms,read_frame_atomsand thereadcon-conASE hook. readcon reports such a frame periodic along all three axes. The baseline scripts andGPLocalBand.from_conget the same handling.scripts/gp_environment_types.pyagain types a gas-phase.conmolecule as non-periodic. The readcon reader returns its zero box as periodic, which changed the neighbour lists and the types: the Baker Diels-Alder endpoints gave 12 environments instead of 8. Periodicity along a cell vector of zero length is dropped.scripts/posterior_noise_baker.pyfalls back to thescalapackpixi environment of its own checkout whenCONDA_PREFIXis unset, not to a fixed absolute path.scripts/run_doc_examples.pynow preloads the ASan and UBSan runtimes of a sanitized build tree into the Rust and compiled examples even whenGPR_SANITIZER_PRELOADis unset, and refuses to run an example that the loader would start without them.test_stable_basis_ndis the only Catch2 test that needs a Python with mpmath, and the default pixi environment provides that module. Configuring with Catch2 but without mpmath still succeeds and says that this test will fail. The test is not skipped.runOCINEB leaves the climbing-image position empty when the band has no saddle image. That missing image used to be read as index -1.
0.7.0 - 2026-11-17¶
Added¶
Python engine oracles connect ASE calculators, live LAMMPS instances and OpenMM contexts to GP band and dimer searches. A PLUMED wrapper adds static bias energies and forces, and a GROMACS quantity adapter converts results supplied by an evaluator.
The custom EasyBuild easyblock checks installed headers, CMake/pkg-config metadata and the exported C ABI. The tagged-source generator selects it explicitly and records the choice with source and recipe checksums.
A Spack repository under
packaging/spackbuilds the develop branch and its pinned numerical dependencies.Native-package documentation covers C, C++, Fortran/fpm, Rust, R and Julia consumers; the small CMake example checks the loaded library’s C ABI.
tools/campaign_csv.pycollects search counts, timings, connectivity verdicts and launch provenance from GP-OIE run logs. It also recomputes the maximum atomic force norm from the recorded climbing-image forces.The C API provides
gpr_model_predict_hessian_action, which applies the posterior-mean Hessian to one direction without assembling every column.Spectral-element fluctuation operators, Fredholm determinant ratios, shifted determinants, stochastic log-determinants and soft-mode partition helpers are available under
gpr/quantum.The UMA determinism harness supports seeded perturbed repetitions and compares saddle geometry, energy, connectivity, evaluation counts and search time.
The covariance solver interface in
gpr/linalg/linopserves conditioning, prediction, variances, Hessians and hyperparameter objectives. Exact Cholesky remains the default. C++ callers can explicitly select approximate objectives withsetObjectiveBackend:Autocompares estimated operation counts at the fit tolerance and noise floor, whileKrylovrequests preconditioned conjugate gradients with stochastic log-determinant and trace estimates. Dense result caches require a nonempty factor identity; distributed factors use their backend cache.Meson accepts FlexiBLAS as the LAPACK provider when
use_openblas=false, including native foss toolchains that expose their numerical libraries through the FlexiBLAS frontend.The native EasyBuild recipe generator verifies every source file against a Git tag and records archive and recipe checksums. The foss 2026.1 route includes the complete test and benchmark build on owned node-local storage.
The UMA determinism harness replays the archived molecular inputs, preserves existing outputs and compares complete cell sets, including calls, convergence, IRC outcomes and retained band bytes.
Python sdists and wheels take their version from
meson.buildwhen they are built.scripts/vendor_sdist_deps.pydownloads the wraps that configure uses and vendors their Cargo crates, and the wheel build does not fetch those crates. cibuildwheel builds manylinux x86_64 and aarch64 wheels and macOS arm64 and x86_64 wheels. Publishing to PyPI is a separate tag or manual job and stays off until the repository is public.R and Julia packages call the C API in
gpr/capi/gpridge_c.h. The R package isr/gpridgeand the Julia package isjulia/GPRidge.jl. Neither package reimplements the solvers.The band report carries
certified,indexandn_certificate_callsin the C API and the Fortran binding.n_certificate_callscounts the index certificate and is not part of the search countoracle_calls_to_convergence.gpr_neb_request_index_certificateasks the next search on the thread to run it.The local band is a C entry,
gpr_neb_search_local, with the same opaque result handle as the other band searches. A failure leaves its reason ingpr_last_error_message. Fortrangpr_neb_search_localand Pythongpridge.neb.search_localcall that path, andGPR_NEB_GP_LOCALnames the mode.The periodic local band mode runs from Python.
NEBMode.GP_LOCALand thegp_local_*options, the cell, the fixed atoms and the convergence force norm are fields ofGPNEBConfig, andgpridge.GPLocalBandtakes two ASE endpoints withFixAtomsconstraints and a calculator. On the Pt(111) heptamer pair of the periodic example with ASE’s Morse calculator it converges in 20 calls against 442 for the true-force band, with barriers 1.6e-5 eV apart.The periodic local band runs from C and Fortran.
gpr_neb_search_periodicandgpr_neb_search_periodic_potentialtake the same handle as the other band entries,gpr_periodic_band_config_defaultsis theGPLocalBandrecord (uniform springs, a linear path, the whole band under the force tolerance), and the local knobs stay ongpr_local_band_config_t. The search does not certify;gpr_neb_request_index_certificatedoes, and the report’scertified,indexandn_certificate_callsrecord it. On the Pt(111) heptamer pair the C and Fortran bands match the Python path.--potential cp2kreaches CP2K Quickstep throughlibcp2k_engine.so, built with-Duse_capnp=true. The plugin handsCP2KParamsto rgpot’sCP2KPot, which loads the libcp2k shimlibcp2kc_rgpot.so. The default deck is PBE with DZVP-MOLOPT-SR-GTH and GTH-PBE at 650/70 Ry, unrestricted, with OT and an outer SCF loop;--cp2k-eps-scf(default 1e-9) and--cp2k-max-scf(default 30) set its convergence, and acp2karm of--potential-configreplaces it.-Duse_cp2k=enabledregisterstest_cp2k_engine, a diamond Si8 single point through the arm.python/gpridge/instantonand the drivers inbench/instanton_gpadd a spectral instanton for thermal rate constants. The orbit is a cosine series. Newton’s method solves the projected Galerkin residual at Clenshaw-Curtis nodes. ln κ comes from five-point Hessians through a dense Hill section. A Sexpat surrogate can supply the Newton curvature. Every trial step is still evaluated with true gradients at every node.bench/instanton_gp/run10_case.pycertifies ln κ of malonaldehyde with GFN2-xTB at 100 K against the error budget of a half-ring bead instanton (bench/instanton_gp/reference_ladder.py). The wheel installs the instanton package and its bead and spectral subpackages.C ABI 1.11 adds
gpr_model_train_checked,gpr_model_update_checked,gpr_model_predict_checked,gpr_model_predict_variance_checked,gpr_model_predict_full_checkedandgpr_model_predict_batch_checked. Each takes the length of every caller buffer and returnsGPR_ERR_INVALID_ARG, naming the buffer, for one that is too short; no existing declaration or struct layout changes. TheForceFnthird argument,gpr_force_fnand the Fortrangpr_force_interfacecall itenergy_noise_rms, which is what it always held (a standard deviation, not a variance).C ABI 1.12 adds
gpr_model_predict_hessian_action_checked,gpr_model_prediction_supportedandgpr_model_prediction_supported_checked. FortranGPModelexposes the checked Hessian action and the model’s kernel-support query; a refused buffer extent leaves its output untouched.C ABI 1.13 adds extent-checked marginal-likelihood training, fixed-hyperparameter append, held-out force calibration and closed-form LOO calibration.
C ABI 1.14 adds the exact-kernel HS-SVD Schur energy-variance interval, its extent-checked variant and the corresponding Fortran model method, and
gpr_model_get_noise_floor_report, which reports the condition-floored noise the trained factor inverts and the certificate gap.Production Scheme II CUDA launch sizes can be compared with Kernel Tuner while checking every result against the CPU reference. The GPU and performance guides distinguish oracle offload, matrix products, dense solves and approximate GP inference.
Added a public development quick reference,
codemeta.jsongenerated fromCITATION.cffviacffconvert, build-timellms.txtandllms-full.txtgeneration,robots.txt, OpenGraph and Twitter card metadata with a1200x630social card rendered fromassets/branding/gpridge-saddle-logo.svg,schema.orgSoftwareSourceCodeJSON-LD on the documentation index, and completed package metadata acrosspyproject.toml, Meson/pkg-config,fpm.toml,Cargo.toml,Project.toml, andr/gpridge/DESCRIPTION.The native EasyBuild recipe supports the cuSOLVER backend with a CUDA runtime module and an allocation-local CUDA cache.
Developer¶
The internally threaded Rust test suite runs alone with optimization level 3, debug assertions and overflow checks enabled. Its complete case set and 900-second allowance are retained.
A C program that links a library built with clang and
-fsanitize=undefinedneeds the C++ driver, which links the C++ part of the UBSan runtime. The install smoke test now links its C example with the C++ driver.Meson fetches readcon-core and readcon-db as the source archives of their pinned commits. It checks each archive against a SHA-256 hash, as it does for toml++. The
Cargo.lockof each archive pins every crate by its checksum, and cargo builds with--locked. The Cap’n Proto check ofc-cpp.ymlbuilds with-Duse_readcon=true. CI therefore compiles readcon-core and runs the tests that read.confiles. Meson unpacks each archive into a directory named after its commit, such assubprojects/readcon-core-<commit>/.The Fortran Muller-Brown example and the Fortran search and handle ownership tests no longer leak under LeakSanitizer. gfortran does not finalize a function result that a defined assignment copies into an array, so the ownership test now assigns the
AtomsConfigconstructor result to a scalar first.The project version comes from the
versionline ofproject()inmeson.build.scripts/check_version_sot.py --writecopies it intopixi.toml,towncrier.tomland the Doxygen project number. Python packages read the version dynamically through meson-python. A new CI job fails when one of these copies, theCITATION.cffversion or the.zenodo.jsonversion disagrees withmeson.build, or when another file carries a copy of the version.test_kernel_propertiescompares the derivative blocks of the squared-exponential, Matérn 5/2 and Sexpat kernels with finite differences.-Dwith_fuzzers=truebuilds a libFuzzer target with Clang for each configuration file format,.tomland Cap’n Proto. A Python test compares the dense GP posterior with scikit-learn and the HS-SVD posterior with the dense one, and a CI job runs the kernel and parser tests and both fuzzers under AddressSanitizer and UndefinedBehaviorSanitizer.Every code block of the tutorials and how-to pages is run by
scripts/run_doc_examples.py: shell, Python, C, C++ and Fortran blocks under the meson suitedocsand pytest, with the checked output stated in the block header. A block that cannot run in CI says why (:eval no :why,:needs-env,:needs-bin), anddocs_example_lintfails on a block with neither. The docs workflow also runs the reference generators in check mode and a coverage check of the C API symbols against the reference page.An installed-package benchmark measures complete C++ GP fits, mean predictions and variances on deterministic energy-and-gradient observations, retaining numerical outputs, individual timings and optimizer status for backend comparisons.
Changed¶
Updated project citation metadata to the announced GPRidge preprint (arXiv:2611.20591, primary subject
physics.chem-ph; additional subjectscond-mat.mtrl-sciandphysics.comp-ph) across README, docs,CITATION.cff, and package metadata URLs.IRC minimum checks measure the vibrational complement with true-oracle Lanczos products and reuse a spectrum at identical coordinates. A resolved negative mode stops the expansion; the absence of a negative mode requires the full complement. The Cartesian stencil handles probes that cannot be measured.
--irc-saddle-hessianselects the saddle step of the IRC certificate. The defaultmeasureduses the Cartesian central-difference Hessian and reports its measured vibrational index. The opt-inmodeluses the fitted mean Hessian for an initial direction, verifies that direction with true forces and falls back to the measured stencil when needed. Its log and certificate identify the index as unmeasured. TOML exposes the same choice as[band] irc_saddle_hessian; force and connectivity criteria remain unchanged.The IRC certificate reuses exact stored oracle rows from the saddle stencil and evaluated band images. Nearby coordinates remain distinct. Endpoint L-BFGS relaxation has two vibrational windows; the force tolerance and connectivity rule stay the same.
End-of-run phase reports include every iteration, nested prediction scopes count once, and the dense kernel clocks include Eigen factorization and solve work. Fit counts also identify fits that finish within their starting step tolerance.
linkcell is pinned to
f930eca(main after PR #14). The open-cell partner stencil depends on the cutoff and bin edge alone and its rows are clipped to each frame, so the contact limit on band steps reuses one stencil across images instead of rebuilding it for each frame.A
.tomlconfiguration file with a key that gprn does not read, such as a misspelled option, now fails to load with an error that names the key. Before, the loader ignored such a key and the option kept its default.Covering derivative GPs, including cutoff 0 and a self-owned dimer, evaluate exact-NLML directional curvature from pair tiles. The fit cache keeps coordinates only.
Pair-spline separations and non-orthogonal CON cells use minimage. An exactly orthogonal CON box stays a diagonal matrix so the 25 Å vacuum box is unchanged.
The Hill section of each image rung in
solve_cbeis chosen byquadrature.section_ladder, which doubles it until its own change has halved within half ofkappa_tol, instead of growing as N // 4; the image ladder takes the other half,fluctuation_erroris the sum of the two estimates, the result carrieshill_modes, and a fixedfluctuation_sampleskeeps N // 4.The index certificate of a stopped search is opt-in.
gprd,gprn, the library band entry and the C dimer entry return the geometry whose true force is under tolerance and spend no further evaluation there.--force-stop-certificate true,GPNEBConfig::force_stop_certificateor a positivegpr_dimer_report_t::certificate_step(C ABI 1.5) asks for the Cartesian stencil;--oracle-stencilimplies it.gprdprints the stencil that certified the reported midpoint on its ownOracle calls (certificate)line, apart fromOracle calls (dimer total).solve_cbeandsolve_instantontakekappa_tol,fluctuation_samples(a fixed Hill image count, the previous behaviour) andmax_fluctuation_samples, and returnfluctuation_samples,fluctuation_errorand the ladder underfluctuation.kappa_from_wtakesmodes, default N // 4, which is the previous 64 at 256 images.GFN2takesaccuracy, andgfn2.scf_accuracyderives it from the kappa tolerance;bench/instanton_gp/malo_case.pyuses both by default.The documentation follows the Diataxis split: getting started, tutorials, how-to guides, reference and explanation. The
gprnandgprdflag tables, the TOML key list and the Fortran module reference are generated from the sources and checked in CI, the C and C++ APIs come from Doxygen, and the Python API comes from autoapi. Install routes state their prerequisites, the quickstart uses relaxed Lennard-Jones pentamer endpoints, and the pages that describedgprnflags, GP-NEB options, the C API and the ASE and eOn interfaces were corrected against the sources.Automatic random-feature selection is opt-in (
rff_features = "auto",--rff-features auto, or Cgpr_model_set_rff_features(model, -1, fraction)). The count doubles from 1 up to the twice-overdetermined guard until the held-out random-feature posterior matches the exact GP to a fraction of the 0.0514221 eV/Å force tolerance. The default fraction is the gradient-noise standard deviation over that tolerance, so the approximation cannot move a converged decision outside the band the noise already blurs. The exact validation Gram stays under 256 MiB. A count that misses the tolerance is reported and refused. The default remains off, and the C API adds the two calls without changing an existing struct.
Fixed¶
Search drivers check
--max-wall-secondsbetween surrogate, hyperparameter, dimer and IRC steps and before oracle calls. Expiry reports thewall-clock limitstop reason and retains measured search results. MPI participants agree the stop decision at shared phase boundaries; an expired band with unmeasured endpoints reports undefined barriers.Source archives carry only Cargo’s registry and Git caches and omit dependency instruction files, unused dependency binding tests, cache locks and local cache databases.
Shared Pixi native-build tasks take library and pkg-config paths from the selected environment, so GPU environments retain their own numerical libraries.
Source distributions select their packaged Rust crate cache for every Meson subproject, so plain pip builds work with Cargo offline and an empty external cache.
Source-distribution preparation removes generated Meson redirects into dependency checkouts it refreshes, allowing vendoring from a configured tree. Project-tracked redirects and redirects to other checkouts remain intact.
The UMA package checker takes atomic numbers from ASE, so magnesium and bromine in the grignard cell resolve instead of raising KeyError.
The Python test extra, wheel tests and contributor environment select the chemfiles-enabled readcon distribution, so XYZ reader tests exercise the installed feature without colliding with a base readcon installation.
OpenMM particle masses are converted from their units, and virtual sites are recomputed when parent coordinates change. Energies and parent forces therefore use the requested geometry.
PLUMED action parameters can use explicit host units or native PLUMED units. Failed initialization or wrapper construction finalizes the owned kernel while retaining the caller’s oracle.
ASE adapter snapshots preserve species, and calculator cache hits check periodic axes and the oracle’s open state.
Rust bindings resolve an installed C header or an explicit matching header. Missing include metadata cannot silently select a source-tree header.
The native CMake example records its selected library directory in the executable’s build runtime path.
Package publication checks require distribution metadata to match a stable source tag. Native package manifests track the canonical project version.
A certified GP-OIE drift whose measured force error exceeds the proposing posterior’s spread restores the starting band while retaining the oracle observation. Refused drifts and measurements away from the band do not trigger that restoration.
Campaign CPU counts use distinct logical CPUs and reject reversed ranges.
Native packaging makes copied read-only ELF files writable before rewriting their dependencies. Installation checks apply the compiler runtime directory only to built consumers and use a clean consumer CMake build.
Measured IRC saddle-index checks refine modes inside the coarse stencil resolution with the Richardson certificate. Resolved second negative modes retain the higher-order classification.
The schema compatibility ledger records both IRC saddle-Hessian choices and the appended parameter field.
Pair-spline neighbour lists size their cells by the cutoff plus skin to reduce empty-bin traversal in dilute periodic systems.
The pinned rgmin per-atom step cap uses an equivalent comparison that compiles under LLVM 21 while retaining optimization, SIMD features and the displacement bound.
The posterior Hessian action is recorded in C ABI 1.8; C, Fortran, pkg-config and CMake metadata agree.
Pixi prepares the pinned cbindgen tool before building Python bindings, using an environment copy of the tool.
Native tests create writable private copies of read-only software and keep compatibility libc paths out of host commands’ library search paths while retaining those paths for linking.
The dense covariance solver no longer memoizes variance diagonals. Each call compared and copied the whole factor and right-hand block to find a hit, and that cost more host time than the solve it saved, since the variance solve is already cached upstream. The inverse memo stays.
The “GP kernel times” factor and solve walls include the SLATE, ScaLAPACK and reproducible distributed kernels. Distributed builds printed zero for both.
--linalg-threadsnow reaches the team Cholesky, triangular solve and Gram product of the Eigen backend. They ran on the calling thread at every thread count, so their walls did not move between one and eight threads. The threads take whole blocks of Eigen’s own blocking, so factors, solves and trajectories keep the bits of the one-thread run.With
--linalg-threads Nand the default--kernel-threads 1, the kernel and Hessian assembly team keeps N threads instead of falling back to one.-Dlinalg_backend=slateand-Dlinalg_backend=scalapacklink against Open MPI without its C++ bindings. The bindings thatmpi.hdeclares left undefinedMPI::Commsymbols.Reuse an owned ScaLAPACK training factor and its inverse diagonal when only the observed targets change. Geometry, kernel, likelihood variance, jitter, nugget and ownership checks protect reuse; participating ranks agree on the decision collectively.
Retain the owned distributed inverse across gradient evaluations at the same training factor. A changed factor invalidates it, and backend work counters report actual inverse builds.
UMA AOTI exports compile with deterministic algorithms and restore the caller’s deterministic and warning-only settings, including failed exports. Multithreaded scatter export tests check identical repeated outputs.
A
.tomlconfiguration file that gives an integer key a float it cannot hold fails to load. The error names the key and says whether the value is not finite, has a fraction or is out of range. Before, a float such asnimages = 7.8e19reached an undefined conversion toint64_tin toml++. The loader throwsgpr::io::ConfigValueRangeError, which derives fromstd::invalid_argument. A float for an integer field of[oracle.parameters]gets the same check before Cap’n Proto converts it. A whole float within the range of the key, such asnimages = 7.0, loads.A
.tomlconfiguration file with an array element that starts with a terminator, such as the}ina=[}, or with an incomplete date-time, such as1987-03-16 1#, gets a parse error. toml++ 3.4.0 did not expect either, so a build with assertions aborted on it and a build without them had undefined behavior.A bare key with non-ASCII letters in a
.tomlconfiguration file, such asbÞҤd_, gets a parse error instead of reaching an unreachable branch in the toml++ Unicode classifier. toml++ now comes from a wrap that pins the source archive of a commit on the toml++ master branch that fixes the classifier, in place of the vendored toml++ 3.4.0 header.A build with
b_sanitizenow writes the same-fsanitize=list into theLibsfield ofgpridge.pc. A program that links the sanitized library through pkg-config then links the sanitizer runtime as well.A build without
NDEBUGno longer passes a null pointer tomemsetwhen the vesin copy in rgpot resets an empty neighbour list. UndefinedBehaviorSanitizer reported that call as a null pointer passed to an argument declared never to be null.An rgpot potential is no longer cast to its derived type before the constructor of that type runs. UndefinedBehaviorSanitizer reported the cast as a downcast of an object that was still a
PotentialBase.Code that works on an empty Eigen matrix no longer offsets the null data pointer of that matrix or forms a reference from it. Such a matrix can come from a reflected path whose gauge has no constraints, a harmonic path correction without constraint columns or an affine Gaussian jet of rank 0. It can also come from the curvature basis of a single atom or from a Cholesky solve with an empty right-hand side. UndefinedBehaviorSanitizer reported each case.
Compensated
--predict-sumsums each TwoProductFMA expansion inExactSumand rounds once. Classic Sexpat alpha-K energy and force, cutoff Sexpat energy, and eigenKK'*afollow that product.CompensatedSum::addProductstill sums the same split with Neumaier, and that sum leaves the Ozaki window and the alternating-pi cells.Count covariance assembly once when training delegates to cached geometry. Direct geometry calls and fallback assembly retain their timing scopes.
Exact products whose binary64 rounding overflows stay in the long accumulator, so a cancelling pair plus the representable remainder
2^-1074rounds to that value.Far-field kernels use the same expansion features in streamed and distributed covariance assembly and HS-SVD prediction; changing the radius or expansion reference rebuilds cached training geometry and factors.
Fortran local and periodic band searches reject atomic-number arrays that do not match the coordinates before calling the potential.
Fresh steering-mode measurements update their common Hessian block and couplings without altering the unmeasured block. Each refresh retains its oracle-call count and uses mass-weighted actions at the actual probe displacement.
HS-SVD now conditions the posterior variance and covariance on the jitter as well as on the likelihood variance, at the MAP hyperparameters and in each component of the Laplace and EB mixtures. Its posterior mean and the dense solver already did. Before, the variance described a posterior with less noise than the mean. With a jitter of 1e-6, the HS-SVD variance at a query fell short of the dense one by up to 0.77% at a likelihood variance of 1e-4 and by up to 47.5% at 1e-6.
Keep non-finite distances out of trust-boundary projection, stop overflowing cumulative travel, and retain the disabled drift-budget behavior for non-positive radii.
Measured index-zero refinement uses curvature resolution in its mass-weighted physical coordinates, including heterogeneous atomic masses.
Meson installs
GPNEB.hand the headers its install closure includes.#include <gpridge/GPNEB.h>resolves against an installed prefix.Share weak-pair curvature probes across MPI ranks so each geometry is measured once. Probe batches respect the dimer’s remaining oracle budget, retain absolute observations, and report an owner’s failure collectively.
The configuration key reference now says that
band.modecannot begp_local, a mode that only the command line accepts.The local band mode (
--nebmode gp_local) converges on slabs whose free layers slide over fixed ones. A band over fixed atoms keeps its net translation, so every substrate coordinate enters the tangent. The springs of the mode now space the images by the local coordinates and act on them alone (NEBPath::setSpringCoordinates), and each round factors the substrate Hessian together with the stiffness the tangent adds across the path, the parallel gradient over the chord length (NEBPath::tangentStiffness). With the bare Hessian a full-band step moved the rigid slide of the free slab several times too far: on the Pt(111) heptamer of OptBench two of 13 starts no longer converged and one island start reached another saddle.The potential factory compiles with clang. With clang, a
capnp::wordcan be neither copied nor moved, so astd::vectorof words cannot be resized, and the factory now keeps a Cap’n Proto potential configuration in akj::Array<capnp::word>.The spectral instanton no longer scores the Hill fluctuation determinant on a fixed 256 images (512 at 150 K), whose error on GFN2 is first order in 1/N; the image count now doubles under Richardson extrapolation until the relative tolerance
kappa_tolon kappa (default 1e-6) is met, and the error estimate is reported.With the HS-SVD solver and the default
Predictivevariance convention, the variance at a training configuration now includes the likelihood variance. The dense solver includes it there, as HS-SVD does at every other point. Before, HS-SVD reported the latent variance alone there.gpr_dimer_config_defaultsand an unflaggedgprdnow read one parameter block,applyGprdDimerDefaults. The C search starts from that block, so the method names, the noise channels and the iteration limits cannot drift from the CLI.pkg-config --define-prefixnow finds the headers and the library of an install whose libdir islib/<triplet>, such as the Debian and Ubuntu defaultlib/x86_64-linux-gnu.gpridge.pcgivesincludedirandlibdirrelative to its own directory.A Morse, xtb, tblite, uma or lj setting loaded from TOML is the PotentialConfig arm of that name, and rgpot receives that arm.
gprn again loads a platinum
potential.tomlwhose[oracle.parameters.morse]table setsde,a,reandcutoff, and evaluates that Morse potential.Python bindings and the C and Fortran surfaces:
logfiletakes anos.PathLike;verbose=Falseandreport_level=0silence the dimer’sstd::clogprogress report;use_idpp=Falsenow seeds a linear band where the session builds the path, and an IDPP-familypath_methodwithuse_idpp=FalseraisesValueError;NEBPath.image,neb_force,tangent_atandGPNEBResult.image_positionsraiseIndexErrorfor an index out of range (a badimage_positionsindex used to crash the process); a wrongly typed parameter-dict value raisesInvalidArgumentErrornaming the key instead ofInternalError: std::bad_cast;actdist_frokeeps its fraction when set from Python, anddefault_parameters()andcanonical_dimer_parameters()report the 30.3 the engine uses instead of truncating it to 30 (it only matters for frozen atoms between 30 and 30.3 Angstrom from a moving atom);convergence_force_normis a parameter key and aGPDimerargument;from_rgpot(None)raisesNullHandleError;gp_nebandgpNEBwithGP_AIEorGP_OIEand nogp_setupthrow instead of running without a Gaussian process; the FortranGPModelwrappers take assumed-shape arrays and refuse a buffer shorter than the call needs withGPR_ERR_INVALID_ARG.A dimer force stop counts as converged only after a Cartesian index stencil at the stopped midpoint measures exactly one negative mode. This uses the existing certificate and its default stencil step. A stop that is not certified, such as the zero-force plateau of a Cu2 EMT dimer beyond the cutoff, ends unconverged with the new stop reason
uncertified_force_stop(GPR_DIMER_STOP_UNCERTIFIED_FORCE_STOP). The stencil’s calls are reported asn_certificate_calls, andGPDimer.oracle_callsincludes them.gpr_dimer_report_t.certificate_step = 0now selects the library step. OCI-NEB keeps its band certificate. gprd without--force-stop-certificatenow runs the dimer’s own stencil and printsConverged: nofor an uncertified force stop; with the flag or--oracle-stencil, gprd’s certificate decides andConverged:reports that certificate. The dimer’smax_oracle_callsis checked before every oracle call and is never exceeded. A search stopped by the budget reports the best midpoint it measured.The environment executor header resolves its batch type correctly when cuSOLVER’s backend details namespace is present.
The cuSOLVER backend records Cholesky and triangular-solve wall times, including device transfers, in the GP phase timers. Matrix-inverse construction contributes to the solve time.
Documentation shell examples use the Python interpreter selected by
--python, including its virtual environment. Example subprocesses release their pipe handles when a page finishes.Failed documentation examples print bounded tails of redirected logs before their temporary directories are removed.
HPC benchmarks use the installed optimizer API and library thread controls, time independent complete MAP fits, and expose production ARD and model-averaging searches with covariance callbacks. Callback failures propagate as exceptions across parallel searches.
gpr_minimizeandgp_minimizereport convergence only when the oracle gradient norm at the returned point is belowconv_tol. A small GP-predicted gradient now only proposes the stop.x_final,E_finalandG_finalare always an oracle evaluation, the best one measured when the run does not converge.max_oracle_callsis checked before every oracle call and is never exceeded.The documentation text index describes the Lennard-Jones pentamer quickstart and validates its heading against the source page title.
The command-line quickstart uses prepared Lennard-Jones pentamer endpoints and checks convergence and the IRC certificate on the matching potential.
Rank-invariance integration searches use separate output directories for independent processes, preventing concurrent serial searches from sharing observation archives.
The workstation batch runners resolve their source checkout from the Slurm submission directory or
GPRIDGE_ROOT, and write logs in the submission directory. They support Slurm’s spooled script location and submission from a checkout subdirectory.The Morse test reference uses the closed-form Morse expression; third-party project notices are recorded in
THIRD_PARTY_NOTICES.
Deprecated¶
AtomicDimer.get_final_force_at_mid_point()returned the gradient, not a force. Useget_final_gradient_at_mid_point(); the old name returns the same values and emits aDeprecationWarning. In C++,AtomicDimer::getFinalForceAtMidPoint()is[[deprecated]]in favour ofgetFinalGradientAtMidPoint().
Removed¶
PotentialWrapper::from_rpc_clientand thePotClientforward declaration: the factory was declared and never defined, so a call failed at link time. The_coremodule no longer declaresPy_MOD_GIL_NOT_USED, so a free-threaded interpreter turns the GIL back on when it imports it; the module had no synchronisation to back the declaration.Unsupported root CMake and Nix build entry points are removed. Meson builds remain supported, including the installed CMake package for downstream consumers.
0.6.0 - 2026-11-01¶
Added¶
C ABI 1.2 adds
GPR_DIMER_STOP_MEASURED_INDEX_ZERO(11), mirrored in the Fortran module; the Python termination reason names itmeasured_index_zero.C ABI 1.2:
gpr_neb_search_gpandgpr_neb_search_gp_potentialrun the GP-OIE and GP-AIE NEB modes from C with an atoms handle and GP settings,gpr_ocineb_searchadds the climbing-image dimer bursts (gpr_ocineb_config_t), andgpr_neb_result_reportfills a versionedgpr_neb_report_tfrom any NEB result. The Fortran module binds them,gpr_atoms_create(frozen atoms, types, atomic numbers), the full and batch GP predictions,gpr_neb_search_potential, the status and introspection calls. The suite checks the Fortranbind(C)layouts against the C structs and builds the examples against the installedgpridge.pc.The Python package exports
__version__and aGPRidgeErrorexception hierarchy; exceptions raised in_coreare translated into it, andNotTrainedErrorremains aValueError.GPNEBandGPDimeracceptlogfileandtrajectoryand offerattach, as ASE optimizers do, with one step per oracle call.The
gpr/quantummodule adds GP-accelerated imaginary-time path tools: ring-polymer instantons with harmonic bead and bath corrections, compact fixed-time arcs and turning contours for band proposals, affine Gaussian models for conservative native proposals, and information-based selection of band force measurements.
Changed¶
gprd --dimer-index-recoveryapplies the complete Cartesian acceptance stencil directly to the initial converged midpoint. Recovery candidates receive measured chemical and surrogate direction checks before repeating that stencil. The Hessian of the fitted posterior mean proposes the second mode; the weak-pair probe measures the Ritz pair of the dimer’s mode and that proposal, which proves a second negative mode when its larger value lies below minus the measurement’s asymmetry (Courant–Fischer). A proven soft second mode seeds the measured partitioned-RFO refinement from the surrogate Hessian corrected along the measured directions, and the complete stencil judges the refinement’s end point; a probe that proves nothing, or a hard second mode, falls through to the stencil. Each measured geometry is assigned to one MPI worker and included in the oracle-call ledger.Scheme II forms FP64 and builtin INT8 products with runtime CPU dispatch and vectorizes signed-residue preparation. Its integer bounds, rounding direction, scalar fallback and selected BLAS backend are preserved.
The documentation follows tutorials, how-to guides, reference and explanation sections, with a
gprntutorial, generated C, Fortran and Python references, and a nitpicky Sphinx build in which every warning fails.The rank-local SVGD objective shares atomic-distance derivative geometry between covariance assembly and likelihood gradients. Particle posteriors are fitted independently for each prediction.
gpr_neb_searchandgpr_neb_search_potentialrefuseGPR_NEB_GP_OIEandGPR_NEB_GP_AIEwithGPR_ERR_INVALID_ARG; they ran those modes without a GP surrogate.
Fixed¶
GP training covariance blocks are conditioned on the floored observation noise throughout, mixed energy and force blocks share one statistical inverse, spectral inverse conditioning includes the nullspace, distinct nearby observation geometries are preserved, and residual posterior fits keep their iteration limits.
GP-OIE, GP-AIE and OIE bands keep the uniform spring law once every image is measured, so the measured convergence check uses the force the surrogate relaxation converged. A fully measured band could otherwise read the energy-weighted spring difference as residual force and spend one oracle call per outer iteration until its limit. Standard and AIE bands keep energy-weighted springs.
Measured saddle recovery preserves input masses for moving atoms and uses the physical step space for molecular, periodic and anchored systems. Its energy-model allowance follows the selected force norm, and every oracle probe observes the caller’s evaluation budget.
Measured saddle refinement preserves transverse negative-curvature directions at vanishing gradients and contracts inaccurate energy trials before applying the saddle-region floor.
Saddle polishing now restricts Newton steps and force acceptance to the system’s allowed Cartesian coordinates. Periodic systems retain rotations, fixed atoms remain immobile, and rigid modes are removed only where the configured system has those symmetries.
The GP dimer no longer re-measures the terminal Hessian after small surrogate moves. When the measured terminal rotation completes its expansion without a negative curvature, the dimer keeps that Hessian; a later stencil refusal within one dimer separation of the same midpoint stops the relaxation as
MeasuredIndexZero, andgprdleaves the point by the partitioned rational-function refinement it already uses for higher-order midpoints. Before, each 1e-3 A move restarted a complete expansion at two oracle calls per direction until the phase budget ran out.The NEB and dimer contact floors calibrate to the geometry they protect: the band to its endpoint contacts and the dimer to its starting midpoint, not to archived observations of earlier searches, which can hold the collapsed contact the floor exists to block. The band re-selects only its own archived observations, compares pair keys by value, and keeps the chord of a band whose fixed atoms lie outside it.
The gprd and gprn drivers build and install without the test suite. A release build with
-Dwith_tests=falseinstalls both; the newwith_driversfeature option (auto: on for a top-level build, off as a subproject) leaves them out of library-only builds such as the Python wheel.The joint posterior covariance under the HS-SVD stable basis stays positive semidefinite at near-duplicate points: discarded directions take a complement weight bounded by the basis resolution instead of the inverse noise alone, which overweighted them when the noise sat at its conditioning floor.
The measured partitioned-RFO refinement that leaves a higher-order midpoint with a soft second mode is a trust-region walk. Each step is the restricted partitioned rational-function step on the Cartesian radius, the constrained solution that keeps the maximized-mode component a clipped free step loses, defined at vanishing mode gradients; the radius starts at and never exceeds the dimer’s maximum step, since a longer Cartesian step along a torsion stretches the bonds of the turning fragment at second order, which the quadratic model carried along the walk does not predict. A step is accepted when the measured energy change departs from the modelled one by no more than the energy a converged force makes over the step, in the configured force norm, scored under the scale-free trust-region thresholds that halve the radius on rejection and restore it after a clamped step; the defect of the modelled gradient at the trial is recorded with each step. After a rejected step, and before an index-one model ends the walk, the model’s two lowest modes, and every further mode whose curvature lies inside the resolution of the stencil or expansion that produced the Hessian, are measured by one Hessian action each at the dimer separation, so the curvatures that steer and end the walk are measured rather than carried by secant updates over a long descent, and a weak mode the model ranks higher cannot end the walk with an inferred sign. The walk takes the dimer’s outer-iteration limit and oracle budget; it ends when a trial coincides with its origin at coordinate roundoff, handing its end point to the next dimer search, and is abandoned for the order-one restart only when it steps below
--dimer-energy-floor, the higher endpoint energy below which no first-order saddle between the endpoints lies. The driver’s soft-mode verdict compares the force response of the measured Hessian over one maximum step along the second mode with the convergence force. Before, steps were accepted whenever the force stayed below three times the previous step’s, and a walk from a Grignard midpoint took hundreds of full-radius steps along a model the measurements contradicted, wandered 20 A and ran the four-rank search into its time limit; and a weak mode outside the two measured ones ended a walk with an inferred index-one model that the complete stencil then refused, at the cost of a second stencil and walk.Wheels and installs carry the libraries
_coreneeds:librgpotinstalls withlibgpridge,_corehas an$ORIGINbuild RPATH for the packaged library, and_core.pyimatches the built module.
0.5.2 - 2026-10-29¶
Changed¶
Scheme II uses runtime-selected vector kernels for exact FP64 residue products, bounded signed-integer accumulation and residue preparation. Scalar fallback and the selected BLAS backend remain available.
The rank-local SVGD objective reuses full derivative geometry for covariance assembly and likelihood gradients within each evaluation. Particle posteriors are fitted independently for each prediction.
Fixed¶
A shared isotropic length scale sums force-kernel derivatives over every pair type. Live and cached-geometry paths expose the same two hyperparameters and preserve reordered parameter selection.
Covariance derivative documentation states the signs used by the energy and force blocks.
0.5.1 - 2026-10-28¶
Added¶
GP-backed line-integral and imaginary-time paths can qualify surrogate steps against native forces.
Changed¶
Corrected the clone directory in the installation and contributor guides.
SOAP descriptors reuse a system’s neighbour list for repeated requests at the same cutoff. On the Pt heptamer atomic GP-NEB start the first outer iteration drops from 285 s to 56 s on one thread, with identical oracle calls and band forces.
Fixed¶
Sparse energy and derivative observations use their stored channel positions in covariance assembly, prediction and Laplace estimates, including distributed backends.
Training geometry preserves coordinates supplied independently for each observation channel and validates their widths.
Cached bordered factors reject reuse when observation-channel identities change.
Selective path refits retain native-owned endpoint observations and enforce the observation budget.
A fixed nearest-frozen count whose anchors do not span a plane (fewer than three, or all on one line) now rises to the nearest anchors that do, when the frozen atoms offer them. Two anchors left the rotation of the moving atoms about their axis invisible to the pair-distance features, so the CuH2 dimer with two Cu neighbours stopped at 501 phases on three of four starts.
Both vendored
Potentials.capnpcopies in the rgpot wrap patch match the pinned potentials-schema revision, so Cap’n Proto builds pass the rgpot schema-sync tests again.LI-String endpoints follow the spring pull towards their neighbour, projected onto the turning contour, as in LI-NEB. Scaling the endpoint force by the mean interior force let the endpoint residual vanish with the interior, so on the inverted harmonic surface the endpoints stopped 0.025 off the axis and the action fell 2.6e-3 short of LI-NEB.
The
NebParams.forceNormordinals are recorded in the schema, and theForceNormandLineIntegralStringheaders are installed with the library.The frozen-atom set keeps its feature ordering when a reselection leaves it unchanged, invalidates fitted models after a clone is removed, and the band session persists the removal of inactive frozen clones.
0.5.0 - 2026-10-25¶
Release 0.4.0 (tag v0.4.0, 2026-10-21, the source of the JCIM reproducibility package) has no section of its own. Its changes are listed here with those of 0.5.0.
Added¶
A band run writes its whole training set to
band.h5under/training(positions,gradients,energies), so the fitted GP can be rebuilt from the band file alone. It also writes the final training set as<archive>/trainingand the fitted kernel as<archive>/kernel.txt; agprdrun seeded from that archive starts from the band’s kernel and the pruned training set instead of every archived oracle call.Both command-line programs share their Argum potential options and native rgpot constructor registry.
--list-potentialsreports compiled support. Oracle parameters use the canonical Cap’n ProtoPotentialConfig, carried inside the unified run configuration or supplied with--potential-config. Owned native backends retain batch evaluation, uncertainty channels and their advertised concurrency restrictions.C ABI 1.1, additions only:
GPR_ABI_CHECK(),gpr_abi_version,gpr_last_status,gpr_last_error_copyandgpr_status_name; the status codesGPR_ERR_SIZE_LIMIT,GPR_ERR_ORACLE,GPR_ERR_UNSUPPORTEDandGPR_ERR_ABI;gpr_set_linalg_mode,gpr_set_linalg_threads,gpr_set_training_productandgpr_check_model_packagefor the--linalg-mode,--linalg-threadsand--training-product-libraryoptions and the model package ISA check;gpr_dimer_search_reportwith the convergence flag, stop reason and zero level of a dimer search;gpr_neb_result_convergence_status;gpr_potential_from_force. Agpridge.pcpkg-config file is installed, andabi/gpridge_c.symbolsrecords the exported functions.Distances take the minimum image along the periodic axes of a slab or a wire only. A cell row of zeros is an open axis:
geometry::PairBoxbuilds a minimagemi_pbc_cellfor such a cell, takes the nearest image over the lattice of the other rows and none along the open ones, and every distance, descriptor and pair-cutoff consumer reads the mask from the cell it already receives. A cell with three nonzero rows keeps themi_cellpath bit for bit.subprojects/minimage.wrapand the CMake fallback pin minimage main at bc7780d.InputParameters::cell_periodic(default all periodic) zeroes the rows of the open axes when the GP takes its cell.GP-NEB accepts an explicit convergence force norm through the command line, TOML and binary configuration. The selected norm applies to physical forces, band forces and the force error used for posterior refits. The default keeps the atomic saddle and Euclidean whole-band criteria.
GP-OIE image GPs in
gprnassemble the joint energy-force prior throughManifoldEnergyForceKernelon anInternalCoordinateChartwhen molecular internals exist, including the classic CHEMGP and GPRD_ZBL profiles on the global model (per-image charts remain EXTENDED-only). Off-manifold directions keep zero prior variance.--gp-geodesic-image-priorcomposes the geodesic heat kernel with the chart kernel; each component keeps its own parameters and pair metric, and a NEB seed transferred to GPRD preserves them.Hyperparameters of the charted (composite) Sexpat kernel are fitted.
optimize()maximizes the marginal likelihood with its exact gradient under an attachedInternalCoordinateChart, andevaluateDirectionalCurvaturesupplies exact second derivatives, including the configured log prior, so SCG’s curvature mode works without a secant fallback. When the configured objective is a leave-one-out one,optimize()fits a charted kernel on the marginal likelihood for that call and restores the objective afterwards.Meson option
use_rgminand CMake optionGPRIDGE_USE_RGMINbuild GP hyperparameter fitting and dimer steps on rgmin; builds without it keep the built-in solvers. Meson and CMake refuse an rgmin whose header declares a major other than 1 or a minor below 28 and name the required and found versions, and the first rgmin call at run time compares the compiled-in ABI stamp with the library and raises an error naming both. The installation guide states the required ABI.Native fit replay reports phase times, work counts, and sampled peak memory for each MPI rank. The snapshot excludes archive loading and training-error checks.
Optional mimalloc allocation (3.5.3 or newer) and scoped heap containers are available. Containers retain heap ownership across handle destruction and allocator rebinding, and preserve element destruction and alignment. The default allocator remains the system allocator; mimalloc 3.5.3 tolerates the early
free(NULL)calls glibc 2.44 makes during C++ locale initialization.Path-union internal coordinates keep Gabriel edges from the path endpoints, the climbing image and the current band, so a forming or breaking bond stays in the internal-coordinate chart.
gprn --relative-neighborhood-graphselects the parameter-free Toussaint relative-neighbourhood graph, a Gabriel subgraph, instead.Python:
set_linalg_mode,linalg_mode,set_linalg_threads,set_training_product,training_product_configured,check_model_package,backend_name,abi_report,check_abiand_core.__version__;GPNEBConfig.linalg_modewith theLinalgModeenum;GPNEBResult.convergence_status;AtomicDimer.restart_along_weak_mode,refine_saddle_from_measured_hessian,restart_from_higher_order_pointandget_energy_zero_level.get_termination_reasonnamesinvalid_atoms_configuration, which it reported asunspecified.Sexpat pair vectors,
InternalCoordinateSetbonds and the cutoff-free Gabriel and relative-neighbourhood bond graphs fold displacements through the minimum image whenever the 3x3 cell is nonzero, so periodic systems bond across the boundary instead of through the box. A zero cell keeps the Cartesian isolated-molecule path.gprnforwards its declared lattice into the topology.Terminal dimer rotations keep measured Hessian directions in a Krylov subspace at each fixed midpoint, and each proposed Ritz mode is checked against an actual endpoint force before its curvature can certify convergence. Independent curvature directions are batched across oracle ranks; a measured negative mode rejects early, and positive saddle certification needs the complete physical space. Rotation probes stay in the observation archive without growing the GP training matrix, and requested index checks run before terminal rotation.
The C API adds
gpr_potential_from_force_with_uncertainty, so C callers can wrap a force-with-uncertainty function as a potential. Python addsPotentialWrapper.from_rgpotandgpridge.from_rgpot, which accept either a realrgpot::PotentialBaseobject or a plain callable.The C++ library provides typed kernel operators
Sum,Pullback(chart),Project(N) = N K_q N^TandKronecker(k, M).The Fortran module binds the NEB, dimer and minimizer searches (
gpr_neb_search,gpr_dimer_search,gpr_minimize) withbind(C)callback interfaces,DimerConfigandDimerReporttypes, andstat/errmsgarguments in the style of the intrinsic statements, together with the runtime configuration calls andgpr_check_abi.The NEB driver accepts the dimer’s
--nn-frozen,--radius-onlyand--evict-frozencontrols. Frozen-atom selection is applied before loading the initial GP environment and retained during the search. These controls change the surrogate representation; the physical potential retains every atom.The
gprd --weak-mode-continuations COUNToption permits bounded continuations along a weak mode when the complete Cartesian stencil leaves the saddle index unresolved. The default allows three continuations. The displacement uses the measured curvature rate and its effective mass, with the dimer translation limit as its upper bound. Every resulting midpoint must pass the force and index checks. A midpoint that remains uncertified retains that verdict and returns exit code 2. Search call counts include the rejected stencils and continuation measurements.The
gprnouter-iteration report line carrieshmode=(hyperparameter fit in force),hit=(INLA mode-search iterations),nsvd=(stable-basis eigenfactorizations so far), per-iteration wall times (pt_asm,pt_fac,pt_obj) with the objective countnobj, and the resident size (rss_mb,rss_peak_mb,rss_peak_phase). The heap is trimmed at each outer boundary on glibc. Dimer phase logs time pair fitting, chart fitting and support expansion separately.The converged climbing image carries a first-order-saddle certificate (
certifyClimbingImageIndex,--ci-index-certificate, default true). It tridiagonalises the non-rigid Hessian by Lanczos on measured Hessian-vector products (2(3N-6) oracle calls, reported in their owncertificate=bucket) and accepts the image only when the lowest curvature is negative and the second is non-negative. A refused image runs a standalone GP-dimer escape from the displaced image (runIndexEscapeGpDimer), with the band restart from the moved image as fallback, and the outcome prints as “Climbing-image index certificate: …”.--index-test dimer|lanczosselects the index test; a dimer that spends its 16-rotation budget is reported as unresolved.The first GP dimer tutorial gains a surface example: a gold adatom on a frozen Al(100) slab under EMT, converging to the bridge site of the hop between hollows in about ten oracle calls.
The unified configuration schema carries
schemaVersion(version 2), and readers refuse a newer message.LinearAlgebragainsmode,threadsandtrainingProductLibrary, set from a[linalg]TOML table (mode,threads,training_product) and applied bygprn --configas--linalg-mode,--linalg-threadsand--training-product-library. The suite checks every field ordinal againstschema/*.capnp.ordinals.--band-certificate-force-scale 0selects a constant-free band certificate (gpr::neb::detail::bandDiscretizationCertificateHolds) that compares the true perpendicular force at the climbing image with the chord leak|F_along| tan(phi/2); a positive scale keeps the force-scale tier, and--band-leak-bound truerequires the leak to be within the force tolerance. A whole-band midpoint check (certifyBandMidpoints, reported as “Band midpoint certificate” and folded intoCertified:) requires the climbing image to be at least as high as the surrogate energy at every segment midpoint. A refused midpoint is measured with at most one oracle row per segment before the refusal stands.--gp-manifold-chart <bool>gates the classic-profile manifold chart.--gp-initial-log-move DISTANCE(gprd and gprn, default 1) bounds how far the first step of a cold rgmin MAP fit moves the hyperparameters, in log units; 0 leaves the first step to the solver.--gp-initial-log-move-scope first-stepcaps only the first step of a cold fit, while the defaultsessionbounds the opening step of every line search in the session. C++ callers useRgminOpt::setInitialLogMove.--gp-variance-convention latent|predictiveselects the posterior variance every backend reports.latent(the driver default) removes the likelihood nugget from the prior so the Cholesky and stable-basis backends agree;predictiveis the classicget_variance.mdefinition.--hyperparameter-mode rgmin_scgruns the NLML hyperparameter fit through rgmin SCG (Liu-Storey conjugacy) in builds that link rgmin. The built-in SCG stays the default mode.--linalg-threads Nongprnandgprdsets the dense linear-algebra thread count (Eigen, OpenBLAS when linked) and records it in the provenance dump; the OpenMP runtime is left to the oracle adapters, whose compiled kernels are reproducible only single-threaded.--neb-band-engine rg-saddle-ode12randrg-saddle-ode12r-exprun rgsaddle’s ODE12r band stepper (Makri, Ortner and Kermode, J. Chem. Phys. 150, 094109, 2019): forward Euler on the projected band force with an embedded second-order error estimate, residual-controlled acceptance and an adaptive step, one band evaluation per trial whether or not the trial is kept. The-expvariant applies the per-image exponential metric of Packwood et al. (J. Chem. Phys. 144, 164109, 2016) inside the band projection, as Eq. (9) and (10) of the Makri paper write it, throughrgsaddle_band_set_exp_precon(rgsaddle ABI minor 22), with the energy scale estimated on the first step. That band relaxes to the minimum energy path of the metric’s geometry, on which the Euclidean perpendicular force does not vanish, so the inner relaxation converges on the metric residual the library reports (Eq. (11) of the paper) instead of the surrogate perpendicular force. Both run on the linked librgsaddle.--rgsaddle-library, orRGSADDLE_LIBRARYwhen the flag is omitted, stores the index-test selection and is not a path the process opens.--nebmode gp_localrelaxes a band on a pair-additive spline baseline fitted to every measured force plus a local GP residual on the atoms that carry the path, and measures one image per outer iteration. Each round opens with the local atoms and their shell moving against a standing substrate on the pairs that touch them, then hands over to the full band. On the OptBench Pt heptamer and Pt island it converges in 20 and 15 oracle calls against 442 and 347 for the true-force CI-NEB control, in 0.084 s and 0.075 s against 0.100 s and 0.079 s on one core with the vectorised Morse oracle.--restricted-variance-acquisition(default off) sends an interior image to the oracle when its proposed-position energy variance exceeds the fitted likelihood noise s^2.--training-product-library scheme2:fp64andscheme2:int8select CPU implementations of Ozaki Scheme II: residue products on FP64 GEMM or on INT8 GEMM (MKL, oneDNN or a portable kernel), recombined exactly with the Chinese Remainder Theorem. The reproducible distributed factorization, its extension, the wide triangular solves, the inverse and the Gram products then take their products from the engine and their panel work from fixed-order kernels, so the factor is identical at every rank and thread count with threaded integer or FP64 GEMM.--training-product-library scheme2:int8:provider=cudaruns the INT8 Scheme II engine on NVIDIA INT8 tensor cores (-Dscheme2_cuda=truebuildslibgpr_scheme2_cuda.so). Residues are formed, multiplied and reconstructed on the device with the operations of the CPU engines, so products, factors and solves keep the bits ofscheme2:fp64at every rank and device count.ActiveLearningSession::setEvidenceRefitTriggerconditions acquired rows that the posterior explains at the held theta until the contradiction evidence accumulated since the last hyperparameter fit reaches one nat.measuredRowsAgreeWithPosteriorreports the evidence. Off by default.GPDimerhonoursase.constraints.FixAtoms: the fixed atoms are the frozen atoms of the dimer’s atoms configuration, the dimer’s coordinates, observations and orientation cover the moving atoms only, and the fixed atoms come back with exactly the coordinates they went in with. Any other constraint type, or a constraint that fixes every atom, raisesValueError.GaussianProcessRegression::fittedHyperparameterInformationreturns the observed information of the fitting density in free log coordinates, with the matrix mapping them to the packed kernel and noise parameters. The density includes the MAP penalty, the kernel priors, the fit rows and the target scale.setRetainFittedHyperparameterDensity(true)retains the snapshot; it is off by default and the call returns false when the model no longer holds the fitted parameters.GaussianProcessRegression::setOutputScaleFloorfloors the output standardization scale at sqrt(jitter) * rms(|G|) * rms(|R - mean R|), so a near-flat energy target no longer amplifies the standardized gradient targets without bound. A wide energy range is unchanged. Off by default.GaussianProcessRegression::setSkipUnchangedSubsetFitskips a hyperparameter fit when an append leaves the farthest-point subset, theta, noise and fit configuration unchanged; the new rows are conditioned at the held theta.setSubsetFailureEscalation(false)keeps the subset estimator when the subset fit does not converge, and retries on all rows only if the objective is not finite. Both are off by default.NEBPath::setSpringRestLengthsgives NEB springs per-segment rest lengths, and arc-length reparametrisation places images at the cumulative rest-length fractions. A band refinement resamples the converged band at the chord-leak equidistribution (detail::chordLeakSpringRestLengths), grows the image count by at most a factor of three, and holds that spacing while the refined band relaxes;--neb-hold-refined-spacing(default true) controls the hold.StationaryKernelcombines a squared distance with a radial function of it, and scale, sum and product close the radial leaves.SquaredExponentialandMatern52report the first and second derivatives of the stationary value (right-hand derivatives on a nonnegative squared distance for Matern 5/2). On a coordinate chart, a stationary radial supplies the joint energy and gradient blocks from the value and these two derivatives.gpr::ConstrainedChartCovariancebuilds the Jidling constrained covarianceK = N K_q N^Ton theInternalCoordinateCharttangent basis, so off-manifold directions have zero prior variance.gpr::bo::minimizesearches a boxed parameter vector with a scalar ARD squared-exponential Gaussian process: it takes a loss callback, trains in the unit cube, and picks the next point by expected improvement or a lower confidence bound. Logarithmic bounds put positive scale parameters on a log axis. The scalar Gaussian process takes the kernel as an argument and builds a scaled Euclidean distance with a squared exponential when none is passed.gpr::potentials::tersoffEnergyprovides the Si-O Tersoff energy with central-difference forces.gprd --gp-dimer-trace off|auto|<dir>writes the dimer loop trace to a readcon-db Corpus (one trajectory per phase, energy and frame_index in CON metadata). The training ObservationArchive is unchanged. HDF5 remains a fallback when no corpus is attached.gprd --gp-learn-noise [true|false]learns the joint [E,F] likelihood noise with SCG under the NLML objective, asgprn --gp-learn-noisedoes. The trailing log(sigma2) entry joins the hyperparameter vector and the objective scaling treats it like the log-magnitude.gprd --gp-seed-archive DIRseeds the dimer training set from the rows of a readcon-db observation archive (raw energies, asgprnwrites them), so a dimer started from a band-placed guess begins with the observations the band already paid for.gprdandgprntake--linalg-mode reproducible|library.reproducible, the default, keeps the tile-ordered distributed factorization, solves and inverse with single-threaded products inside each tile, so a run gives the same bits at every rank and thread count.librarycalls the ScaLAPACK (or SLATE) routines with the BLAS threaded at--linalg-threads, as before the tile kernels; its rounding depends on the process grid. Changing the mode drops every cached factor, inverse and replica.gprdprints the final midpoint energy, force norm, curvature and coordinates in a parseable block at the end of a single-ended run. A second identical nonterminal convergence witness is treated as a fixed point of the outer loop, and the run stops with a stated reason instead of repeating up to the outer cap.gprn --gp-ls-seed-chemical-floor(default off) floors each pair type’s length-scale seed, and the MAP prior’s per-pair anchor, at the covalent descriptor scale 1/r_bond. This keeps a spectator pair that barely moves along the path from seeding a collapsed length scale.gprn --gp-reactive-types(default true) gives atoms whose covalent bond set differs between reactant and product their own atom typeZ<n>*, so the Sexpat kernel fits separate length scales for reactive pairs and keeps those of spectator pairs.gpr::geometry::assignReactiveAtomTypescompares the two bond graphs (Cordero radii, minimum image, 1.25 (R_a + R_b) tolerance), andloadAtomsConfigurationFromFrametakes the product frame.gprn --metatomic-lebedev Naverages the oracle over a Lebedev-Laikov SO(3) node set (N = 6, 14 or 26; default 0, off), and--oracle-ira-align(default false) aligns the structure with rigid IRA immediately before each oracle energy evaluation. Both stay off by default, leaving the--metatomic-rotationspath unchanged.gprn --neb-band-engine <kind>selects the inner-band stepper:rg-lbfgs(the default when rgmin is linked),rg-fire(rgmin FIRE2),rg-saddle(rgsaddle band session on the linked librgsaddle),rg-saddle-rtr(Riemannian trust region, trust radius from--neb-lbfgs-max-move) orinternal-lbfgs(the built-in stepper, the default without rgmin). Unknown kinds exit 1 and list the valid values.rg-saddlealso works in builds without rgmin;rg-lbfgsandrg-fireneed it. Python exposes the choice asBandEngineKind.gprn --potential cpmdbuildslibcpmd_engine.sowhen-Duse_capnp=true. The plugin hands CPMDParams to CPMDPot, and CPMDPot loadslibcpmdc.so. The deck is a 14 angstrom cube.gprn --rgsaddle-library TEXTselects the index test on the linked librgsaddle and, when that selection is set, tests the converged saddle for index 1 with a lowest-mode session on the true surface;--index-test lanczos|dimerpicks the mode finder (defaultlanczos).--rgsaddle-refine truerefines the band maximum with a partitioned rational function optimisation, and--sella-min truesettles the result with SellaMin.--rg-minmode-dimer true(OCINEB option, default false) runs the climbing-image burst with the Dimer minimum-mode finder instead of the built-inAtomicDimer; Python binds it asOCINEBConfig.rg_minmode_dimerandGPNEBConfig.rgsaddle_library, and the Cap’n Proto config carries it asrgMinmodeDimer.gprn --saddle-polish-force F(librarygpr::neb::polishSaddleOnSurrogate) Newton-polishes the converged climbing image on the surrogate with true-force verification, one oracle call per accepted step, on the complement of the rigid-body space, until its max true-force component is at most F. The energy uncertainty left at force F is F^2/(2 lambda); the run reports the remaining quadratic correction. Polish calls count as outer (to-convergence) calls.gprn --verboseprints the oracle target planner stages ([acq-plan]), the inner-phase exit state ([inner-exit]), the support-boundary staging ([drift]), the fixed-point selection ([fixed-point]) and a withheld hand-off bypass ([handoff]).gprnaccepts--potential cpmd. The oracle islibcpmd_engine.sothrough the rgpot engine table, with BLYP at 70 Ry. Silicon is sent asLMAX=DandLOC=D, nitrogen asLMAX=PandLOC=P.gprnandgprdaccept--oracle-path engine|direct(defaultdirect),--potential-libraryand--engine-dir. Withenginethe potential runs through its rgpot engine plugin instead of the backend compiled into the binary;umaandomolmap tolibuma_engine.so. Rank 0 prints the library, engine ABI version, params arm and model digest, and the tracking run records them.gprnandgprdaccept--potential lammpswith--lammps-params. The oracle isliblammps_engine.so, which dlopensliblammpc.so. A parameters file names the pair style, the coefficients and the atomic-number map.gprnandgprdcan select Scheme II matrix products during Cholesky and HS-SVD training with--training-product-library. The GEMMul8 adapter keeps binary64 inputs and outputs, reuses device buffers, and limits its modular workspace.gprnparses TOML configuration through one unified schema, preserves its defaults, and rejects invalid enum names and value types.pot::EnginePotentialwraps a potential reached through an rgpot engine plugin (the versionedrgpot_engine_*C function table), checks the ABI version, and adapts toPotentialWrapperwith the engine variance as force noise.pot::resolveEngineandpot::openEnginemap a--potentialname to its engine library and params message (explicit path, then an engine directory or$RGPOT_ENGINE_PATH, then the loader search path).pot::reportEngine,pot::formatEngineReportandpot::recordEngineProvenancereport the library path, ABI version, params arm and model SHA-256.gpridge compares the C ABI stamp of the loaded readcon-core library, and of the loaded readcon-db library, with the stamp in the header it was built against. The check runs before the first frame is read or written and before an observation archive or trace corpus opens, and a mismatch fails with both stamps named. A
static_assertrepeats the major and minor test at compile time.gpridge compares the rgpot-core C ABI stamp of the loaded rgpot library with the header it was built against before the first rgpot potential is built, and fails with both stamps named on a mismatch. Meson and CMake reject an
rgpot.hthat does not declare major 1 and a stamp, and astatic_assertrepeats the test at compile time. The installation guide lists what the stamp covers and what it does not.gprdandgprnprint a[startup] abiline per checked library, in the format of the[startup] engineline (library, header stamp, loaded stamp, status verified or UNVERIFIED),gprn --dump-cli-argsrepeats them, and a configuration without the rgpot-core header warns at configure time and reports rgpot-core as UNVERIFIED.gprn and gprd accept –potential eam_al and –potential tersoff when the Fortran kernels are in the build.
Developer¶
GP fit and kernel internals avoid redundant work: the HS-SVD basis serves the exact-curvature probes, SCG uses the cached Cholesky factor and a training-side alpha-K contraction, appended observations reuse the Cholesky factor, covariance tiles reuse destination storage, LOO calibration is certified from the Cholesky diagonal, ScaLAPACK gradient traces are matrix-free, and the band’s expected-improvement pick uses an energy-only variance probe.
Prediction, chart fitting and conditioning internals changed without interface changes: the Cholesky backend predicts through inverse-distance descriptors, environment residuals contract in feature space, chart fits stream geometry rows, and conditioned searches reuse regularized factors when pruning.
The Birkholz board runner takes an
ORACLE=metatomic|umaswitch; charged cells run under UMA with the cell’s charge and multiplicity passed as--uma-charge/--uma-spin.The engine plugin path has a direct-versus-engine parity test (
test_engine_parity, 1e-10 eV and eV/A) over stored Baker and Birkholz geometries; the C++ API HTML from doxyYoda is published at/api-cpp/; unbuilt top-level twin copies ofgpr/sources are deleted and configure fails if one reappears;GprMeanPotentialevaluates on the engineforce/forceBatchsurface with batched GP predict/variance.The rgsaddle client takes request structures and signatures from the runtime’s published C header; builds pin that header without compiling or linking the runtime.
The suite builds the C API from strict C99, runs Muller-Brown NEB and dimer searches through the C, Fortran and Python bindings with failing oracles, checks the exported C functions against their record, checks the Cap’n Proto ordinals, reads the HDF5 band datasets back bit for bit, and fails when the Python stubs and the extension disagree. One page per binding sits under
docs/orgmode/bindings.Unreachable NEB training-prune, best-path force-ratio gate, second-growth state and dimer Eq. 19 estimate code, and duplicate root-level ParameterDefaults sources, are removed.
Changed¶
For training sets with energy and all Cartesian derivatives, distributed Cholesky likelihood fits assemble inverse-distance kernel blocks on the ranks that own them. The fit stores those blocks without replicating the full covariance matrix. The blocks include the kernel nugget, likelihood noise and numerical jitter; the constant covariance enters through a rank-one update. (#distributed-fit-covariance)
GP-NEB reports mixed band forces as
max_band_Fand measured image forces asmax_measured_neb_F, with the number of measured interior images. The band diagnostic plot reads both log names and labels the mixed quantity explicitly. (#force-provenance)Measured saddle recovery restores a contracted step radius when the measured gradient change agrees with the Hessian model, within the configured step limit and with independent saddle validation. (#measured-recovery-radius)
Distributed Cholesky rank-one updates communicate once per matrix block while retaining the sequential rotation arithmetic. Both distributed linear algebra backends use this update path. (#rank-update-communication)
The reproducible linear algebra mode uses the fixed tile order for SLATE factorizations, substitutions, inverses and posterior covariance products. It applies to ordinary binary64 products as well as Scheme II products. (#slate-reproducible)
C API errors carry their cause: an allocation failure returns
GPR_ERR_ALLOC, an LP64 index limitGPR_ERR_SIZE_LIMIT, an invalid argumentGPR_ERR_INVALID_ARGand an oracle that fails past the bound of the searchGPR_ERR_ORACLE, where 0.3.0 returnedGPR_ERR_INTERNALfor all four. Every failing call leaves a message; several returned a bare code. A callback that writes a non-finite energy or force is a rejected trial in the dimer and NEB searches and endsgpr_minimize, which trained on the value before.CUDA prediction products reuse pinned host and device storage per caller thread. Each batch transfers its operands and offsets together, then returns the results through a private stream. Changing the CUDA device releases the storage on its owning device. The exact product accumulation is unchanged.
Classic-profile hyperparameter refits are capped at the training-revision cadence and skipped when the objective is stationary at the current theta. The stationarity test takes its curvature from a gradient probe of the current objective when no cached model exists, so the one-step refit and the skip engage instead of running the full optimizer every outer iteration.
Climbing-image-only GP-OIE spends one oracle row per outer iteration where the search moves, not three or four: a trust-radius stop evaluates the frontier image, the force-convergence stencil buys the two neighbours of the climbing image, and h-refinement at the ridge is driven by the midpoint certificate (the chord-leak report forces a pass only under
--band-leak-boundor the measured band tier).Distributed triangular substitution collects immutable factor panels in groups, preserving the arithmetic order while reducing row collectives.
Full canonical tile updates can write directly into distributed matrix storage while keeping the same arithmetic order.
GP hyperparameter fits accept a step by approximate Wolfe conditions (Hager and Zhang 2005, equations 4.1 to 4.3) when objective rounding hides a decrease near stationarity, with a relative value window of
1e-6. The additional path requires both slope conditions; gradient stopping keeps the configured criterion.GP-OIE climbing-image activation requires the eOn force threshold (
max(ci_activation_tol, ci_activation_factor * F0)) and an interior energy maximum on the current band, instead of also requiring posterior peak confidence and band-wide variance convergence. The stricter checks run on the accept path (force tolerance, mountain-pass, band maximum, path ceiling, adjacent-perpendicular MEP certificate), so a band that keeps moving no longer starves activation.In builds that link rgmin, the INLA posterior-mode search uses rgmin Newton/RFO steps confined to the hyperparameter log-box, and the meson setups pass
-Duse_rgmin=enabled.Pin the CON reader to its 0.17.1 release and the observation store to readcon-db 0.2.0. Both use the same published reader.
The CON reader handles empty input and trailing whitespace consistently across serial and parallel parsing.
The NEB spring constant ceiling defaults to 5.0 eV/A^2 (the eOn value) in
gprn --spring-constant,GPNEBConfig, the C APIgpr_neb_config_defaultsand the PythonGPNEB/GPNEBSessionconstructors, up from 0.1. At 0.1 a steep exothermic band tears within one relaxation and hides the barrier inside one segment, so the climbing image never activates.The band row ceiling scores each training row with a factor taken in observation-major order, so every precision block is a solve on the trailing rows of that factor. The collective call shares the covariance blocks and the per-row scores out across the ranks. On the ethane hydrogen abstraction band in library mode the scoring takes about a third of its former time (4.7 s to 1.7 s on rank 0), with the same oracle calls and barriers.
The dimer uses a requested Cartesian stencil to decide terminal index recovery, avoiding a separate projected Hessian measurement and terminal mode rotation. Searches without that stencil retain the adaptive index check. A higher-order rejection enables a measured negative-pair check between complete stencils. That check requests an escape when both curvatures are negative; the full Cartesian certificate decides whether the saddle is accepted.
The internal-coordinate retraction stops at least-squares stationarity (step, damped step, residual decrease, or
J^T rbelow machine resolution) instead of iterating to an epsilon target that redundant primitives cannot meet.retractLinearizedReportexposes the iteration count and residual.The native readers use readcon-core with CON 3.1 support, corrected restart parsing, and indexed trajectories. Observation archives use readcon-db with compressed CON storage and automatic growth of the database map.
The rgmin and rgsaddle backed engines are named
rg-throughout where they weredest-. The--neb-band-enginevalues arerg-lbfgs,rg-fire,rg-saddle,rg-saddle-rtr,rg-saddle-ode12randrg-saddle-ode12r-exp; the option and configuration keydest-minmode-dimer/dest_minmode_dimerisrg-minmode-dimer/rg_minmode_dimer, with the Cap’n Proto fieldrgMinmodeDimerat the same ordinal; the PythonBandEngineKindmembers areRgLbfgs,RgFire,Rgsaddle,RgsaddleRtr,RgsaddleOde12randRgsaddleOde12rExp; the C++ classes areRgLbfgsEngine,RgFireEngine,RgsaddleBandEngine,RgsaddleClient,RgMinMode,RgSellaMin,RgSellaSaddleandRgEonNebEngine, and the test targetstest_rg_lbfgs_engine,test_rg_fire_engine,test_rgsaddle_client,test_rg_eon_neb_engineandtest_rg_dimer_rotation. The old names are not accepted.The rgpot pin moves to the revision that publishes the rgpot-core ABI stamp. Since the previous pin it also brings the UMA contract fixes (an edge count outside the exported graph’s range is refused, a charge, spin, task or composition the package lacks is refused, molecular input coordinates keep their precision, package publication retries through sharing violations), reuse of cached variance and stress, per-handle computed and served counts on the evaluation cache, validation of eindir callback results, collective MPI hosts, and process-lifetime NWChem engine handles. UMA-driven searches can change.
The stencil-index helpers expose a two-mode rejection test using eight gradient evaluations. A negative bound detects at least two negative modes within the measured error envelope. The production driver uses the complete Cartesian stencil for each continuation and final acceptance.
gpr_neb_config_defaults()in the C API and the Python session /GPNEBprepare path defaultlbfgs_max_moveto 0.1 A (0.2 in 0.3.0), matchingGPNEBConfig.gpridge.gp.GaussianProcessaccepts partly periodic cells, such as a slab withpbc=(True, True, False), where it raisedNotImplementedError. It passesatoms.pbcto the core ascell_periodic, and the core takes the minimum image along the periodic axes only, in training and in prediction. Only the cell vectors of the periodic axes must stay fixed between observations.gprdmeasures its interatomic trust against every observation rather than the seed rows alone, so the trust region grows with the dimer’s own measurements. Dimer translation applies the Sella MaxInternalStep trust and a Gauss-Newton internal-coordinate retraction before a true-PES evaluation, so a GP trial cannot hand a collapsed geometry to the oracle.gprn --spring-constantdefaults to 5.0 (0.1 in 0.3.0) and--gp-adaptive-prunedefaults to true (false in 0.3.0);--helpanddocs/cli_reference.mdlist these values. Pass--spring-constant 0.1or--gp-adaptive-prune falseto restore the 0.3.0 behaviour.gprnandgprdreach UMA (--potential uma|omol) through the rgpot engine plugin by default.--oracle-path directselects the compiled-in backend and stays available for one release; potentials without a generic engine keep it. The engine library is found without a flag next to a packaged runtime’s install prefix, in a development build tree, or through$RGPOT_ENGINE_PATH,--engine-dirand--potential-library; when it is missing the run stops with an error naming every place searched. Both drivers print and record the oracle path each run used.gprnandgprdrefuse--hyperparameter-modevalues other thanscgtogether with the classic profiles (chemgp,gprd_zbl), which fix the NLML/SCG fit. In 0.3.0 the option was accepted and silently overridden.gprnendpoint pre-assignment keeps the input atom ordering when the minimum-distance re-pairing would add covalent bond changes between reactant and product; the log line reports both bond-change counts.gprn and gprd spend about one second less per run. Ranks launched on one node leave Open MPI’s libfabric BTL unopened (its close sleeps for a second in MPI_Finalize), every band rank loads its potential at the start of the search, and only the reporting rank hashes the model, on a worker thread beside the engine load.
Fixed¶
RgminLbfgs, RgminScg, INLA and non-inertial RgminOpt sessions request no global step cap by default through negative
maxmovein the pinned rgmin 0.5.2. Inertial RgminOpt sessions keep their \(\log(2)\) cap. RgminOpt, the dimer stepper and the L-BFGS band engine clear rgmin’s default per-atom displacement cap; each retains its own optimizer-specific bound.The restore-or-continue policy learns from measured climbing-image forces. Surrogate forces and the band relaxation phase do not update its reward or its reference force. A pending decision waits for its measured outcome before the policy samples another arm. (#continuation-measured-force)
GP-NEB continuation sampling retains uncertainty after repeated zero rewards. The sampler uses a uniform Beta prior with fractional measured rewards and waits for a measured climbing force before updating the selected arm. (#continuation-reward-prior)
Measured climbing-image steps, band recovery and saddle polishing evaluate each requested position on one MPI rank and share the result across the search communicator. Oracle session restarts propagate to every rank before value collectives. (#measured-step-mpi)
Prediction arithmetic selection leaves training accumulators unchanged. Ozaki products retain cancellation residuals across slices, exponent windows, and chunks, with one final binary64 rounding. The CUDA product checks transfers and releases buffers on failure. GPU libraries must export
scheme_ii_product_launch_v2. (#predict-product)A GP-OIE acquisition the oracle refuses is a rejected trial: the next outer chooses another acquisition, and more than eight refusals in a row stop the run with the consecutive-failure error, in place of an early unconverged stop. A climbing-image dimer that stops on oracle failures fails that refinement and returns the band, without claiming convergence, in place of ending the run.
A UMA model package exported on an AVX-512 host no longer dies with an illegal instruction at its first force call on a host without AVX-512 (AMD EPYC). The drivers and the engine registry read the
AOTI_CPU_ISAfield of the package metadata, compare it with CPUID, and refuse a package the host cannot execute with a message naming the package, its ISA and the missing extensions.A
gprdoracle row coalesced into its nearest EMD representative counts as a degenerate probe, so the degenerate-probe handback arms instead of the dimer bouncing on one representative for hundreds of outer iterations.A build with
use_rgpot_umaoruse_rgpot_metatomicand the RPC arm compiles rgpot’spotservagain: the server includesMetatomicPot.hpp, and the rgpot wrap now patches its targets to carry the torch, metatensor and metatomic headers the engine targets already use. A fullninjasucceeds in the scalapack environments, andrgpot_potserv_buildsfails when it does not.A converged midpoint whose complete stencil shows a soft second negative mode, a weak mode the refinement resolves negative or a coarse curvature within twice the stencil resolution, is now left by partitioned rational-function steps measured on the oracle. The steps start from the stencil Hessian, update it by Bofill from each measured gradient, project rigid motion at the current geometry, and stop when the model has index one and the measured force is inside the tolerance. The force along such a mode stays below the convergence threshold across the whole flat ridge, so the weak-mode continuations and the surrogate order-one escape left the search on the ridge and each round cost a complete stencil. The probes stay out of the training set and only the end point becomes a training row.
A covariance that fails Cholesky is replaced by 0.5 (C + C^T) and factored once more before it is reported as not positive definite. The retry adds no jitter.
A failed oracle evaluation at a trial geometry no longer ends
gprdorgprn. A raised error (CuH2 “two atoms occupy the same position”, a CPMD SCF that does not converge) or a non-finite energy or force at a proposed geometry is a rejected trial: no training row is kept, the dimer returns to its accepted midpoint with a shorter next step, and the band restores its measured images and halves its step bound. GP-OIE stencil and certificate targets the oracle refuses stay unmeasured and are not requested again. A failure at the start geometry or a band endpoint, or more than eight failures in a row, stops the run with a message naming it.A hyperparameter optimization mode set explicitly on
GaussianProcessRegressionsurvivesinitialize(). In 0.3.0initialize()re-derived the mode from the profile string and reset it.A per-image internal-coordinate chart that becomes undefined at a training row or probe, such as a dihedral over three collinear atoms in a crystal, is dropped for that image instead of stopping the band.
A periodic NEB takes minimum-image chords for the initial path, the tangent and the spring, and endpoint alignment no longer rotates a periodic cell. Fixed atoms stay on the reactant site.
A surrogate that has not predicted a new force within tolerance moves each atom by at most one band step, and a measured geometry keeps its oracle force.
A true-PES exception on a GP trial (for example an SCF failure at a proposed geometry) rejects the trial and restores the last accepted midpoint instead of aborting the process.
Activating frozen atoms no longer aborts when every frozen atom is already active. With all frozen atoms inside the activation distance from the start the inactive set is empty, and
ProblemSetUp::activateFrozenAtomsasserted that it never is; the call now reports no change. A dimer search on a system with fixed atoms close to the moving ones stopped at that assertion.Adaptive pruning keeps every row that is a current band image and the row nearest each image, the support of the trust region the band relaxes under.
An SCG warm start whose amplitude lies above the MAP log-amplitude barrier is now reported (
GaussianProcessRegression::lastWarmStartInfeasible) instead of stalling the fit. In 0.3.0 every trial step crossed the barrier and the fit never moved. The dimer re-seeds an attached model’s hyperparameters from its own rows when its warm refit reports this.An exception that escapes
gprnorgprdno longer aborts the process throughstd::terminatewith a core dump and, on most launchers, no message. The driver printsgprn: error: <message>(orgprd:) and exits with status 1; on more than one rank it ends the job throughMPI_Abort, since the other ranks may wait in a collective the failing rank never reaches.An explicit
gprd --curvature-modetakes effect after the configuration file is loaded, so the command-line value overrides the file.An explicit
gprd --report-leveltakes precedence over the configuration file, including silent output and detailed fit diagnostics.Apply explicit periodic-axis flags before selecting and radius-seeding frozen neighbors, retaining the shared masked lattice during band refreshes and GP configuration updates.
Canonical tile products, Gram products, Cholesky factors and triangular solves use a private compiled Eigen library. Application decompositions retain their configured BLAS and LAPACK backend. Supported 64-by-64 products use wider vector lanes while preserving the compiled kernel’s accumulation order. Partial tiles and unsupported processors use compiled Eigen.
Con files written by
gprn --write-conand--trace-concarry the frame energy again. The energy is set through the readcon builder metadata instead of the header-line argument, which the writer ignores.Dimer observation archives preserve the full cell matrix used by the geometry loader, including the off-diagonal components of triclinic cells.
Dimer restarts read seed observations on rank zero and broadcast the rows to all participating ranks. A single reader avoids archive lock contention across nodes and gives every rank the same observations.
Distributed GP gradients reuse one covariance inverse with configured block sizes, including the fine derivatives used to review tied length scales.
End a dimer search that cannot progress instead of spinning. A caller’s oracle-call budget (
AtomicDimer::setMaxOracleCalls) stops the search unconverged with the newOracleBudgettermination reason; a dimer separation that is not positive ends the search at once withInvalidParameters, since the two images then coincide and every curvature is 0/0; and a run of 30 consecutive probes that add no distinct observation ends any search, not only a burst, withDegenerateProbe.Frozen atoms are activated against the moving atoms only; a full-frame geometry no longer activates every frozen atom.
Frozen substrate selection uses minimum-image distances for nearest-neighbour, radius activation and radius eviction. The input lattice is installed before the initial selection, so atoms across a periodic boundary enter the same local environment as their translated images.
GP training under the reproducible selection, and every SLATE build, computes on the 64-row automatic tile (or the configured block) instead of the observation stride, which put a 5600-row SLATE trainstep on 7-row tiles. The ScaLAPACK library routines keep the stride. Appending rows to a cached factor whose order ends inside a tile rebuilds that tile instead of refusing the append.
GP-NEB builds internal-coordinate charts only for image models with enough observations to predict. An unchanged anchor and coordinate definition reuse the chart across neighborhood refreshes, avoiding duplicate SVDs while keeping the same primitive coordinates, periodic cell and local covariance.
GP-OIE bands no longer replay an outer iteration that cannot change the model. Every oracle measurement enters the training ledger, a staged proposal the ledger lacks is not dropped, a pending climbing-image activation member is bought by the selector, and a band the surrogate cannot move measures where it stands. A hand-off bypass is honoured once per burst, a measured climbing-image step that removes less than a tenth of the excess force leaves the step radius at zero, and a fixed-point exit requires that no oracle call happened in the outer.
GPNEB, GPNEBSession, and GPDimer take
model_profileand forward it onto the search. The default isgprd_zbl, the profile named by the Baker production board. PassNoneto leave the library default.Hessian symmetrization in saddle searches, curvature models and Laplace approximations evaluates the average (H + H^T)/2 before overwriting the input matrix, so both triangles contribute.
Hyperparameter refits with
--hyperparameter-objective loo(and local LOO) no longer reuse the marginal-likelihood gradient in the refit-skip test. In 0.3.0 that gradient is not small at a LOO optimum, so every outer iteration paid a full refit. The test now reads the gradient of the fitted objective, and the capped warm start and refit skip apply only to objectives with a cached curvature model (NLML); LOO refits run the full SCG.INLA computes its length-scale domain from distinct geometries instead of repeated energy and gradient rows. Periodic extended systems retain the same distance range with less geometry work and memory.
In a periodic cell the band GP now cuts pair features at half the shortest lattice-row spacing when no pair cutoff is given, so a pair that crosses the minimum-image boundary no longer turns the predicted forces discontinuously.
Internal-coordinate charts on linear molecules (HCCH, HCN) threw “internal coordinate angle is collinear” in 0.3.0. A nearly collinear valence angle is now replaced by a pair of linear bends, dihedrals with a collinear inner triple are dropped, and a path topology applies this across every geometry of the path. An angle met exactly collinear at a later query uses the finite one-sided limit of its Jacobian instead of throwing.
Invalidate fitted posterior factors when the selected frozen environment changes, so global model leases rebuild on retained observations at the fitted hyperparameters.
Invalidate the dimer’s unchanged-fit guard when the likelihood variance changes, including noise-floor adjustments and changes between refits.
Keep the configured optimizer sequence across repeated fits when SCG exhausts its iteration budget, preserving the subset estimator and its failure status.
Measured dimer escapes use rank zero’s trial geometry and acceptance decisions on every process. This prevents MPI deadlocks when numerical differences would otherwise send ranks into different oracle and fitting calls.
Native band searches release their search state before finalizing the Message Passing Interface (MPI) runtime. Normal shutdown runs process exit handlers, so profilers can write buffered results.
One refused force call keeps the other geometries measured in the same step. The search records the refused geometry and continues on the measurements that returned. An acquisition whose every geometry is refused still stops.
Oracle batches preserve energy and force uncertainty separately and count attempted evaluations when callbacks fail. MPI sharing retains the owner’s binary64 values, including signed zero. CUDA requests load the Torch runtime only for engines that use Torch.
Per-image GP materialization uses the same exact hyperparameter identity as the global model. Matching infinite log parameters retain a valid cache, while every finite parameter change and every NaN invalidate reuse.
Periodic GP fitting reuses radial pair geometry when the kernel has a finite cutoff. Energy, gradient and hyperparameter blocks share the same switched pair features.
Periodic GP-NEB reuses pair derivatives when assembling hyperparameter curvature, avoiding repeated reconstruction of coordinate-channel blocks. MPI ranks own distinct tiles and replicate their values without floating-point reduction, preserving the arithmetic of the single-rank calculation.
Respect a reduced thread budget when overlapping tile computation with communication, even when the pool retains workers from a larger budget.
Restoring a band also restores its climbing marker and the climbing image’s measured energy and gradient. The convergence check applies the path energy ceiling and reuses measurements at the retained geometry. Missing neighboring measurements still require oracle calls. An unconverged restore restarts the outer loop so force decisions use the restored geometry.
Retained-data fits print their requested phase summary. Distributed gradient profiles report inverse construction separately from kernel derivatives.
Reuse the measured dimer midpoint when refining a saddle from its Cartesian Hessian. The refinement evaluates the starting geometry only when its saved energy or gradient is incomplete or nonfinite.
SLATE host tasks use the configured numerical thread budget, bounded by CPU affinity. Each task keeps one BLAS worker to avoid nested oversubscription.
Cholesky inversion uses zero lookahead so panel broadcasts follow dependency order.
SLATE task teams are capped at the rank’s share of its CPU affinity mask: the mask divided among the ranks of the node that share it. Unbound ranks on one node no longer run more spinning task workers than CPUs, which stalled repeated factorizations at six ranks on eight CPUs.
The C dimer search runs from
gpr_dimer_config_defaults(). The default initial rotation tolerance was 5, outside the accepted (0, pi) radians, and every search was refused; it is 0.0873 (5 degrees). The search evaluates the starting midpoint instead of reading it as a measured stationary point with zero energy and force, takes the reference positions fromR_initwhen the atoms descriptor has none, and fills the moving and frozen atom sets the dimer checks. A NEB search that throws no longer leaks its result.The Fortran
bind(C)NEBConfigandModelConfigtypes matchgpr_neb_config_t/gpr_model_config_t, includinguse_zbl_prior_meanand the layered-chain, trust, ScaLAPACK and L-BFGS fields; in 0.3.0 the layouts differed from the C structs. The public enum constants include GP-OIE, TPE and EMD.The GP band and dimer searches give the same answer at every MPI rank count, process grid and
--linalg-threadscount. The distributed Cholesky factor, triangular solves and inverse run as tile-ordered kernels on the block-cyclic layout; every reduction that crosses ranks (log-determinants, traces, the hyperparameter gradient, the diagonal of a covariance, the neighborhood LOO objective) uses an exact accumulator merged by integer addition; the alpha-K mean is contracted in fixed chunks; the shared kernel exponential is evaluated in fixed packets; BLAS and Eigen products run single threaded while the independent tiles of a factorization, solve or panel run on the configured threads.The GP-OIE force-posterior readiness ceiling scales with the coordinate count and uses the model’s total diagonal regularisation (likelihood variance plus jitter,
GaussianProcessRegression::getPhysicalTotalDiagonalRegularization). In 0.3.0 a trace summed over every coordinate was held to a per-coordinate bound, so unobserved images stayed unresolved and the band measured one image per outer iteration.The Gaussian process nudged elastic band method releases pending acquisitions when a contact guard or the oracle refuses the geometry. Refused points remain unmeasured. The search tries available targets and reports non-convergence when recovery cannot progress.
The HS-SVD stable basis in 0.3.0 could drop a component that still mattered at the likelihood variance, and silently raised the likelihood variance to sqrt(eps) times the largest eigenvalue when the kernel had a near-null direction. This made reported posterior variances differ from the explicit posterior and from the dense Cholesky backend. A component now leaves the basis only when its squared singular value is below
chop_toltimes the likelihood variance, and the variance floor is the smallest noise double precision can resolve.The INLA mode-finder bounds the signal variance by the same data-scaled ceiling as the MAP objective instead of a fixed variance of 2 in standardized units, so fits on targets that span more, such as a solid-state band, no longer pin the amplitude and collapse the length scales.
The Meson
gpridge_depdependency exports the library compile arguments and header dependencies, so Meson consumers build with the same numerical configuration, SIMD baseline and Eigen ownership as the library.The NEB length-scale search keeps each scale at least 1/r_bond. The lower edge of that search was a thousandth of the descriptor diameter, and the shortest scale sat on it.
The
MorokumaExtendedIRC method adapts its step from the linear-model trust ratio (actual over predicted energy reduction); the 0.3.0 guard on the predicted descent never fired.The
_core.pyitype stubs match the 0.3.0 bindings:DistanceMetricTypelistsMAX_1D_LOG,RMSDandEMD(it listedEUCLIDEANandPERIODIC),DebugLevels.DEBUG_L3and theINLA_optoptimizer value are declared,GPNEBConfigdeclaresoie_fixed_point_measured_step,oie_fixed_point_reparamandoie_hook_reparam, andGaussianProcessRegression.set_hyperparameterstakesobservations,atoms_config,update_sexpat,update_constandupdate_prior.The bounded optimizer adjusts displacements that round outside a length-scale limit. Trial coordinates remain within their bounds, and the other coordinates retain their full steps.
The climbing marker of the GP band no longer cycles between candidates that measure no higher saddle. An image the adjacent-MEP recovery holds at its measured source lies off the path and is no longer the climbing candidate (19_hnccs: 107 to 92 calls at 4x2 in library mode). A handover between two measured images now requires the candidate’s predicted saddle energy, its measured energy plus the change the surrogate’s quadratic model gives along its climbing step, to exceed the incumbent’s; on a flat ridge both predict the same saddle and the measured incumbent keeps the marker (12_ethane_h2_abstraction: 136 to 107 calls).
The distributed TSQR thin SVD in ScaLAPACK builds composes right singular vectors from the Householder factors instead of
A^T U S^-1. Modes eleven decades below the largest now stay orthonormal to machine precision on one and four ranks; 0.3.0 lost 4e-6 to 8e-6 of orthogonality. The geometry-based training-covariance assembly also records its distributed reduction.The first GP dimer tutorial uses a two-atom system with a barrier. A diatomic has one internal coordinate and its only first-order saddle is a barrier top; the Cu2 example under EMT has none, so the search could not converge. The tutorial now defines a double-well pair calculator, converges to the barrier top, and documents
termination_reason.The hyperparameter objective gradient assembles derivatives from the training geometry the same way at every entry point, so fits with tied length scales are consistent.
The iterative GP solve verifies convergence against an explicit matrix-vector product and restarts when the recursive residual understates the remaining error. Reported residuals now describe the returned solution.
The reported posterior variance now carries the leave-one-out calibration factor on every backend. In 0.3.0 only the HS-SVD path applied it, so the dense Cholesky backend reported variances differing by that factor.
gpr::looVarianceCalibrationFactorcomputes it for both, and the dense backend also reports it on the single-rank ScaLAPACK path.The terminal saddle check reduces its finite-difference step when uncertainty in the measured weak subspace prevents an index decision. It includes uncertainty in cross terms and reuses stored gradients. The search and independent validator use the same rule and retain the full physical space.
The terminal saddle check requires a resolved negative mode and a positive lower bound for its vibrational complement. Directional error bounds retain coupling between candidate negative modes, so error on a stiffer mode cannot mask a resolved second negative direction. An unresolved Cartesian stencil returns failure.
When the positive bound is unresolved, a second comparison uses the weak block’s eigenbasis and the same measured gradients. The transformed error envelope includes every coupling to the resolved complement and an allowance for the rotation’s Gram defect. The larger valid lower bound determines whether the positive restriction is resolved, conditional on the measured finite-difference error estimates.
The training-kernel geometry cache grew with configurations squared times dimensions squared (15 GB at 225 rows of a 22-degree-of-freedom system in 0.3.0) and exhausted memory on large problems. It is now streamed when it would not fit half of the available physical memory: each derivative block is rebuilt from the factored inverse distances and their Jacobians as a consumer reads it.
The transposed Cholesky factor used by the reproducible back substitutions no longer holds a second copy of the factor’s share in flight: tiles move between each pair of ranks in batches of at most 128 MiB, so the workspace is the transpose plus two batches. A solve at n = 93000 on four ranks of a 188 GB node, which paged to swap until it was cancelled, now fits. Before the transpose or the inverse is allocated, it is compared with the rank’s share of the node’s available memory, and a shortfall stops the run with the memory needed and available per rank instead of an OOM kill. Invalidating the cached factor, transpose or inverse returns its storage, so a refactorization no longer holds the previous factor and transpose beside the new covariance.
Unset Cap’n Proto fields in a
--configfile load as thegprncommand-line defaults (TPE acquisition, principled nugget on, length-scale prior on, spring constant 5.0, condition-driven MMF inner iterations). In 0.3.0 they loaded different schema defaults, for exampleimspeacquisition and principled nugget off.Use the same solve-based trace for GP fit curvature at every ScaLAPACK rank count. Switching between inverse contraction and triangular solves changed optimizer steps when the process count changed.
While any image is above the force tolerance, a fully measured band takes one step along its oracle force and then waits to be measured again. One accurate probe does not reopen a long surrogate walk.
--linalg-mode libraryno longer faults when a rank’s share of the covariance exceeds 2^31 - 1 entries, as at n = 100000 on four ranks. LP64 ScaLAPACK forms local offsets in 32-bit integers; the factorization, substitutions and inverses of such an order run on the tile kernels, which index in 64 bits, and the root rank prints one line naming the routine, order and grid. Eigensolvers and SVDs of such an order stop with an error before any work. Redistribution between the root and the grid packs panels by hand, and the transposed factor moves with 64-bit counts.--molecular-rigid-motion trueremoves overall translation and rotation from the tangents, spring lengths, forces and trial steps of a molecular NEB path without reassigning atoms. Fixed atoms and periodic cells retain their physical frame, and the policy is off unless requested, so the publication protocols keep their bands.GPDimer.runnow runs with the dimer settingsgprduses (canonical_dimer_parameters(): separation, rotation and translation methods, tolerances, phase limits), takesfmaxas the force criterion andstepsas the outer-iteration limit, and acceptsmax_oracle_calls. It built its parameters fromdefault_parameters()alone, which leaves the dimer separation and every tolerance at zero, so the images coincided, the curvature was NaN and the outer loop never ended.termination_reasonnames why a run stopped, andAtomicDimer.executeraisesValueErrorfor a non-positivedimer_sep.GPNEB.write_conpreserves atom identities, isotope masses, fixed directions, periodic flags and each image’s cell through the readcon ASE adapter. Export does not call the calculator or label an arbitrary potential as metatomic.default_parameters()carries the dimer settingsgprdruns with (separation, rotation and translation methods, tolerances, phase limits) instead of zeros, as its docstring always claimed, sopreset_parameters()and a hand-builtrun_dimercall define a dimer. The C API’sgpr_dimer_searchreturnsGPR_ERR_INVALID_ARGfor a config whosedimer_sepis not positive (one that skippedgpr_dimer_config_defaults()) instead of running with coincident images.gpr_backend_name()returns"stdpar"on builds configured withlinalg_backend=stdpar; in 0.3.0 it returned"eigen". The C header listsslateandstdparamong the reported names.gprdno longer places/usr/libahead of the pixi OpenMPI inDT_RPATH, solibmpi.so.40resolves to the environment copy withoutLD_PRELOAD.gprn --dump-cli-argsprints the resolved configuration without--reactantand--product; the usage check no longer rejects it.gprn --gp-model-profile chemgpandgprd_zblnow turn off the per-image local-expert GP tier and its neighbourhood-refit maintenance. In 0.3.0 the local tier stayed active under these profiles, so predictions, band gradients and trust envelopes mixed local and global posteriors.gprn --helpanddocs/cli_reference.mdnow state that--nimages Ncounts intermediate images, so--nimages 8builds 10 images including both endpoints. They also state that--kappa-max 0(or <=1) selects the principled default under--principled-nugget;--principled-nugget falseturns the nugget and cap off.gprn --hyperparameter-objectivenamed on the command line now survives--gp-model-profile. In 0.3.0 the classic profiles (gprd_zbl,chemgp) reset the objective to NLML, so--gp-model-profile gprd_zbl --hyperparameter-objective loofitted NLML while reporting LOO. The run log states the effective objective and where it came from.runOCINEBRefinedcarries the coarse attempt’s training set into the refined session instead of starting empty, restoring endpoints and coincident rows rather than re-purchasing them; whole-band “restore best climb” refreshes reuse rows already held at those positions. The returned result folds in every earlier attempt’s call breakdown, outer iterations and refits (OCINEBResult::refinementscounts the doublings), so the oracle-call ledger no longer shows an unexplainedtransition=remainder.
0.3.0 - 2026-07-24¶
Baker-24 reaches 24/24 barriers on reference on both CPU and CUDA under the classic Cartesian joint [E,F] GP-OIE stack.
Added¶
Certificate-driven band refinement (
gpr::neb::runOCINEBRefined, CLI--band-refinements/--band-certificate-force-scale/--first-attempt-wall-seconds,GPNEBConfigfields of the same names). The climbing-image criterion certifies the climbing image alone, so a band kinked at the ridge can settle on a first-order saddle that is not the one on the minimum energy path. After convergence the CI-adjacent perpendicular true force is checked against a measured tier (detail::bandPathCertificateHolds, 1.0 eV/A default); a band that fails it is under-resolved and is searched again at double the image count. The tier is calibrated, not tuned: across 47 converged Baker bands it separates every on-reference saddle (worst CI neighbour <= 0.775 eV/A) from every off-minimum-energy-path one (>= 1.7), with zero mismatches. This closes 03_h2co (was 3.391, the wrong saddle -> 3.145) and 17_claisen (never converged at 8 images -> 0.646 at 16). The Python bindings and thegprnCLI share the library function, so both get it; theproduction_baker_gpneb_config()helper enables the board’s 1-pass, 180 s defaults.
Fixed¶
Off-band rejected proposals are no longer swept by the force-residual thrash-clear: it read the band geometry and could not see that an adjacent-MEP trial requests a different, never-measured position, which livelocked the whole recovery (994 of 1000 outers doing nothing) and made
--climbing-image-converged-only falseunusable.Leave-one-out objective groups by geometry, not derivative channel:
x_indtags the channel (0 = energy, 1..D = gradient component), and the targets are laid out channel-major, so grouping on it held out a whole channel and left the other channels at the held-out geometry in the training set – the same pinning the grouping exists to remove.Lengthscale-derivative sign in
calculateGradOfCovMatrix:dK/dlog(l) = +K * r^2/l^2(the energy block carried the negated value, verified against 60-digit FD evaluation to 8 digits on both hyperparameter dimensions).Observation pruning removed from the dimer: the drop-by-gradient-magnitude policy discarded 596 of ~600 oracle corrections on the Sella doublet cell, locking the training set at 8-10 rows while the true force grew from 6.1 to 13.7 eV/A (refutation livelock). The
InputParametersfields stay parsed for file compatibility; the C API field is accepted and silently ignored.Fixed-EMD trust certificate as the default in both binaries: adaptive trust broke 98 of 101 inner relaxations on the Baker 01_hcn probe (112 oracle calls vs 29 with the calibrated fixed-EMD radius at the same 1 meV barrier accuracy).
Deficit-directed climbing-image oracle priority in GP-NEB: compares scale-free deficits (measured value over threshold) and serves the binding one; the event-driven rule it replaces starved the CI and drove 01_hcn to the 200-outer cap.
Curvature closed-form: uses the Cholesky factor, not the Q-form. Theta-stamped validity on the HS-SVD objective state.
Double y-scale in the HS-SVD predict paths removed.
Python bindings fail fast on stale compiled extensions; attribute access raises
AttributeErrorand an unknown acquisition label raisesValueErrorwith the accepted set, instead of silently dropping configuration.assembleExactHessianclearshssvd_objective_basis_valid_on exit so every fit pays the same objective build and the SVGD per-call wall stays flat.
Added (evaluated during 0.3.0 development)¶
Evaluated and reverted: a symmetric data-anchored lengthscale prior (faithful-band location anchor) cost 48 vs 29 oracle calls on the HCN probe; the one-sided lengthscale floor remains the open design.
Evaluated and reverted: uncertainty-aware oblique projection (–ua-projection) and whitened-fingerprint band relaxation (FingerprintBand, –band-space) – both measured against the fixed-EMD certificate on the Baker probes and rejected; source files removed.
Resolution-limit admission gate for the dimer: the effective EMD deduplication threshold takes the larger of the geometric stencil bound and the information floor
d_min = l_min * sqrt(sigma2/magnSigma2) / 2(model-problem resolution law verified over six decades of noise).IRA endpoint pre-assignment for gprn (
--endpoint-assign, default true): maps the product .con onto the reactant frame (permutation + rotation + translation via libira) before chain interpolation. Mid-run realignment hook (--midrun-realign, default off). The per-pairtype inverse-distance descriptor is invariant under these rigid-motion + same-element-permutation operations.Evaluated and reverted: scale-free adaptive trust radius from chain EMD spacing (threshold multiples anchored to the legacy growth shape, c_min=0.3, c_delta=0.7 of the median adjacent-image EMD) – reverted to the fixed-EMD certificate default.
IRA vendored as a wrap subproject (cmake, built at configure time); with_ira defaults true inside the with_tests block that builds gprn.
readconcell-matrix helper exposed; warning on dropped .con sections.
Changed¶
BLAS defaults to one thread per rank in gprd and gprn: multithreaded OpenBLAS spent ~95% of CPU in spin barriers on small dense operations (113 s -> 8.5 s on a ten-atom Sella dimer cell with one BLAS thread); MPI ranks own the parallelism.
Dual-route HS-SVD stable-basis eigendecomposition on by default in both CLI binaries and as the library member default (
hssvd_dual_lapack_rrr_ = true): operates on the nobs x nobs kernel instead of the full N x N primal (30% of the converged np=1 NEB wall on Baker 01_hcn).Chop tolerance defaults to 1e-6: the fixture kernel carries 99.9% of its energy in rank 40 of 215; trajectories stay bit-identical while the per-fit eigendecomposition costs ~10% less wall.
Relative inner variance halt off by default: it broke 112 of 136 inner relaxations on the hardest Baker cell, which converges at 245 calls without it.
Performance¶
SLATE backend: rank-count-invariant trajectory at 24/28/13 (evals/accurate calls/outer iterations) across np=1..16, endpoint -7.18349 eV, matching the ScaLAPACK record saddle.
d016 record 24/28/13 on the corrected lengthscale gradient: one trajectory across np=1..16, identical on ScaLAPACK and SLATE; the gradient fix removed the acquisition sensitivity that split trajectories by backend rounding and BLACS grid shape.
74/74 test suites pass on both ScaLAPACK and SLATE backends.
HS-SVD kernel block reuse for full-obs subsets: skips redundant dist_at and per-pair derivative builds when a rank owns the entire observation set; bit-identical.
[0.2.0] - 2026-03-17¶
Removed¶
Remove legacy CMakeLists.txt, Makefile, and .gitlab-ci.yml; Meson is now the sole build system
Added¶
Add Coq formal proofs for SE kernel properties (symmetry, non-negativity, value bounds)
Add
gpr::linalgbackend abstraction layer with Eigen, Kokkos, cuSOLVER, and stdpar backends selectable via-Dlinalg_backend=Add optional Google Highway SIMD acceleration for distance kernel hot path (1.4-1.7x speedup with frozen atoms)
Enable nanobind stable ABI (limited_api=3.12) producing version-independent abi3 wheels for Python 3.12+
Expose
GaussianProcessRegressionto Python withdefault_gpr_parameters()for standalone GP training and predictionImplement the earth mover’s distance
Remove overall rotations
Use Capn’Proto for the parameters
Developer¶
Add Google Benchmark micro-benchmarks for dist_at() and SexpatCF covariance construction
Add SymPy symbolic validation tests for GP kernel math and end-to-end nanobind pipeline
Changed¶
Bump minimum Python to 3.12; drop 3.9/3.10/3.11 support
Convert owning raw pointers to std::unique_ptr in GaussianProcessRegression and AtomicDimer
Replace standalone doxyYoda Doxygen site with integrated Sphinx/Shibuya documentation using doxyrest for C++ API reference
Vectorize Eigen operations, pre-compute loop-invariant quantities, reduce heap allocations, and use block copies across the GP hot-path (Distance, Gradient, ADAM, ConstantCF, LikGaussian, GaussianProcessRegression). Benchmarks show 25% faster SCG dimer and 23% faster ADAM dimer vs main.
Era: Laplace Approximation, ScaLAPACK, and EESSI - 2026-04¶
Work preserved under archive/laplace-approximation-pre-rebuild. This era extended the
GP backend with a full Laplace approximation for non-Gaussian likelihoods (R&W Algorithm
3.1, Newton mode finder, marginal log-likelihood eq 3.32), landed the first working
ScaLAPACK distributed-Cholesky path for the evaluateGradient trace-product (unblocking
MPI-distributed dimer runs at np>=1), and shipped an in-tree EESSI overlay for HPC
deployments. Key additions:
Added¶
Full Laplace marginal log-likelihood with opt-in non-Gaussian likelihood interface (
ObservationLikelihood,findFMode,laplaceMarginalLogLik).assembleExactHessianfor MAP-LBFGS optimization with exact Hessian-vector products.gpr::linalg::trace_cholesky_solverequired by the distributed gradient path.Per-grid-point TP/GP hyperparameter configuration.
Optional variance-weighted image acquisition in GP-NEB.
SCG theta-shift skip predicate for reduced optimization overhead.
In-tree EESSI software environment overlay with workflow documentation.
Plotnine SCG curvature visualization.
ScopedHeap / HeapVector arena allocator; mimalloc integration.
TLA+ formal verification scaffolding for the SCG convergence protocol.
Space-filling curve utilities; parallel SexpatCF covariance construction.
Fixed¶
ScaLAPACK
evaluateGradientpath: solve-based alpha and trace-product replace emptyinvCmaterialization that caused an Eigen Product.h:96 dimension-mismatch assertion at np=1 on the hardcoded CuH2 workload.Raw-theta Kff construction under the Laplace path.
Era: GP-NEB and EMD Trust Metric - 2026-03 (pre-0.2.0)¶
Work in archive/dbcsr-precision-matrix-2026-03-26 and the common ancestor with the
Laplace archive. This era reworked the library for GP-NEB and the one-image-evaluated
(OIE) acquisition strategies published in ChemPhysChem (doi:10.1002/cphc.202500730),
introduced the earth mover’s distance as the trust metric (replacing the Koistinen 2017
max_1d_log), added support for the eOn .con file format, and explored distributed
sparse backends. Key additions:
Added¶
GP-NEB orchestration loop: AIE and OIE modes; climbing-image activation; IDPP and collective-variable initialization; spring-constant and convergence configuration.
OIE acquisition strategies: MaxVariance, MaxForce, UCB, Thompson sampling;
perpendicularSigmafor variance orthogonal to the path tangent; triplet evaluation.Earth mover’s distance (EMD) trust metric.
LEPS analytical potential and Python binding.
GP-accelerated minimizer (GPMinimizer), random Fourier features (RFF).
ARD grid search for automatic relevance determination.
Student-T process regression subclass with factorized likelihood and Bayesian model averaging (BMA).
Convergence and saddle-point formal specifications in Lean 4 + Mathlib4.
Fortran interoperability via comprehensive C API; Fortran tutorial documentation.
DBCSR sparse backend benchmarks (29-552x throughput range over dense; architecture archived; superseded by ScaLAPACK/SLATE for the dense GP kernel).
Precision matrix spectral path for TP; catlearn comparison reference benchmarks.
Diataxis-structured documentation framework.