MODULE 13 // 24:20

Running Apptainer Inside Slurm Batch Jobs

Bind mount home directories and pass GPU runtimes to containerized jobs submitted via Slurm.

// KEY ARCHITECTURAL TAKEAWAYS

  • Use --bind to mount data paths.
  • Enable GPU support with --nv flag.
REFERENCE IMPLEMENTATION // SNIPPET
apptainer exec --nv --bind /home/$USER/data:/workspace/data simulation.sif python /app/run.py