Spack installation¶
Install GPRidge and inspect its C, CMake, Fortran, Python, and CLI interfaces
using Spack. GPRidge provides a local Spack repository under
packaging/spack containing recipes for gpridge and its companion
dependencies (anneal, ira, linkcell, minimage, readcon-core,
readcon-db, rgmin, rgpot, and rgsaddle-headers); none of these packages
are in upstream spack-packages yet.
Prerequisites¶
Spack with Meson build support (
spack@1.0:ordevelop).C, C++, and Fortran compilers (
gcc@13:or equivalent) registered with Spack.Rust 1.88 or newer (
rust@1.88:) andllvm+clang(withlibclang.so) for the default+rgminbuild.Network access on build nodes during configure so Meson fetches the pinned
subprojects/*.wraparchives and Cargo fetches its locked crates (meson_argspasses-Dwrap_mode=default).
Register the repository and install¶
Add packaging/spack from a checkout and install either the pinned release
tag (selected by default by spack install gpridge) or the develop branch:
git clone --branch develop https://github.com/TheochemUI/gpridge.git
cd gpridge
spack repo add packaging/spack
spack spec gpridge
spack install gpridge
To install the bleeding-edge branch with the Python bindings, Cap’n Proto configuration schemas, and Google Highway SIMD kernels:
spack install "gpridge@develop +python +capnp +highway"
Load the installed package into your shell environment and verify the drivers or Python module:
spack load gpridge
gprn --help
gprd --help
python3 -m gpridge.wheel_smoke
Variants and constraints¶
gpridge exposes the Meson configuration through Spack variants. Boolean and
feature variants default to the repository build unless noted.
Variant |
Default |
Effect / dependencies |
|---|---|---|
|
|
|
|
|
Selects |
|
off |
Distributed build; promotes default |
|
on |
HDF5 >= 1.12 ( |
|
on |
Build and install |
|
on |
Compile and install |
|
off |
Nanobind Python module |
|
on |
Rust/HiGHS optimizer ( |
|
on (+rgmin) |
Simulated annealing pre-stage ( |
|
on |
Read |
|
on (+readcon) |
Persist observation archives ( |
|
on (+drivers) |
Iterative Rotations and Assignments ( |
|
off |
Google Highway SIMD kernels ( |
|
off |
OpenMP distance and covariance loops (conflicts with |
|
off |
Bounded parallel-STL kernel blocks ( |
|
off |
Cap’n Proto schemas and plugin support ( |
|
off |
|
|
off |
|
|
off |
|
|
off |
|
|
off |
|
|
off |
|
|
off |
LAMMPS generic engine plugin (requires |
|
off |
Chemfiles trajectory I/O ( |
|
off |
Ceres Solver hyperparameter optimization ( |
|
off |
|
|
off |
|
|
|
Passes |
Selected rules enforced by the recipe:
+mpiwith the defaultlinalg=eigenswitches the Meson backend toscalapack;+mpiconflicts with+openmpand with non-distributed backends other thaneigen,scalapack, andslate.+pythonconflicts withdefault_library=staticand setsPYTHONPATHandGPR_ENGINE_LIBRARYinsetup_run_environment.+umaand+metatomicconflict withblas=openblasin Spack; selectblas=flexiblasorblas=netlib.
spack install "gpridge +mpi"
spack install "gpridge +uma +metatomic blas=flexiblas"
Run stand-alone tests and verify libraries¶
After installation, run Spack’s stand-alone test suite and library resolution checks:
spack test run gpridge
spack test results -l
spack verify libraries gpridge
The recipe implements seven test methods:
test_capi_smoke: compiles and runspackaging/conda/smoke.cviapkg-config gpridge.test_capi_consumer: compilesexamples/capi_neb_muller_brown.cwith strict C99 flags and verifies convergence.test_cmake_consumer: configures, builds, and runspackaging/native/cmakewithfind_package(gpridge CONFIG).test_fortran_consumer: compiles and runsexamples/fortran_neb_muller_brown.f90againstinclude/gpridge.modandlib/libgpridge_fortran.a.test_python_smoke: importsgpridge, callsgpridge.check_abi(), and runspython3 -m gpridge.wheel_smoke(skipped when~python).test_driver_help: verifiesgprd --helpandgprn --help.test_lj_pentamer: runsgprnon a seven-image Lennard-Jones pentamer band and asserts convergence.
Companion recipes and private archive mirror¶
The nine companion packages in packaging/spack/packages record exact commit
pins and patches. Five of them (anneal, readcon-core, readcon-db, rgmin
and ira@2.2.0 for the IRA wrap) match subprojects/*.wrap. Four still lag
the wraps: linkcell, minimage, rgpot and rgsaddle-headers pin older
commits (and rgpot carries more patches) than the Meson subprojects use.
packaging/spack/UPSTREAM_PR.md and each recipe’s docstring list the split. gpridge keeps -Dwrap_mode=default so Meson builds those patched
subprojects directly rather than skipping local wrap patches through an external
pkg-config match.
Verification status¶
Checked on Ubuntu 24.04.5 LTS (linux-ubuntu24.04-icelake) with Spack
1.3.0.dev0 and GCC 13.3.0:
spack audit packagespassed (PKG-DIRECTIVES,PKG-ATTRIBUTES,PKG-PROPERTIES) acrossgpridgeand all nine companion packages.spack installsucceeded for all nine companion packages, the default tagged release spec (gpridge, using a local archive mirror for the private tag tarball), andgpridge@develop +python +capnp +highway.spack verify librariespassed with zero missing shared libraries across all installed specs.spack test runpassed 6 of 7 parts (1 skipped:test_python_smoke) on the tagged release spec and 7 of 7 parts ongpridge@develop +python +capnp +highway.spack specresolved cleanly for the tagged release spec,gpridge@develop +python +capnp +highway,gpridge +mpi,gpridge +uma +metatomic blas=flexiblas,gpridge linalg=stdpar, andgpridge linalg=kokkos(with and without+cuda/+rocm).
See also¶
Installation: comparison across Pixi, Meson, pip, Conda, EasyBuild, EESSI, and Spack.