Skip to content

Module System

Overview

The module system on Juno provides a way to dynamically load and unload software packages and their dependencies. Instead of having all software available all the time (which would cause conflicts), modules let you selectively enable the software you need. This page covers the module commands you'll use day to day — searching, loading, listing, and swapping versions — the modules loaded by default, common usage patterns and troubleshooting, and how to manage modules for a research group.

Why Use Modules?

Benefits

Version management: Multiple versions of the same software can coexist

module load python/3.11.11
module load python/3.12.2

Dependency handling: Automatically loads required dependencies

Clean environment: Load only what you need, avoid conflicts

Easy switching: Change software versions without reinstalling

Default Modules on Juno

When you first log in, the following modules are loaded automatically:

$ module list
Currently Loaded Modules:
  1) autotools        3) gnu12/12.4.0     5) ucx/1.15.0       7) openmpi4/4.1.6
  2) prun/2.2         4) hwloc/2.7.2      6) libfabric/1.19.0  8) ohpc

This means GNU 12 (gcc, g++, gfortran) and OpenMPI 4 (mpicc, mpif90) are available immediately after login without any extra module load commands. Other versions (e.g., gnu14, openmpi5) must be loaded explicitly.

Basic Module Commands

List Available Modules

# Show all available modules
module avail

# Search for specific software
module avail python
module avail gnu14

Example output:

-------------------------------------------------------- /opt/ohpc/pub/moduledeps/gnu14-openmpi5 ---------------------------------------------------------
   adios2/2.10.1    fftw/3.3.10     mumps/5.2.1                 omb/7.5                phdf5/1.14.6        scalapack/2.2.2    slepc/3.18.0
   boost/1.88.0     hypre/2.33.0    netcdf-cxx/4.3.1            opencoarrays/2.10.2    pnetcdf/1.14.0      scalasca/2.6.2     superlu_dist/6.4.0
   dimemas/5.4.2    imb/2021.3      netcdf-fortran/4.6.2 (D)    otf2/3.1.1             ptscotch/7.0.7      scorep/9.0         tau/2.31.1
   extrae/3.8.3     mfem/4.4        netcdf/4.9.3                petsc/3.18.1           py3-mpi4py/3.1.5    sionlib/1.7.7      trilinos/13.4.0

------------------------------------------------------------- /opt/ohpc/pub/moduledeps/gnu14 -------------------------------------------------------------
   R/4.5.0        gotcha/1.0.8        likwid/5.4.1       mpich/3.4.3-ucx (D)    openmpi4/4.1.6          plasma/24.8.7       superlu/7.0.0
   cubelib/4.9    gsl/2.8             metis/5.1.0        opari2/2.0.9           openmpi5/5.0.7   (L)    py3-numpy/1.26.4
   cubew/4.9      hdf5/1.14.6  (D)    mpich/3.4.3-ofi    openblas/0.3.29        pdtoolkit/3.25.1        scotch/7.0.7

--------------------------------------------------------------- /opt/ohpc/pub/modulefiles ----------------------------------------------------------------
   EasyBuild/5.0.0                code-server/4.100.2          hwloc/2.12.0               (L)    openmpi-aocc/5.0.6
   abaqus/2023                    code-server/4.108.2   (D)    intel/2023.2.0                    orca/6.0.1
   abaqus/2026             (D)    comsol/6.4                   intel/2025.0               (D)    orca/6.1.1                (D)
   afni/25.3.03                   cplex/22.1.2                 java/11                           os
   amber/24-beta                  cuda-q/0.12.0                jobstats/1.0                      papi/6.0.0
   amber/24                (D)    cuda/11.7                    jq/1.7.1                          pmix/4.2.9
   amduprof/5.1.7                 cuda/12.4                    julia/1.11.3                      prun/2.2                  (L)
   ansys/2025R1                   cuda/12.6                    kempnerpulse/0.4.1                python/3.11.11
   ansys2024R2/ansys2024R2        cuda/13.0             (D)    launcher/3.9                      python/3.12.2             (D)
   ansys2024R2/AnsysEM            cyberworkbench/10.1.7        libfabric/1.18.0           (L)    qchem/6.2.2
   ansys2024R2/autodyn            diagham/0.01                 lichem/lichem                     qchem/6.3                 (D)
   ansys2024R2/fluent             filetools/1.0                lua/5.4.7                         qe/7.3.1
   ansys2024R2/Workbench   (D)    fsl/6.0.7.19                 matlab/r2024b                     rosetta/3.15
   ansys2025R1/ansys2025R1        fvcom/5.0.1                  miniconda/24.11.1                 siesta/5.2.1-parallel
   ansys2025R1/AnsysEM            gaussian/16                  namd/3.0.1                        siesta/5.4.2-wannier90    (D)
   ansys2025R1/autodyn            gnu11/11.3.0                 nccl-tests/cuda12.4               spack/0.23.1
   ansys2025R1/fluent             gnu12/12.4.0                 nccl/2.29.2-1-cuda12.4            stata/19.5
   ansys2025R1/Workbench   (D)    gnu13/13.2.0                 netcdf-c/4.9.2-nvhpc              szip/2.1.1-nvhpc
   aocc/5.0                       gnu14/14.2.0          (L)    netcdf-fortran/4.6.1-nvhpc        tcad-silvaco/243422
   apptainer/1.3.4                gnu5/5.5.0                   nonlinloc/7.1.04                  tinker/9
   autodock_vina/1.2.7            gnu8/8.5.0                   nvhpc/24.11                       ucx/1.18.0                (L)
   autotools               (L)    gnu9/9.3.0                   nvshmem/3.5.19-cuda12.4           valgrind/3.24.0
   bcl/4.3.1                      gnuplot/6.0.4                ohpc                       (L)    vasp/6.4.2-upgrade
   castep/25.12                   gromacs/2024.5-plumed        ollama/12                         vasp/6.4.2-wannier90-only (D)
   charliecloud/0.15              gurobi/12.0.1                ollama/15
   cmake/4.0.0                    hdf5/1.13.2-nvhpc            ollama/21                  (D)
   code-server/3.10.2             hpcc/1.5                     openfoam/2512

  Where:
   D:  Default Module
   L:  Module is loaded

