Abstract¶
Scientific researchers need reproducible software environments for complex applications that can run across heterogeneous computing platforms. Modern open source tools, like Pixi, provide automatic reproducibility solutions for all dependencies while providing a high level interface well suited for researchers. Combined with the recent emergence of the entire CUDA software stack — from compilers to development libraries — being supported on conda-forge, researchers are now able to easily specify their exact hardware acceleration requirements and software dependencies and get portable computational environments locked down to the hash level.
1Introduction¶
A critical component of research software sustainability is the reproducibility of the software and computing environments software operates and “lives” in. Providing software as a “package” — a standardized distribution of all source or binary components of the software required for use along with identifying metadata — goes a long way to improved reproducibility of software libraries. However, more researchers are consumers of libraries than developers of them, but still need reproducible computing environments for research software applications that may be run across multiple computing platforms — e.g. scientific analyses, visualization tools, data transformation pipelines, and artificial intelligence (AI) and machine learning (ML) applications on hardware accelerator platforms (e.g. GPUs). While workflow engines and Linux containers offer a gold standard for scientific computing reproducibility, they require additional layers of training and software engineering knowledge. Modern open source multi-platform environment management tools, e.g. Arts et al., n.d., provide automatic multi-platform hash-level lock file support for all dependencies — down to the compiler level — of software on public package indexes (e.g. PyPI The Python Package Index (PyPI), n.d. and conda-forge conda-forge community, 2015) while still providing a high level interface well suited for researchers. Combined with the arrival of the full CUDA Nickolls et al., 2008 stack on conda-forge, it is now possible to declaratively specify a full CUDA accelerated software environment. We are now at a point where well supported, robust technological solutions exist, even for applications with highly complex software environments. What is currently lacking is the education and training by the broader scientific software community to adopt these technologies and build community standards of practice around them, as well as an understanding of what are the most actionably useful features of adopting computational reproducibility tools.
2Reproducibility¶
“Reproducible” research is a term that can mean multiple things across various fields. Some fields may view work as “reproducible” if the full process is documented, and other may view “reproducible” as meaning that all computations will give the same numerical outputs barring entropy variations. As there are multiple levels of reproducibility, we will restrict “reproducibility” to software environment reproducibility. We define this as be limited to the ability to define and programmatically create a software environment composed of packages that specifies all software, and its dependencies, with exact URLs and binary digests (“hashes”). Reproducible environments need to be machine agnostic in that for a specified computing platform in the environment they must be installable without modification across multiple instances.
2.1Hardware accelerated environments¶
Software the involves hardware acceleration on computing resources like GPUs requires additional information to be provided for full computational reproducibility. In addition to the computer platform, information about the hardware acceleration device, its supported drivers, and compatible hardware accelerated versions of the software in the environment (GPU enabled builds) are required. Traditionally this has been very difficult to do, but multiple recent technological advancements (made possible by social agreements and collaborations) in the scientific open source world now provide solutions to these problems.
3Conda packages¶
Conda packages (.conda
files) are language agnostic file archives that contain built code distributions and metadata.
This is quite powerful, as it allows for arbitrary code to be built for any target platform and then packaged with its metadata.
When a conda package is downloaded and then unpacked with a conda package management tool (e.g. Pixi, conda, mamba) it is then “installed” by copying the package’s file directory tree to the base of the environment’s directory tree.
Package contents are also simple; they can only contain files and symbolic links.
3.1conda-forge¶
Conda packages can be distributed on package indexes that support the concept of “channels” which redirect URLs to directory trees of conda packages.
Channel names serve as the base path for hosting packages.
The most broadly used community channel for conda-packages is the conda-forge
channel, which hosts the conda packages generated from builds on the global conda-forge community cyberinfrastructure.
The conda-forge community operates in a GitHub organization that hosts Git repositions that contain conda package build recipes as well as automation infrastructure and continuous integration (CI) and continuous delivery (CD) workflows.
This allows for conda-forge community members to submit and maintain recipes — instructions for conda package build systems — to build and distribute conda packages for multiple variants of computing platforms — combinations of operating systems and hardware architectures — for Linux, macOS, and Windows.
4CUDA¶
CUDA (Compute Unified Device Architecture) is a parallel computing platform and programming model developed by NVIDIA for general computing on graphical processing units (GPUs). Nickolls et al., 2008Fatica, 2008 The CUDA ecosystem provides Software Development Kits (SDKs) with APIs to CUDA that allow for software developers to write hardware accelerated programs with CUDA in various languages for NVIDIA GPUs. CUDA has official language support for C++, Fortran, and Python, with community support for Julia and other languages. While there are other types of hardware acceleration development platforms, as of 2025 CUDA is the most abundant platform for scientific computing that uses GPUs and effectively the default choice for major machine learning libraries and applications.
CUDA is closed source and proprietary to NVIDIA, which means that NVIDIA has historically limited the download access of the CUDA toolkits and drivers to registered NVIDIA developers (while keeping the software free (monetarily) to use). CUDA then required a multi-step installation process CUDA Installation Guide for Linux, n.d. with manual steps and decisions based on the target platform and particular CUDA version. This meant that when CUDA enabled environments were setup on a particular machine they were powerful and optimized, but brittle to change and could easily be broken if system wide updates (like for security fixes) occurred. CUDA software environments were bespoke and not many scientists understood how to construct and curate them.
5CUDA packages on conda-forge¶
5.1Initial implementation¶
After discussion in late 2018 conda-forge.github.io Issue 687: How to specify CUDA version in a conda package?, 2018 to better support the scientific developer community, the CUDA packaging community agreed to use the Anaconda defaults
channel’s Anaconda, Inc., 2025 cudatoolkit
package.
Initially the cudatoolkit
package was designed around Numba’s CUDA needs Continuum Analytics, Inc., 2017, though it evolved to a bundle of redistributable CUDA libraries.
In 2019, NVIDIA began packaging the cudatoolkit
package in the nvidia
conda channel.
With help from the broader community, the cudatoolkit
package was added to conda-forge
in 2020 conda-forge/staged-recipes Pull Request 12882: Cudatoolkit, 2020.
For the first time, this provided users the ability to specify different versions of CUDA libraries and download them in newly created Conda environments.
Supporting initial conda-forge CUDA builds required additional components:
- A conda-forge Docker image using the NVIDIA CUDA Docker images, which provided the NVIDIA build tools for compiling packages.
- A shim package to leverage the NVIDIA build tools within a Conda package build.
- A CUDA build matrix in conda-forge’s global pinnings, which tied these two pieces together.
These ideas were tied together in the first package build on September 20, 2019 conda-forge/ucx-split-feedstock Pull Request 14: Add GPU builds, 2019, and the initial implementation of this work was completed later in 2019. In 2020, support was expanded to Windows CUDA builds. Lots of iteration on this work happened after, all using the same basic foundation.
5.2Revised implementation¶
After some time using these packages and build process, a few observations became clear.
First, some packages used only a subset of the libraries, like the driver, the CUDA runtime library, or particular library components like cuBLAS.
However, the cudatoolkit
package shipped considerably more than that, so having finer specifications of dependencies would provide a better package maintainer and end-user experience.
Second, some packages needed components that were not part of the cudatoolkit
bundle like other libraries or parts of the build toolchain.
Having some way to depend on these components would improve usability.
Third, the infrastructure management overhead of custom Docker images and their integration into the conda-forge build matrix was cumbersome for conda-forge maintainers.
Being able to install and use the build tools directly would simplify maintenance and benefit end-users wishing to use these build tools.
To address these issues, NVIDIA began working on a revised set of packages.
These more closely matched packages in other distribution channels (like Linux distribution package managers) and were adapted to the Conda user experience.
For example, Linux distributions often install packages at the system level, which differs from the first-class userspace environment experience that Conda provides.
As a result, some distinctions that a Linux distribution provides are unneeded in Conda.
There are additional differences around behavior in pinning versions of dependencies or how compilers are packaged and expected to work in their installed environments.
Initial production of the packages were made on the nvidia
channel, however, all of this work was being done internally in NVIDIA and published to a separate channel.
This made the packages less visible and required additional knowledge to use.
In 2023, NVIDIA began adding the releases of CUDA conda packages from the nvidia
channel to conda-forge, making it easier to discover and allowing for community support.
Given the new package structure, NVIDIA added the packages for CUDA 12.0
to indicate the breaking change.
Also with significant advancements in system driver specification support, CUDA 12
became the first version of CUDA to be released as conda packages through conda-forge and included all CUDA libraries from the CUDA compiler nvcc
to the CUDA development libraries.
CUDA metapackages were also released, which allow users to easily describe the version of CUDA they require (e.g. cuda-version=12.5
) and the CUDA conda packages they want (e.g. cuda
).
This significantly improved the ability for researchers to easily create CUDA accelerated computing environments.
6Pixi¶
- Modern manager Arts et al., n.d.
- Automatic and non-optional hash level lock files upon workspace mutation
- Multi-platform
7Acknowledgements¶
Matthew Feickert is supported by the U.S. National Science Foundation (NSF) under Cooperative Agreement PHY-2323298 (IRIS-HEP) and by the US Research Software Sustainability Institute (URSSI) via grant G-2022-19347 from the Sloan Foundation. Ruben Arts is supported by prefix.dev GmbH. John Kirkham is supported by NVIDIA. The described tutorial was created in association with Feickert, 2025.
- Arts, R., Zalmstra, B., Vollprecht, W., de Jager, T., Morcotilo, N., & Hofer, J. (n.d.). pixi. https://github.com/prefix-dev/pixi/releases/tag/v0.48.0
- The Python Package Index (PyPI). (n.d.). https://pypi.org/
- conda-forge community. (2015). The conda-forge Project: Community-based Software Distribution Built on the conda Package Format and Ecosystem. 10.5281/zenodo.4774216
- Nickolls, J., Buck, I., Garland, M., & Skadron, K. (2008). Scalable parallel programming with CUDA. ACM SIGGRAPH 2008 Classes. 10.1145/1401132.1401152
- Fatica, M. (2008). CUDA toolkit and libraries. In 2008 IEEE Hot Chips 20 Symposium (HCS) (pp. 1–22). 10.1109/HOTCHIPS.2008.7476520
- CUDA Installation Guide for Linux. (n.d.). https://docs.nvidia.com/cuda/cuda-installation-guide-linux/
- conda-forge.github.io Issue 687: How to specify CUDA version in a conda package? (2018). https://github.com/conda-forge/conda-forge.github.io/issues/687
- Anaconda, Inc. (2025). Anaconda Documentation: Default channels. (https://www.anaconda.com/docs/tools/working-with-conda/reference/default-channels.
- Continuum Analytics, Inc. (2017). numba/conda-recipe-cudatoolkit. https://github.com/numba/conda-recipe-cudatoolkit
- conda-forge/staged-recipes Pull Request 12882: Cudatoolkit. (2020). https://github.com/conda-forge/staged-recipes/pull/12882
- conda-forge/ucx-split-feedstock Pull Request 14: Add GPU builds. (2019). https://github.com/conda-forge/ucx-split-feedstock/pull/14
- Feickert, M. (2025). Reproducible Machine Learning Workflows for Scientists. https://github.com/carpentries-incubator/reproducible-ml-workflows