Build against EESSI with the pixi overlay¶
The directory eessi/ holds a second pixi manifest, eessi/pixi.toml. It
builds GPRidge with the compiler, MPI, BLAS, ScaLAPACK, Eigen, HDF5 and CMake
from EESSI (the software tree at /cvmfs/software.eessi.io), and uses pixi
only for the few packages the manifest says EESSI does not ship. This page
shows when to use it, what it leaves for you to provide, and how to build and
check a binary. The overlay was not run for this page: the documentation host
has no /cvmfs mount. The manifest parses (pixi task list --manifest-path eessi/pixi.toml with pixi 0.84.2), and every statement below comes from
eessi/pixi.toml, eessi/env.sh, eessi/scripts/bootstrap_eessi.sh, the
Meson files, or a probe named in the text.
Choose an environment¶
Environment |
Manifest |
Platform |
Provides |
|---|---|---|---|
Top-level |
|
linux-64 |
conda-forge GCC, g++ and gfortran (14 or newer), OpenMPI, ScaLAPACK, Rust and libclang |
Top-level |
|
linux-64 |
conda-forge GCC, g++ and gfortran (14 or newer); Rust and libclang come from the host |
Top-level default |
|
linux-64 |
libraries and build tools, no compiler |
EESSI overlay |
|
linux-64 |
the compiler, MPI, BLAS and Eigen of EESSI; conda-forge for a short list |
The top-level default environment has no C, C++ or Fortran compiler, so
pixi shell alone does not give a working build: use pixi shell -e scalapack,
or -e python with Rust and libclang from the host (see Install GPRidge). Both
manifests list only the linux-64 platform. There is no pixi route on macOS.
The two routes are alternatives. The conda-forge environments need no CVMFS mount. The overlay needs one, which an HPC administrator usually provides, and it builds with the EESSI toolchain instead of the conda-forge one. Run on an HPC cluster explains the CPU-target rule that applies to both.
Where each dependency comes from¶
eessi/env.sh loads the foss toolchain, then four pinned modules
(OpenBLAS, Eigen, HDF5 and CMake). Read env.sh for the module names and
versions; they are not repeated here. EESSI_VERSION and EESSI_TOOLCHAIN
in eessi/pixi.toml set the tree and the toolchain.
Dependency |
Source in the overlay |
|---|---|
GCC, g++, gfortran, OpenMPI, ScaLAPACK |
the |
CMake, Eigen, HDF5, OpenBLAS |
EESSI modules pinned in |
Rust (cargo, rustc) |
conda-forge, through |
libhwy, google benchmark, gtest |
conda-forge; the manifest comments say EESSI does not ship them |
chemfiles, capnproto (optional) |
conda-forge |
Meson, Ninja, pkg-config |
not provided: they must already be on |
libclang, cbindgen |
not provided: install them before |
The foss toolchain of EESSI 2025a is GCC, OpenMPI, FlexiBLAS, FFTW and
ScaLAPACK, read from foss-2025a.eb in the
EasyBuild easyconfigs. It does not contain Meson, Ninja, pkg-config,
libclang or cbindgen, and neither eessi/pixi.toml nor env.sh adds
them. A default GPRidge configure needs Meson, Ninja, libclang and cbindgen
(rgmin’s default highs feature needs libclang, and anneal needs cbindgen
0.29 or newer), so this is a gap of the overlay. Close it by putting Meson
and Ninja on PATH from the host, then provide libclang and cbindgen by the
means the installation page lists in its Prerequisites table. In the top-level
environments, pixi run -e scalapack install-cbindgen installs cbindgen into
the environment; the overlay has no such task. FFTW is part of foss, but
GPRidge’s Meson files do not use it.
GPRidge calls the HDF5 C API directly in managers/io/H5Dump.cpp, so no HDF5
C++ wrapper library is a dependency.
The packages in [dependencies] are the maintainers’ list of gaps in the
EESSI 2025.06 tree. Their comments say each package is missing from EESSI;
that was not re-checked against the CVMFS tree. Drop a package from the
manifest when EESSI ships it.
Set up the CVMFS mount¶
On an HPC host, the administrator mounts /cvmfs/software.eessi.io, and you
skip this section. On a laptop without that mount, eessi/scripts/bootstrap_eessi.sh
sets up cvmfsexec, which mounts CVMFS without root. The script needs git,
curl, rpm2cpio and cpio, and is safe to run again. It does five things:
Clones cvmfsexec into
$CVMFSEXEC_DIR(default~/cvmfsexec) and builds itsdist/with./makedist -m rhel9-x86_64 default.Extracts the el9
fuse3-libsrpm intodist/usr/lib64/. The script comments give the reason: Arch’s libfuse3 has the SONAMElibfuse3.so.4, and the EESSI client library is linked againstlibfuse3.so.3.Writes the EESSI domain key to
dist/etc/cvmfs/keys/eessi.io/software.eessi.io.pubwhen the file is missing or holds a “404” body.Writes
dist/etc/cvmfs/config.d/software.eessi.io.confwith three Stratum-1 server URLs andCVMFS_USE_GEOAPI=yes, when the file is missing or still names the Stratum-0 server.Runs a smoke test that lists
/cvmfs/software.eessi.io/versions/and sources the EESSI init script.
cd eessi
pixi run bootstrap-eessi
Build and test¶
Enter an EESSI-aware shell, then run the tasks from the eessi/ directory.
pixi run tasks source env.sh themselves:
# Once per session, on a laptop that uses cvmfsexec:
~/cvmfsexec/cvmfsexec -N software.eessi.io -- bash -l
# Inside that shell, in the eessi/ directory:
pixi run probe
pixi run setup
pixi run build
pixi run test
pixi run probe prints one line per tool. Its first lines are
EESSI subdir: with the CPU subtree that EESSI chose (for example
x86_64/intel/haswell or x86_64/amd/zen2) and gcc: with the compiler
version from the foss toolchain. Check that the subtree is the one you
expect before you build.
pixi run setup configures Meson with
-Duse_openblas=true -Duse_hdf5=true -Duse_highway=enabled -Duse_openmp=true -Dwith_tests=true, the native file nativeFiles/eessi.ini and
--buildtype=debugoptimized, into $GPR_BUILDDIR. use_highway is a Meson
feature option, so it takes enabled, disabled or auto; Meson rejects
true. The tasks keep the build tree in eessi/build/ and the install prefix
in eessi/install/, so neither touches the build trees of the top-level
environments. pixi run setup-scalapack configures the ScaLAPACK backend
into eessi/build-scalapack/. pixi run install installs into $GPR_PREFIX.
Set EESSI_VERSION, EESSI_TOOLCHAIN, GPR_SRC, GPR_BUILDDIR or
GPR_PREFIX in the shell before pixi run to use another EESSI tree,
toolchain or prefix. The build downloads the Meson wraps and the Cargo
crates the tag pins, so the host needs network access, as
Install GPRidge explains.
Check that eessi/pixi.lock matches eessi/pixi.toml with
pixi lock --check --manifest-path eessi/pixi.toml.
What the overlay does at build time¶
env.shsources/cvmfs/software.eessi.io/versions/${EESSI_VERSION}/init/bash, which selects the CPU subtree and puts its module tree onMODULEPATH.module loadloads$EESSI_TOOLCHAINand then the pinned OpenBLAS, Eigen, HDF5 and CMake. The comments inenv.shsay the pins stop Lmod from swapping in siblings built with a newer GCCcore.LD_LIBRARY_PATHgets thelibdirectories of the ScaLAPACK, FFTW, OpenMPI, HDF5 and OpenBLAS install roots, and$EBROOTGCCCORE/lib64, in front of everything else. EESSI modules leaveLD_LIBRARY_PATHempty, and a binary built here has no RPATH, so without this it would find the system or compatibility-layer libstdc++.CMAKE_PREFIX_PATHgets the EESSI install roots first. When the pixi environment is active, its prefix is appended toPKG_CONFIG_PATH,LD_LIBRARY_PATHandCMAKE_PREFIX_PATH, after the EESSI entries, so the conda-forge packages stay reachable but do not override EESSI.meson setupruns with--native-file nativeFiles/eessi.ini. The file namesgcc,g++,gfortran,cmakeandpkg-configwithout paths, so Meson resolves them against thePATHthatmodule loadset up, and it setscpp_stdtoc++20.
Check which libraries the binary uses¶
After a build, list the libraries gprd resolves:
ldd eessi/build/gprd | grep -E 'openblas|hdf5|libstdc\+\+|libgomp|libgfortran'
Under the overlay, each of those paths starts with /cvmfs/software.eessi.io.
libhwy is the exception that you expect in the pixi environment, because it
comes from conda-forge. If libhdf5 or libopenblas resolves into
.pixi/envs/, either env.sh was not sourced or a conda-forge HDF5 or
OpenBLAS shadows the EESSI one. Run pixi run probe to see the mismatch.
What the repository measures¶
eessi/results/bench_distance_summary.md compares the bench_distance
benchmark, built once with the overlay and once with a top-level pixi build.
The raw Google Benchmark output is in eessi/results/bench_distance_eessi.json
and bench_distance_pixi.json. The files record:
One run for each build, started at 00:41 and 00:44 on 2026-04-14, on one host with 12 logical CPUs and frequency scaling enabled.
Five repetitions of each benchmark, and load averages of 7.4, 9.7 and 7.2 (EESSI) and 9.1, 9.3 and 7.4 (pixi) at the start of each run.
Of 13 benchmark configurations, 2 classed as “EESSI faster”, 1 as “pixi faster” and 10 as “noise”.
scripts/bench_compare.shclasses a row as a difference only when the relative delta is at least the larger of the two relative standard deviations.
One run for each side on a loaded machine does not show that either build is
faster. The summary lists -Duse_highway=true, which Meson now rejects, as
a build flag; use enabled.
To repeat the comparison, build both trees as release builds with the same
flags, then run the comparison task. The commands were not run for this page.
Inside the cvmfsexec shell, in the eessi/ directory:
bash -c 'source env.sh && meson setup build .. --reconfigure \
--native-file nativeFiles/eessi.ini --buildtype=release \
-Duse_openblas=true -Duse_hdf5=true -Duse_highway=enabled \
-Duse_openmp=true -Dwith_tests=true && meson compile -C build'
Then build the matching tree with a top-level environment that has a
compiler, from the repository root, and compare. The cbindgen step is the
one the top-level scalapack environment needs before a configure:
pixi run -e scalapack install-cbindgen
pixi run -e scalapack bash -c 'meson setup bench-pixi-release \
--buildtype=release -Duse_openblas=true -Duse_hdf5=true \
-Duse_highway=enabled -Duse_openmp=true -Dwith_tests=true \
&& meson compile -C bench-pixi-release'
cd eessi && pixi run bench-compare
The task writes eessi/results/bench_distance_{eessi,pixi}.json and
bench_distance_summary.md, and overwrites the committed files.