Load a Module

# Load default version
module load python

# Load specific version
module load python/3.11.11

# Load multiple modules
module load python/3.11.11 gnu14

List Loaded Modules

# Show currently loaded modules
module list

Unload a Module

# Unload specific module
module unload python

# Unload all modules
module purge

Get Module Information

# Show what a module does
module show python/3.11.11

# Display help for module
module help python/3.11.11

Switch Module Versions

# Switch to different version
module swap python/3.11.11 python/3.12.2

# Or unload old, load new
module unload python/3.11.11
module load python/3.12.2

Common Usage Patterns

Interactive Use

# Log in to Juno
ssh netID@juno.utdallas.edu

# Load needed software
module load python/3.11.11

# Use the software
python --version
python my_script.py

# When done, unload or just log out
module unload python

In Job Scripts

Best practice: Load modules in job scripts, not in .bashrc

#!/bin/bash
#SBATCH -J my_job
#SBATCH -o output_%j.log
#SBATCH -p normal
#SBATCH -N 1
#SBATCH -c 4
#SBATCH --mem=8GB
#SBATCH -t 2:00:00

# Load required modules
module purge                    # Start clean
module load python/3.11.11
module load gnu14
module load openmpi5

# Verify loaded modules
module list

# Run your program
python analyze.py

Interactive Session on Compute Node

# Request resources
salloc -p normal --mem=8GB -c 4

# Start interactive session
srun --pty bash

# Load modules
module load matlab

# Use software
matlab

# Exit when done
exit

Module Organization

Module Hierarchies

Some module systems use hierarchies where loading a compiler unlocks additional software:

                ┌──────────┐              ┌──────────┐
                │  gnu14   │              │  intel   │   compilers
                └────┬─────┘              └────┬─────┘
                     │ unlocks                 │ unlocks
                     ▼                         ▼
                ┌──────────┐              ┌──────────┐
                │ openmpi5 │  (or mpich)  │   MKL    │   MPI / math libs
                └────┬─────┘              └──────────┘
                     │ unlocks
          ┌──────────┴┬───────────┬───────────┐
          ▼           ▼           ▼           ▼
     ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐
     │  hdf5   │ │ netcdf  │ │  petsc  │ │   ...   │  MPI-dependent libs
     └─────────┘ └─────────┘ └─────────┘ └─────────┘

  Load in order: compiler first, then MPI, then MPI-dependent libraries.
  Wrong order → "module not found" or silent ABI mismatch at runtime.
# Load compiler first
module load gnu14

# Now MPI modules appear
module avail openmpi5

# Load MPI
module load openmpi5

# Now MPI-dependent software appears
module avail netcdf

Module Collections

Save frequently used module combinations:

# Load your typical modules
module load python/3.11.11 gnu14 openmpi5

# Save as collection
module save mycollection

# Restore collection later
module restore mycollection

# List saved collections
module savelist

# Show collection contents
module describe mycollection

Common Software Modules

Compilers

# GCC compiler suite
module load gnu14
module load gnu13

# Intel compiler
module load intel/2025.0

Programming Languages

# Python
module load python/3.11.11
module load python/3.12.2

# R
module load R/4.5.0

