SubatomicPhysics/Software and Environments
Overview¶
The standard Alliance software environment (StdEnv) provides libraries via CVMFS (/cvmfs/soft.computecanada.ca) built with EasyBuild, rather than installing packages on the base operating system of the compute nodes. Because many HEP frameworks expect standard enterprise Linux RPMs (such as HEP_OSlibs) to be present on the host OS, running external experiment setups directly in the default shell can cause library conflicts.
Pre-installed Modules and Python Wheels¶
Several core physics and data-analysis packages are natively installed on Alliance clusters and can be loaded via Lmod modules or installed into a Python virtual environment:
- Modules: Packages such as
root,geant4,pythia8, andopenmpiare available as modules. Usemodule spider <package>to check available versions and compatibleStdEnvmodules. - Python Wheels: Common HEP Python libraries (such as
uproot,awkward,hist,iminuit, andscikit-heptools) are available in the Alliance wheelhouse. Runavail_wheelson a cluster to check available versions.
CVMFS Repositories (CERN & OSG)¶
Many subatomic physics collaborations distribute software releases, compilers, and geometry databases through the CERN Virtual Machine File System (CVMFS). Alliance compute and login nodes mount standard repositories under /cvmfs/, including:
/cvmfs/sft.cern.ch(LCG releases, ROOT, Geant4, compilers)/cvmfs/atlas.cern.chand/cvmfs/atlas-condb.cern.ch/cvmfs/cms.cern.ch/cvmfs/belle.cern.ch/cvmfs/unpacked.cern.ch(Unpacked container images)/cvmfs/oasis.opensciencegrid.org
Setting up an LCG View¶
For lightweight analysis or compilation using the CERN LCG software stack (which includes ROOT, Geant4, Python, and compilers), you can source an LCG view directly from sft.cern.ch. To avoid conflicts with the default Alliance environment, run inside a clean container matching the target OS (e.g., AlmaLinux 9 / EL9):
# Example: Sourcing a modern LCG release for Enterprise Linux 9 (el9)
source /cvmfs/sft.cern.ch/lcg/views/LCG_105/x86_64-el9-gcc13-opt/setup.sh
Note
Ensure the OS tag in the LCG path (e.g., el9) matches the operating system of your compute node or container.
Requesting Additional CVMFS Repositories¶
If your collaboration requires a CVMFS repository (from CERN, OSG, or an experiment stratum-1) that is not currently mounted on a specific cluster, please submit a support ticket with [SPNT] in the subject line and provide the repository name and configuration details.
Running in Containers (Apptainer)¶
Because many subatomic physics frameworks assume HEP_OSlibs RPMs are installed—or require legacy operating systems (such as CentOS 7 or AlmaLinux 8) that differ from the host cluster OS—the recommended approach for complex workflows is using Apptainer (formerly Singularity).
On all Alliance clusters (including Trillium, Fir, Narval, Nibi, and Rorqual), containers are executed using the apptainer command.
Container Repositories on CVMFS¶
Two primary CVMFS repositories provide ready-to-use container images for HEP workflows:
- WLCG Unpacked Repository (
/cvmfs/unpacked.cern.ch/): Uses DUCC (Docker Unpacked CVMFS) to automatically publish container images from registries like Docker Hub and GitLab into an unpacked directory structure ready for Apptainer. - ATLAS Containers (
/cvmfs/atlas.cern.ch/repo/containers/): Provides both single-file packed SIF/Singularity images (.../images/singularity/) and unpacked filesystem images (.../fs/singularity/).
Invoking a Container¶
You can execute a container directly from CVMFS (which caches accessed files locally on the node) or pull a .sif image to your /project or $SLURM_TMPDIR space for repeated batch jobs:
# Run an interactive shell inside an unpacked EL9 container with CVMFS bound
apptainer exec --bind /cvmfs,/project,/scratch /cvmfs/unpacked.cern.ch/://docker.com /bin/bash
For details on binding filesystems, GPU passthrough, and running Apptainer inside Slurm batch scripts, see our Apptainer guide.