============================= Native EasyBuild installation ============================= GPRidge has no easyconfig in the upstream EasyBuild repositories. The repository carries a generator instead: ``easybuild/generate_easyconfig.py`` checks a source archive against a release tag of your clone and writes an easyconfig for that tag. This page shows how to generate the recipe, how to build it with EasyBuild inside a compute allocation, and what the recipe runs. The native CUDA installation record reports a successful build and 384 native test results for ``v0.7.0-rc.13``. What you need ------------- - A clone of the repository that holds the release tag, and Python 3.11 or newer. The generator uses ``hashlib.file_digest``, which is new in 3.11. The tag must be named ``vMAJOR.MINOR.PATCH`` or ``vMAJOR.MINOR.PATCH-rc.N``; any other tag name is rejected. - EasyBuild with the modules that ``easybuild/GPRidge.eb.in`` names: the ``foss`` toolchain and its versions of Meson, Ninja, CMake, Rust, LLVM, pkgconf, googlebenchmark, Eigen and HDF5. Read the file for the versions; they are not repeated here. If your site has other versions, edit the generated recipe. An edited recipe no longer matches the ``recipe_sha256`` in the provenance record. - Network access during the build: Meson downloads the wrap sources that the tag pins, and Cargo downloads its locked crates and builds ``cbindgen`` (``cargo install --locked --version 0.29.4``, set in the template). Run the build where your site permits these requests. Generate the recipe ------------------- The generator needs an archive of the tag with one top-level directory. Every tracked file must be present, with the content and the executable bit that the tag records. The generator rejects an archive that omits a file, adds an untracked one, or differs in any file. ``git archive`` meets this and needs no network: .. code:: bash gpr_tag=$(git describe --tags --abbrev=0) gpr_sources="$PWD/build/easybuild-sources" gpr_archive="$gpr_sources/gpridge-$gpr_tag.tar.gz" gpr_recipe="$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1.eb" mkdir -p "$gpr_sources" git archive --format=tar.gz --prefix="gpridge-$gpr_tag/" \ -o "$gpr_archive" "$gpr_tag" python3 easybuild/generate_easyconfig.py \ --tag "$gpr_tag" --archive "$gpr_archive" --output "$gpr_recipe" ``git describe`` picks the nearest tag reachable from the checked-out revision. Set ``gpr_tag`` to the tag you want when you need a particular release. The generator prints one JSON object, for example: :: { "tag": "v0.7.0-rc.6", "tag_object": "484a99846f5854f68697549523bac3a783f625b7", "source_commit": "af010110c6ff0497bf77a15ed4de27b4a7337fff", "project_version": "", "source_files": 3037, "archive": "gpridge-v0.7.0-rc.6.tar.gz", "archive_sha256": "4efce374c5c947e4206b5bf45e6c6812fd8509a2ebb54a2d61e6f682bdb91274", "backend": "eigen", "recipe_sha256": "8a84c86b5df7f599e29bcb7513237d099aa2bf4425e05f7442d90c57e80c02fc" } That output came from running the block above on the ``v0.7.0-rc.6`` tag. The same JSON is written next to the recipe as ``\*.provenance.json``. Keep that file with the recipe: it ties the recipe to the tag object, the source commit and the archive checksum. A second run with the same inputs is accepted. A second run that would write different content to an existing output stops with ``output differs; choose another path``. The tarball that GitHub serves for the tag passes the same check: .. code:: bash gh api "repos/TheochemUI/gpridge/tarball/$gpr_tag" > "$gpr_archive" The recipe names the archive by its file name and its SHA-256 sum, so the file that EasyBuild finds in ``--sourcepath`` must be the archive that you passed to the generator. The ScaLAPACK recipe ~~~~~~~~~~~~~~~~~~~~ ``--backend scalapack`` selects the distributed linear algebra backend and turns on MPI in the recipe. It sets the version suffix to ``-scalapack``, so end the recipe file name with ``-scalapack.eb``: .. code:: bash python3 easybuild/generate_easyconfig.py --tag "$gpr_tag" \ --archive "$gpr_archive" --backend scalapack \ --output "$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1-scalapack.eb" The default value of ``--backend`` is ``eigen``. The other values are ``scalapack``, ``cusolver`` and ``kokkos``. GPU linear algebra ~~~~~~~~~~~~~~~~~~ Generate a cuSOLVER recipe from the same verified tag and archive: .. code:: bash python3 easybuild/generate_easyconfig.py --tag "$gpr_tag" \ --archive "$gpr_archive" --backend cusolver \ --output "$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1-CUDA-12.9.1.eb" The recipe adds the ``CUDA/12.9.1`` runtime module to ``foss/2026.1``. ``--cuda 12.8.0`` selects the other supported runtime; use that version in the recipe filename too. The provenance record includes the selected CUDA version. ``--cuda`` is accepted with ``--backend cusolver`` and, for the device build described below, with ``--backend kokkos``. This backend loads cuSOLVER, cuBLAS and the CUDA runtime through ``gpulite`` and the dynamic loader. It builds C++ code with the native compiler and does not compile CUDA kernels, so it needs no nvcc host compiler override. The optional CUTLASS and Scheme II kernel builds have separate toolkit and compiler requirements and are not enabled by this recipe. Build and test the GPU recipe inside a GPU allocation. Its test step keeps the full Meson suite and needs a visible device with a driver that supports the chosen CUDA runtime. The recipe sets ``CUDA_CACHE_PATH`` inside the build directory, alongside the Cargo cache. With ``eb-local`` those files live on node-local scratch and are removed with the build tree; the installed module and compact records stay in the project prefix. If EasyBuild needs to install CUDA, it requires acceptance of the `CUDA license `_. Review the terms and pass ``--accept-eula-for=CUDA`` to that ``eb-local`` invocation when you accept them. The generated recipe does not accept licenses or change global EasyBuild settings. The Kokkos recipes ~~~~~~~~~~~~~~~~~~ ``--backend kokkos`` builds the portable backend against ``Kokkos`` and ``Kokkos-Kernels`` 5.1.1 of the ``foss/2026.1`` generation. The easyconfigs of that generation install static archives compiled without ``-fPIC``, which ``libgpridge.so`` cannot link. ``easybuild/kokkos_pic.py`` derives a position-independent variant of each, with the version suffix ``-pic``, and the GPRidge recipe depends on those variants. Write them beside the GPRidge recipe and name that directory in ``--robot``: .. code:: bash python3 easybuild/kokkos_pic.py --output-dir "$gpr_sources" \ "$easyconfigs/k/Kokkos/Kokkos-5.1.1-GCC-15.2.0.eb" \ "$easyconfigs/k/Kokkos-Kernels/Kokkos-Kernels-5.1.1-foss-2026.1.eb" Use the ``-CUDA-13.3.0`` easyconfigs of both packages for a device build. Without ``--cuda`` the GPRidge recipe uses the host installation and takes the version suffix ``-kokkos``: .. code:: bash python3 easybuild/generate_easyconfig.py --tag "$gpr_tag" \ --archive "$gpr_archive" --backend kokkos \ --output "$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1-kokkos.eb" ``--cuda 13.3.0`` selects the device installation of both modules and adds the ``CUDA/13.3.0`` toolkit. The suffix becomes ``-kokkos-CUDA-13.3.0``: .. code:: bash python3 easybuild/generate_easyconfig.py --tag "$gpr_tag" \ --archive "$gpr_archive" --backend kokkos --cuda 13.3.0 \ --output "$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1-kokkos-CUDA-13.3.0.eb" Derive the device easyconfig of Kokkos with the architecture of the GPU, ``--cuda-arch AMPERE80`` for an A100 or ``--cuda-arch HOPPER90`` for an H100. The Kokkos easyblock enables its CUDA backend only when CUDA is a runtime dependency. EESSI's hooks demote CUDA to a build dependency, so the stock ``-CUDA-13.3.0`` easyconfig installs an OpenMP library there under the CUDA module name. The derived variant passes the backend to CMake itself. The GPRidge recipe reads the device list of the Kokkos module before it configures and stops when CUDA is absent. Unlike the cuSOLVER recipe, this one compiles device code. Its configure step writes a Meson native file naming ``nvcc`` with the toolchain's C++ compiler as host compiler, and passes it to ``meson setup``. The Kokkos module must export exactly one CUDA architecture. Build and test it inside a GPU allocation on the node type that will run it. The :doc:`Kokkos guide ` describes the backend and its checks. The ScaLAPACK recipe and the Kokkos device recipe set ``check_readelf_rpath = False``. OpenMPI's compiler wrapper, and the link line that lets a GPU node's driver take precedence over the toolkit stubs, both request ``--enable-new-dtags``. Their binaries then carry ``RUNPATH`` with the directories EasyBuild adds, where its sanity check expects ``RPATH``. Verified native installation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``v0.7.0-rc.13`` cuSOLVER recipe builds and installs on a GPU cluster with ``foss/2026.1``, ``CUDA/12.9.1`` and ``eb-local/2.4.0`` on EESSI 2026.06. Slurm job ``29398530`` requests one A100, eight host CPUs and 64 GiB. All 384 native test programs pass, including factorization and solve timing checks. The job exits with status zero and records zero files remaining in its node-local workspace. The linked record identifies the exact source tag, archive, recipe, device and batch script, with individual test statuses and durations. Use that record to compare a site's toolchain and runtime with the validated configuration; retain the same provenance for each installation. Install within an allocation ---------------------------- Copy the directory that holds the archive to shared storage, then start a shell on a compute node. :doc:`Run on an HPC cluster ` covers the ``eb-local`` storage rules, the inode check and the choice of CPU target. ``eb-local`` needs an installation prefix that you own and sets up its own scratch workspace on the node: .. code:: bash gpr_recipe=/path/to/the/generated/easyconfig.eb gpr_sources=/path/to/transferred/sources eb-local --project /path/to/project/software \ "$gpr_recipe" --robot --rpath --sourcepath="$gpr_sources" Without ``eb-local``, the same recipe builds with a plain EasyBuild command, after you have set the installation prefix in your EasyBuild configuration: .. code:: bash eb "$gpr_recipe" --robot --sourcepath="$gpr_sources" What the recipe does ~~~~~~~~~~~~~~~~~~~~ The recipe is an ``easyblock = 'MesonNinja'`` build, so it uses a generic EasyBuild easyblock. Read from ``easybuild/GPRidge.eb.in``: - It configures with ``-Dwith_tests=true``, ``-Dwith_drivers=enabled``, ``-Ddo_install=true`` and ``-Duse_openblas=false``. The ``foss`` toolchain supplies FlexiBLAS, which Meson finds as LAPACK. It leaves ``simd_baseline`` at its Meson default. - The tests build the benchmark executables, which is why googlebenchmark is a build dependency. - Before the build, the recipe sets ``CARGO_HOME`` to a directory in the allocation's EasyBuild build directory, so the Cargo cache does not touch your home directory. It sets ``LIBCLANG_PATH`` to the LLVM library directory, gives Cargo the native compiler as linker, and installs ``cbindgen`` into a tool directory under the same build directory. - Cargo reads its certificate bundle from the first readable file among ``CARGO_HTTP_CAINFO``, ``SSL_CERT_FILE``, ``CURL_CA_BUNDLE`` and three common system paths (``/etc/ssl/certs/ca-certificates.crt``, ``/etc/pki/tls/certs/ca-bundle.crt``, ``/etc/ssl/cert.pem``). If none is readable, the recipe stops before the build. Set ``CARGO_HTTP_CAINFO`` to your site's bundle; certificate verification stays on. - The tests step first compiles every Cargo test command that Meson registers, then runs ``meson test --no-rebuild --print-errorlogs --num-processes=4``. The Meson timeouts are the original ones. - The installation is checked for ``bin/gprn``, ``bin/gprd``, ``lib/libgpridge.so`` and ``include``. Then the recipe runs ``gprn --help`` and ``gprd --help``. Keep the module list, the configure, build and test logs, the generated recipe and the provenance file with the installation record. The recipe fixes the source, and only the logs show that the build and tests passed. The revision in ``subprojects/rgmin.wrap`` provides the FIRE step cap and the dense BFGS and SR1 updates used by GPRidge. Check the installation ~~~~~~~~~~~~~~~~~~~~~~ Load the module and print the usage of both drivers. ``GPRidge`` and the version suffix come from the recipe file name: .. code:: bash module load GPRidge/-foss-2026.1 gprn --help gprd --help Each command prints its flag list and exits with status 0. :doc:`Install GPRidge <../getting-started/installation>` has the other routes and a full check. Validate the installed C ABI ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``--easyblock EB_gpridge`` selects the custom easyblock in ``packaging/easybuild/gpridge.py`` in place of the generic ``MesonNinja`` easyblock. After the install it checks the installed C and C++ headers, the CMake and pkg-config metadata and the exported symbols against the C ABI ledger of the source, and it precompiles the registered Cargo test commands before it runs the full Meson test command. Generate a separate recipe and build it with the easyblock file included: .. code:: bash gpr_custom_recipe="$gpr_sources/GPRidge-${gpr_tag#v}-foss-2026.1-custom.eb" python3 easybuild/generate_easyconfig.py \ --tag "$gpr_tag" --archive "$gpr_archive" \ --easyblock EB_gpridge --output "$gpr_custom_recipe" .. code:: bash eb-local --project /path/to/project/software \ "$gpr_custom_recipe" --robot --rpath --sourcepath="$gpr_sources" \ --include-easyblocks="$PWD/packaging/easybuild/gpridge.py" Run these commands in the same allocated native environment as the install above. The provenance record names the selected easyblock next to the source tag and the archive checksum. The default of ``--easyblock`` is ``MesonNinja``, the only other value is ``EB_gpridge``. The snapshot easyconfig on another branch ----------------------------------------- A separate recipe exists on branch ``gpridge-0.6.0-20261116`` of `HaoZeke/easybuild-easyconfigs `_: ``gpridge-0.6.0-20261116-foss-2026.1.eb`` with two patches. It packages commit ``c6670ee7ec6479663c978bcb43b9d31d07be1878``, a ``develop`` snapshot taken after ``v0.6.0``, not the current ``develop``. It fetches the source with a Git checkout of that commit and the wraps at fixed revisions, and it carries the Cargo crates. Its link to FlexiBLAS and its rgmin fix are two patch files. It differs from the generated recipe in several ways: it sets no ``easyblock``, it sets ``-Duse_openblas=true``, and its linkcell archive is commit ``2441fd8e``, which is not the revision in ``subprojects/linkcell.wrap``. Its sanity checks run ``gprd --version``, ``gprd --help``, ``gprn --help``, a potential-list check and a CuH2 ``gprd`` example. Neither recipe is part of upstream EasyBuild. On 2026-11-17 the repositories ``easybuilders/easybuild-easyconfigs`` and ``easybuilders/easybuild-easyblocks`` held no ``gpridge`` easyconfig directory and no ``gpridge.py`` easyblock. For a tag of this repository, use the generator. References ---------- - `eb-local installation and storage contract `_. - `EasyBuild generic easyblocks `_. - `Cargo home and cache layout `_. - `Locked dependency fetching `_. - `Cargo certificate bundle configuration `_.