# Julia
module load julia/1.11.3

# Java
module load java/11

Scientific Software

# MATLAB
module load matlab/r2024b

# Gaussian 16
module load gaussian/16

Libraries and Tools

# MPI implementations
module load openmpi5
module load mpich

# CUDA for GPU
module load cuda/12.4
module load cuda/12.6

Troubleshooting Modules

Module Not Found

Problem: module load package returns "not found"

Solutions:

# Check spelling and availability
module avail package

# Check for different versions
module avail | grep -i package

# Software might not be installed
# Contact support to request installation

Version Conflicts

Problem: "Module X conflicts with Y"

Solution:

# Unload conflicting module first
module unload X
module load Y

# Or swap directly
module swap X Y

# Or start fresh
module purge
module load Y

Missing Dependencies

Problem: Program complains about missing libraries

Solution:

# Check what module loads
module show package_name

# May need to load dependencies manually
module load dependency_module
module load package_name

Changes Not Taking Effect

Problem: Module loaded but command not found

Solution:

# Verify module actually loaded
module list

# Check command location
which command_name

# Reload module
module unload package
module load package

# Check PATH
echo $PATH

Advanced Module Usage

Custom Module Path

Add your own modules:

# Add custom module path
module use /path/to/my/modules

# Remove custom path
module unuse /path/to/my/modules

Environment Variables

Modules modify environment variables:

# Before loading
echo $PATH
echo $LD_LIBRARY_PATH

# Load module
module load python/3.11.11

# After loading (paths modified)
echo $PATH
echo $LD_LIBRARY_PATH

# See what module changes
module show python/3.11.11

Best Practices

1. Always Specify Versions in Job Scripts

Bad:

module load python    # Might change unexpectedly

Good:

module load python/3.11.11    # Explicit version

2. Start with Clean Environment

#!/bin/bash
#SBATCH -J my_job

# Purge first to avoid conflicts
module purge

# Load exactly what you need
module load python/3.11.11
module load gnu14

3. Document Required Modules

In your README or script headers:

#!/bin/bash
# Required modules:
# - python/3.11.11
# - gnu14
# - openmpi5

module purge
module load python/3.11.11 gnu14 openmpi5

4. Don't Load Modules in .bashrc

Why: Can cause conflicts and unexpected behavior in jobs

Instead: Load modules when needed or in job scripts

5. Test Module Combinations

# Test interactively first
module purge
module load package1/version1
module load package2/version2

# Run quick test
python -c "import package; print(package.__version__)"

# If works, add to job script

Module Cheat Sheet

Essential Commands

module avail               # List all available modules
module avail python        # Search for Python modules
module load python/3.11.11 # Load specific version
module list                # Show loaded modules
module unload python       # Unload module
module purge               # Unload all modules
module show python/3.11.11 # Show module details
module swap old new        # Replace module

Quick Workflow

# 1. Find software
module avail | grep package_name

# 2. Load it
module load package_name/version

# 3. Verify
module list
which command_name

# 4. Use it
command_name --version

Example Workflows

Python Data Science

module purge
module load python/3.11.11
module load gnu14

# Python packages
python -m pip install --user numpy pandas matplotlib

Compiled Code

module purge
module load gnu14
module load openmpi5

# Compile
mpicc myprogram.c -o myprogram

# Run
mpirun -np 4 ./myprogram

MATLAB

module purge
module load matlab/r2024b

# Run MATLAB
matlab -nodisplay -nosplash -r "run('script.m'); exit;"

GPU Computing

module purge
module load cuda/12.4

# Compile CUDA code
nvcc mycode.cu -o mycode

# Run
./mycode

Module Management for Groups

Shared Modules

For research groups:

# Group can maintain shared modules in project space
module use /groups/groupname/modules

# Load group-specific software
module load custom_software/1.0

Requesting New Software

When software you need isn't available:

  1. Check if it exists: module avail | grep -i software_name

  2. Try installing locally (user space):

  3. Python: pip install --user package
  4. Conda: Create environment
  5. From source: Install to $HOME/software

  6. Request installation:

  7. Open ticket at HPC Services page
  8. Provide: software name, version, URL, purpose
  9. Indicate if others would benefit

  10. Use containers (Singularity/Apptainer):

  11. See Containers Guide

Software Management Alternatives

When NOT to Use Modules

Use alternative methods for:

Python packages: Use conda environments or pip

pip install --user package_name

R packages: Install in personal library

install.packages("package_name")

Conda/Mamba: Full environment management

conda create -n myenv python=3.11
conda activate myenv

See:

Next Steps

Need Help?

  • Module questions: circ-assist@utdallas.edu
  • Software requests: Open ticket for Software Installation
  • Module errors: Include error message and module list output in ticket