Nix to the Rescue for a Reproducible HPC-AI Software Stack
Abstract
Reproducibility in HPC remains difficult under the constraints of production supercomputers: no root access, limited internet, and software stacks that increasingly span C/C++, Fortran, Python, MPI, and GPU runtimes. Traditional approaches based on environment modules and Conda require manual intervention to locate dependencies, leak system libraries into builds, and fail to compose across projects. Containers help with deployment but do not by themselves guarantee reproducibility. We report on our experience building a hybrid HPC/AI software stack with Nix, covering local development on a workstation without root and remote deployment as an Apptainer image on a production cluster. Nix's consistent package layout, full environment isolation, and flake-based composition resolve the dependency discovery, leakage, and composition problems we encountered, while unifying C/C++ and Python management under a single declarative specification that also generates the deployment container. We discuss trade-offs against Spack and Guix, the development-versus-production split addressed via CMake presets, and current gaps in ML package coverage in Nixpkgs.
Create a lesson
Metadata
- Journal
- 1st Workshop in Sustainable Practices for Reproducibility in HPC, Jun 2026, Hamburg, Germany
Related papers
A User-oriented Portable, Reproducible, and Scalable Software Ecosystem
Shared title terminologycs.DCAlfio Lazzaro, Utz-Uwe Haus, Sandrine Charousset et al.
Same Seed, Different Top Prediction: Cross-Platform Reproducibility of AlphaFold 3 Inference on TPUs, GPUs, and CPUs
Shared title terminologycs.DCLorenzo Pazienza
Ossim: OS-Driven Live Simulation for Cluster-Scale Full-Stack Evaluation (Extended Version)
Shared title terminologycs.DCYiliang Wan, Jonas Kaufmann, Yihan Yang et al.
ScaleBench: An Extensible and Reproducible Experimental Platform for Kubernetes Autoscaling Research
Shared title terminologycs.DCZe Wang, Sajid Alam, Amjad Ullah
Obaleth: Build Your Own GPU Communication Stack
Shared title terminologycs.DCJavid Baydamirli, Ismayil Ismayilov, Kaan Oktay et al.
RepliCore: Reproducible Parallel Simulation under Asynchronous Browser Runtimes
Shared title terminologycs.DCAnqing Chen