===============
Install GPRidge
===============
GPRidge is a C++20 library (``libgpridge``) with two command-line drivers, ``gprn`` for nudged-elastic-band searches and ``gprd`` for dimer searches, and a Python module (``gpridge``) distributed as ``gpridge``.
Use the table to pick an installation route and check what it provides.
Choose a route
--------------
.. table::
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| Route | What it builds | Platform | Status |
+==================================================+==========================================================================+=============================================================================================+============================================================================================================================+
| Pixi environment and Meson | ``gprn``, ``gprd``, ``libgpridge``, optional Python module | Linux x86-64 only (the manifest declares one platform: ``linux-64``, glibc 2.28) | CI builds the documentation examples this way (``docbuilder.yml``) |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| Meson with your own toolchain | the same | CI builds the drivers on Linux x86-64 (``c-cpp.yml``) and nowhere else | CI: ``c-cpp.yml`` |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| pip from a Git checkout | Python module ``gpridge``, no drivers | Linux | Configured in ``pyproject.toml`` and built by the Python bindings job |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| pip from the release source distribution | Python module ``gpridge``, no drivers | Linux and macOS | The Linux source install and all wheel builds use this archive |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| Prebuilt wheel | Python module ``gpridge``, no drivers | CPython 3.11 to 3.13 on Linux x86-64 and aarch64 (manylinux\_2\_28), macOS arm64 and x86-64 | Built by the wheel workflow for stable releases; see `PyPI `_ for available versions |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| Conda recipe | ``libgpridge``, pkg-config and CMake packages, Python module, no drivers | Linux (the variants file sets a glibc 2.28 sysroot) | Local ``rattler-build`` recipe, built without upload by ``native-registries.yml``; conda-forge returns 404 |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| :doc:`EasyBuild generator <../howto/easybuild>` | an easyconfig for one tagged source archive | HPC systems with EasyBuild | Generator in ``easybuild/``; no CI job; no ``GPRidge`` easyconfig in ``easybuild-easyconfigs`` (probed) |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| :doc:`EESSI overlay <../howto/eessi_overlay>` | the library and drivers against the EESSI software stack | Linux x86-64 with ``/cvmfs/software.eessi.io`` (the overlay manifest declares ``linux-64``) | In the tree; no CI job |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
| :doc:`Spack recipe <../howto/spack>` | the library, Fortran module, drivers, and optional Python module | Linux | Recipe in ``packaging/spack`` (latest tag + ``develop``); no CI job; no ``gpridge`` package in ``spack-packages`` (probed) |
+--------------------------------------------------+--------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------+
Other registries return 404 for the project as well: conda-forge, CRAN (``gpridge``), crates.io (``gpridge-sys``), and the Julia General registry and Yggdrasil (no ``GPRidge`` directory).
The R, Julia, Fortran and Rust packages in this repository are built from checkout directories against an installed library; :doc:`Native packages and downstream bindings <../howto/native_packages>` shows how.
For publication-aligned runs, use :doc:`the reproducing guide <../howto/reproducing>` and the preprint, `arXiv:2611.20591 `_.
Prerequisites
-------------
Every Meson route needs the rows marked "every build".
An option in the last column removes the requirement it names, at the cost stated in the second table.
.. table::
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Requirement | Needed for | Source and how to avoid it |
+================================================================================+==================================================================+======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+
| C++20 compiler | every build | ``cpp_std=c++20`` in ``meson.build``. No minimum compiler version is declared. The pixi ``python`` and ``scalapack`` environments ask for GCC 14 or newer. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Meson 1.8 or newer, Ninja | every build | ``meson_version: '>=1.8.0'`` in ``meson.build``. ``pyproject.toml`` requires ``meson>=1.8``. ``pixi.toml`` asks for Meson 1.10.1 or newer. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Rust 1.88 or newer, with ``cargo`` in the toolchain | every build | ``linkcell`` and ``minimage`` call ``find_program('cargo')`` unconditionally. Every Cargo call runs ``bin/cargo`` and ``bin/rustc`` under ``rustc --print sysroot`` of the ``rustc`` Meson found (``[binaries] rust``, ``RUSTC`` or ``PATH``); a ``cargo`` or ``rustc`` elsewhere on ``PATH`` is not used, and a crate's ``rust-toolchain.toml`` does not switch compilers. rgmin, readcon-core and readcon-db declare ``rust-version = "1.88"``, and the CI jobs install Rust 1.88.0. No option removes it. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ``git`` and network access | every build from a checkout | Meson clones the ``subprojects/*.wrap`` sources at pinned revisions and Cargo downloads crates from crates.io, while configuring and building. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| LAPACK | every build | With the default ``use_openblas=false``: FlexiBLAS or reference LAPACK, which supplies ``dsyevr_`` and ``dsbevd_``, or configure stops. With ``-Duse_openblas=true``: OpenBLAS found by Meson's ``dependency('openblas')``. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| libclang | every build | bindgen runs in rgmin's ``highs`` cargo feature (default ``rgmin_features=capi,highs``). rgmin is required. Set ``LIBCLANG_PATH`` to the directory holding ``libclang.so``. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| cbindgen 0.29 or newer | default ``use_anneal=enabled`` | ``subprojects/anneal/meson.build`` requires ``>=0.29.0``. ``scripts/install_cbindgen_pixi.sh`` installs 0.29.4. ``-Duse_anneal=disabled`` removes it. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| HDF5 1.12 or newer (C library and headers) | default ``use_hdf5=true`` | ``version: '>=1.12'`` on the ``hdf5`` dependency in ``meson.build``. ``managers/io/H5Dump.cpp`` calls ``H5Fis_accessible``, which first appeared in HDF5 1.12.0 (declared in its ```H5Fpublic.h`` `_), released on 2020-02-28 (`release notes `_); the 1.10 series, for example the ``libhdf5-dev`` 1.10.10 of Ubuntu 24.04, does not declare it. A library taken from ``$CONDA_PREFIX/lib`` is not version-checked. ``-Duse_hdf5=false`` removes it. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Fortran compiler (gfortran) | the drivers (default ``with_drivers=auto`` on a top-level build) | IRA, which the drivers need, is a Fortran library. rgpot builds its Fortran potentials whenever it finds a Fortran compiler (its ``with_fortran_pots`` option is ``auto``), and a comment in ``pixi.toml`` states that ``gprd`` does not link without them (CuH2). ``-Dwith_drivers=disabled`` makes the compiler optional. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Eigen | every build | Found through its CMake package (``Eigen3::Eigen``) when installed, otherwise built from the ``subprojects/eigen`` wrap. No system install is required. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| CMake | optional | Meson uses it to look up dependencies that ship CMake packages and to build the vendored IRA subproject. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Python 3.11 or newer, NumPy, nanobind 2.0 or newer, meson-python 0.17 or newer | the Python module | ``requires-python`` and ``[build-system] requires`` in ``pyproject.toml``. NumPy has no declared floor. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| MPI and ScaLAPACK, or SLATE | ``-Dlinalg_backend=scalapack`` or ``slate`` | The other backends and the libraries they need are in :doc:`Build options <../reference/build_options>` . |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| pixi 0.81 or newer | the pixi routes | ``requires-pixi`` in ``pixi.toml``. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| uv | contributors | The ``dev`` dependency group and ``[tool.uv]`` in ``pyproject.toml`` (build isolation off for ``gpridge``) serve ``uv sync``; ``uvx prek`` runs the pre-commit hooks; the wheel jobs install with ``uv pip``. No route on this page requires it. |
+--------------------------------------------------------------------------------+------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
The Python test extra and the pixi Python environment select the ``readcon-chemfiles`` distribution.
It provides the ``readcon`` import, including the CON API and the Chemfiles reader for XYZ and other formats.
Use this distribution when those readers are required.
Options that remove a requirement, and what they cost:
.. table::
+-----------------------------+-------------------------------------------+-------------------------------------------------------------------+
| Option | Removes | Cost |
+=============================+===========================================+===================================================================+
| ``-Dwith_drivers=disabled`` | Fortran compiler, IRA, ``gprn``, ``gprd`` | Library and Python module only. ``-Dwith_tests=true`` rejects it. |
+-----------------------------+-------------------------------------------+-------------------------------------------------------------------+
| ``-Duse_hdf5=false`` | HDF5 | No HDF5 logs. |
+-----------------------------+-------------------------------------------+-------------------------------------------------------------------+
| ``-Duse_anneal=disabled`` | cbindgen | No anneal stage before the local GP fit. |
+-----------------------------+-------------------------------------------+-------------------------------------------------------------------+
Meson feature options take ``enabled``, ``disabled`` or ``auto``; boolean options take ``true`` or ``false``.
``meson_options.txt`` gives the type of each option, and :doc:`Build options <../reference/build_options>` lists them all.
If ``pixi`` is not on your command path, install it first with the
`Pixi installation instructions `_
and open a new shell.
The commands below assume that ``pixi --version`` works.
Platform notes:
- The default ``simd_baseline=auto`` is ``x86-64-v3`` (AVX2 and FMA, Haswell and Zen 1 and later, per the option text) on x86-64 and the compiler default on other CPU families.
On an older x86-64 CPU pass ``-Dsimd_baseline=x86-64-v2`` or an empty value (``-Dsimd_baseline=``) to keep the compiler default.
A level the compiler rejects stops ``meson setup`` with an error.
The level changes speed only: every level gives the same results while Eigen stays unvectorized, which is the default (``scalar_eigen=true``).
``-Dscalar_eigen=false`` opts into vectorized Eigen and can change results.
- The pixi manifest solves for Linux x86-64 only.
There is no pixi route on macOS or aarch64.
- CI builds macOS wheels.
It builds no drivers and no pixi environment on macOS.
- Windows is not built.
The Rust subprojects name Unix shared libraries.
Build with pixi and Meson
-------------------------
Use this route on Linux x86-64 when you want the drivers.
The default pixi environment (``pixi shell``) has Meson, Ninja, CMake, Eigen, HDF5, OpenBLAS, Highway, Cap'n Proto and chemfiles, but no compiler, no Rust and no libclang.
The ``python`` environment adds GCC, G++ and gfortran 14 or newer, nanobind, meson-python and pip.
Rust 1.88 or newer and libclang must come from the host in that environment.
A host without them can use the ``scalapack`` environment instead.
It carries Rust, libclang 20 or 21, Ninja and the same compilers, sets ``LIBCLANG_PATH`` and the bindgen sysroot arguments on activation (``scripts/activate_bindgen.sh``), and also installs OpenMPI, ScaLAPACK and PyTorch from the CPU wheel index (a large download).
.. code:: bash
git clone --branch develop https://github.com/TheochemUI/gpridge.git
cd gpridge
pixi run -e python install-cbindgen
pixi run -e python meson setup builddir
pixi run -e python meson compile -C builddir gprn gprd
``install-cbindgen`` runs ``scripts/install_cbindgen_pixi.sh``, which puts cbindgen 0.29.4 into the environment (copied from the host if the version matches, otherwise ``cargo install --locked --root $CONDA_PREFIX``, which needs Rust).
The task exists in the ``python`` and ``scalapack`` environments only.
The build writes ``builddir/gprn``, ``builddir/gprd`` and ``builddir/libgpridge.so``.
The drivers read ``.con`` structure files through readcon-core, which ``-Duse_readcon`` (default ``true``) enables, so the commands above need no extra flag for them.
To add the Python module in the same environment:
.. code:: bash
pixi run -e python build
The task depends on ``install-cbindgen`` and runs ``pip install --no-build-isolation -e .``.
The editable install builds in ``build/cp``, where ```` is the Python tag of the environment, and rebuilds when the module is imported after a source change.
Run Python with ``pixi run -e python python script.py`` or ``pixi shell -e python``.
Checked: this tree was configured and compiled in the ``python`` environment with a host Rust and libclang, and ``install-cbindgen`` ran here and exited 0.
The documentation job of ``.github/workflows/docbuilder.yml`` builds the examples with the same environment on ``ubuntu-latest``.
Build with Meson and your own toolchain
---------------------------------------
Use this route when the prerequisites above come from your system or from a module environment.
Install cbindgen if it is missing:
.. code:: bash
git clone --branch develop https://github.com/TheochemUI/gpridge.git
cd gpridge
cargo install --locked --version 0.29.4 cbindgen
meson setup builddir
meson compile -C builddir
``cargo install`` puts ``cbindgen`` in ``$CARGO_HOME/bin`` (``~/.cargo/bin`` by default); add that directory to ``PATH``.
The build type is ``release`` by default (``meson.build``).
To build and run the test suite, configure with ``-Dwith_tests=true`` and run ``meson test -C builddir``.
Checked: ``.github/workflows/c-cpp.yml`` runs ``meson setup builddir -Dwith_tests=True -Duse_anneal=enabled -Duse_hdf5=True`` and ``meson compile -C builddir`` on ``ubuntu-latest``, after ``scripts/install_cbindgen_pixi.sh`` has installed cbindgen.
Install into a prefix
~~~~~~~~~~~~~~~~~~~~~
The R, Julia, Fortran and C consumers need an installed library with its pkg-config file and CMake package.
Install into a prefix of your choice:
.. code:: bash
meson setup builddir --prefix="$HOME/.local"
meson compile -C builddir
meson install -C builddir
The install writes ``bin/gprn``, ``bin/gprd``, ``include/gpr/capi/gpridge_c.h``, ``libgpridge.so``, the engine libraries (``libgpr_engine.so``, ``libgpr_canonical_tiles.so`` and others), ``libira.so``, ``librgpot``, ``pkgconfig/gpridge.pc`` and ``cmake/gpridge/gpridgeConfig.cmake`` under the library directory.
That directory is Meson's ``libdir``: ``lib/x86_64-linux-gnu`` on Debian and Ubuntu, ``lib`` or ``lib64`` elsewhere.
Add ``--libdir=lib`` to ``meson setup`` for the plain layout.
Checked: ``meson install --destdir`` of a finished tree on an Ubuntu host wrote the files above under ``lib/x86_64-linux-gnu``.
The pkg-config and CMake consumer checks of :doc:`Native packages and downstream bindings <../howto/native_packages>` ran against that tree.
Install the Python module with pip
----------------------------------
.. code:: bash
python -m pip install .
Run it in a Linux checkout, in an environment that has the prerequisites above: a C++ compiler, Rust 1.88 or newer, libclang, cbindgen on ``PATH``, OpenBLAS development files, and network access.
The Meson arguments are in ``[tool.meson-python.args]`` of ``pyproject.toml``.
They build static libraries, turn the drivers, HDF5, Cap'n Proto and chemfiles off, turn OpenBLAS and OpenMP on, and force every dependency to build from its wrap.
The result has the Python module and no ``gprn`` or ``gprd``.
Build isolation downloads ``meson-python``, ``meson`` and ``nanobind`` from the package index.
A pip build from a checkout uses the default ``simd_baseline``, which is ``x86-64-v3`` on x86-64.
The wheel jobs pass ``-Dsimd_baseline=`` (empty) through ``[tool.cibuildwheel.config-settings]`` to keep the compiler default.
On macOS, install a prebuilt wheel or build from the release source distribution.
The source distribution contains the portability changes for the packaged rgpot dependency.
CI builds the source distribution with ``python scripts/vendor_sdist_deps.py`` followed by ``python -m build --sdist``.
The script downloads the wraps and the crates that the wheel configuration resolves, so that the sdist installs without access to crates.io.
The ``install_sdist`` job installs it on an Ubuntu runner after ``apt-get install build-essential gfortran cmake ninja-build pkg-config libopenblas-dev liblapacke-dev libclang-dev``.
Checked: not run for this page, because it is a full source build.
The ``install_sdist`` job of ``.github/workflows/wheels.yml`` installs an sdist and runs the smoke test, and the pixi ``build`` task above uses the same configuration as an editable install.
Prebuilt wheels
~~~~~~~~~~~~~~~
``.github/workflows/wheels.yml`` builds wheels with cibuildwheel for CPython 3.11, 3.12 and 3.13 on manylinux\_2\_28 (x86-64 and aarch64) and macOS (arm64 and x86-64).
Windows wheels are not built.
The ``publish`` job uploads to PyPI only when the repository is public and the ref is a stable ``v*`` tag (no hyphen).
The macOS wheels target macOS 14.0 or newer (``MACOSX_DEPLOYMENT_TARGET`` in ``pyproject.toml``) and the Linux wheels glibc 2.28 or newer (manylinux\_2\_28).
Check `PyPI `_ for available releases.
Install with ``python -m pip install 'gpridge>=1.0.0'`` to exclude the ``0.0.0`` name reservation, then import ``gpridge``.
Conda recipe
------------
``packaging/conda/recipe.yaml`` is a ``rattler-build`` recipe with a local source path.
It builds the library, its pkg-config and CMake packages and the Python module with the drivers, HDF5, Cap'n Proto, rgmin, anneal, Highway and readcon turned off (``packaging/conda/build.sh``).
It is for local builds; the file header says it is never uploaded.
.. code:: bash
rattler-build build --recipe packaging/conda --channel conda-forge \
--output-dir build/rattler-output
Checked: ``.github/workflows/native-registries.yml`` runs this command with ``--output-dir`` in the runner's temporary directory, and uploads nothing.
``rattler-build`` was not run for this page.
Spack
-----
The recipe repository is in ``packaging/spack`` and is not in upstream ``spack-packages`` yet.
Register it and install either the pinned release tag (the default spec) or ``develop``:
.. code:: bash
git clone --branch develop https://github.com/TheochemUI/gpridge.git
cd gpridge
spack repo add packaging/spack
spack spec gpridge
spack install gpridge
See :doc:`Spack installation <../howto/spack>` for the full variant matrix (including ``+python``, ``+mpi``, ``+uma``, ``+metatomic``, and ``+highway``), the nine companion recipes under ``packaging/spack/packages``, and the verified ``spack test run`` and ``spack audit packages`` checks.
.. code:: bash
spack install --test=root "gpridge@develop +python +capnp +highway"
spack test run gpridge
``spack test run gpridge`` runs the seven stand-alone tests: C API pkg-config smoke and C99 consumer, CMake ``find_package(gpridge)`` consumer, Fortran 2018 module consumer, Python ``gpridge.wheel_smoke``, ``gprd=/=gprn --help``, and a seven-image Lennard-Jones pentamer band.
Checked: on Ubuntu 24.04.5 LTS with Spack ``1.3.0.dev0`` and GCC 13.3.0 across the default tagged release spec (6 passed, 1 skipped), ``gpridge@develop +python +capnp +highway`` (7 passed), and all nine companion packages.
Check the install
-----------------
Run these three checks after any route that builds the Python module or the drivers.
The first runs a short dimer search on the Muller-Brown surface and needs no input files.
It imports ``gpridge``, so run it in the environment where the module was installed (``pixi run -e python`` for the pixi route).
.. code:: bash
python -m gpridge.wheel_smoke
The command checks imports, positive oracle calls and finite numerical results from a short native dimer run.
Its summary reports the stop reason; a force stop can remain uncertified.
```` is the installed package version.
::
gpridge : Muller-Brown GP-dimer calls= energy=-72.2489 stop=
The drivers print their flag listings when the build works:
.. code:: bash
gprn --help
.. code:: bash
gprd --help
``gprn --help`` starts with the heading and usage line below.
The heading carries ANSI color codes, and the usage line shows the name the program was started under.
``gprd --help`` lists every option on one usage line, followed by one entry per option.
::
gprn -- GP-accelerated NEB chain driver
Usage: gprn --reactant --product [options]
Add the build directory to ``PATH`` or call ``builddir/gprn`` when the drivers are not installed.
The :doc:`quickstart ` runs a complete band search next.
CMake package
-------------
``meson install`` writes a CMake package (``gpridgeConfig.cmake``), which is checked in CI: ``packaging/native/cmake`` builds a consumer against it.
Use ``find_package(gpridge CONFIG)`` as shown in :doc:`Native packages and downstream bindings <../howto/native_packages>`.
Troubleshooting
---------------
"Reproduced" means the message was produced here by the command named.
"Read" means the message or cause comes from the file named, and the failure was not provoked.
.. table::
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| Message or symptom | Cause | Fix | Status |
+=====================================================================================================================================================================================================================+==================================================================================================================================================================================================================+===========================================================================================================================================================================+============================================================================================================+
| ``ERROR: Program 'cargo' not found or not executable`` (first raised in ``subprojects/minimage/meson.build:17``) | Rust is not on ``PATH``. The pixi default and ``python`` environments do not provide it. | Install Rust 1.88 or newer and put ``cargo`` on ``PATH``, or use the ``scalapack`` pixi environment. | Reproduced with ``meson setup`` and a ``PATH`` without cargo |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``ERROR: Program '/bin/cargo' not found or not executable`` (raised in ``meson.build``) | The ``rustc`` Meson found has no ``cargo`` (or ``rustc``) in its sysroot, for example a distribution ``rustc`` without its ``cargo`` package. | Install the matching ``cargo`` into that toolchain, or point ``[binaries] rust`` at a toolchain that has one. | Reproduced with a ``rustc`` whose sysroot has no ``bin/cargo`` |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``Value "true" (of type "string") for option "use_highway" is not one of the choices`` | A feature option was given ``true`` or ``false``. | Use ``enabled``, ``disabled`` or ``auto``, for example ``-Duse_highway=enabled``. | Reproduced with ``meson setup -Duse_highway=true`` |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``subprojects/anneal/meson.build:31:16: ERROR: Program 'cbindgen' not found or not executable``, preceded by ``Program cbindgen found: NO found 0.28.0 but need: '>=0.29.0'`` when an older cbindgen is on ``PATH`` | anneal requires cbindgen 0.29.0 or newer (``find_program('cbindgen', version: '>=0.29.0')``). | ``pixi run -e python install-cbindgen``, or ``cargo install --locked --version 0.29.4 cbindgen``, or ``-Duse_anneal=disabled``. | Reproduced with a stub ``cbindgen`` that prints 0.28.0, first on ``PATH`` |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``couldn't find any valid shared libraries matching: ['libclang.so', ...]`` from the Cargo build of rgmin | bindgen in rgmin's ``highs`` feature cannot load libclang. | Install libclang development files and export ``LIBCLANG_PATH`` (the message names this variable). rgmin is required, so the build does not continue without it. | Read (the ``clang-sys`` build script); not provoked |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``use_openblas=false needs FlexiBLAS or reference LAPACK for dsyevr_ and dsbevd_.`` | The default configuration finds no LAPACK library. | Install FlexiBLAS or a reference LAPACK development package, or configure with ``-Duse_openblas=true``. | Read (``meson.build``) |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| Configure stops at the ``hdf5`` dependency | HDF5 development files are missing and ``use_hdf5`` is on. | Install HDF5, point ``CONDA_PREFIX`` at an environment that has it, or pass ``-Duse_hdf5=false``. | Read (``meson.build``) |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``ERROR: Dependency lookup for hdf5 with method 'pkg-config' failed: Invalid version, need 'hdf5' ['>=1.12'] found '1.10.10'.`` | The HDF5 found is older than 1.12, which lacks ``H5Fis_accessible``. | Install HDF5 1.12 or newer, point ``CONDA_PREFIX`` at an environment that has it, or pass ``-Duse_hdf5=false``. | Reproduced with ``meson setup -Duse_hdf5=true`` against the ``libhdf5-dev`` 1.10.10 of Ubuntu 24.04 |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``meson.build:1736:4: ERROR: Problem encountered: with_tests=true runs gprd and gprn; drop -Dwith_drivers=disabled`` | The test suite needs the drivers and ``with_drivers=disabled`` was given. | Drop ``-Dwith_drivers=disabled`` or ``-Dwith_tests=true``. | Reproduced with ``meson setup -Dwith_tests=true -Dwith_drivers=disabled`` |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``Could not find a package configuration file provided by "gpridge"`` from ``find_package(gpridge CONFIG)`` | The install put the CMake package under ``lib/x86_64-linux-gnu/cmake/gpridge``. CMake searches ``lib/`` only when its toolchain reports a library architecture, and the pixi (conda) compiler does not. | Pass ``-Dgpridge_DIR=/lib/x86_64-linux-gnu/cmake/gpridge``, or install with ``--libdir=lib``. | Reproduced with the ``python`` environment's CMake and compiler against a ``meson install --destdir`` tree |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| Illegal instruction at start-up on an older x86-64 CPU | The default ``-march=x86-64-v3`` needs AVX2 and FMA. | Configure with ``-Dsimd_baseline=x86-64-v2`` or an empty value. | Read (``meson_options.txt``) |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
| ``pixi run -e python python -c "import gpridge"`` takes minutes after a source change | The editable install rebuilds the module on import. | Wait for the rebuild, or set ``MESONPY_EDITABLE_SKIP`` to the build directory to skip it for one process (the import then fails unless the package is on ``PYTHONPATH``). | Read (the meson-python editable loader) |
+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+
Related pages
-------------
- :doc:`Quickstart `: a first band search with ``gprn`` and the built-in ``lj`` potential.
- :doc:`Build options <../reference/build_options>`: every Meson option with its type and default.
- :doc:`Native packages and downstream bindings <../howto/native_packages>`: use the installed library from C, C++, Fortran, Rust, R and Julia.
- :doc:`Native library ABI checks <../reference/native_library_abi>`: what the build and the start-up report verify.
- :doc:`Use an rgpot engine plugin <../howto/engine_plugins>`: UMA, CPMD, CP2K and LAMMPS libraries at run time.
- :doc:`Run on an HPC cluster <../howto/hpc>`, :doc:`EasyBuild <../howto/easybuild>` and :doc:`EESSI overlay <../howto/eessi_overlay>`.