Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
habrok:examples:apptainer [2023/04/14 11:52] – ↷ Page name changed from habrok:examples:singularity to habrok:examples:apptainer adminhabrok:examples:apptainer [2024/05/03 18:51] (current) admin
Line 74: Line 74:
 <code bash> <code bash>
 apptainer exec -B /scratch/$USER /scratch/$USER/fsl6_latest.sif fsl_anat <arguments> apptainer exec -B /scratch/$USER /scratch/$USER/fsl6_latest.sif fsl_anat <arguments>
 +</code>
 +
 +==== Using a GPU in your container ====
 +
 +In order to make a GPU available in the container, you will have to use the ''--nv'' flag for the Apptainer subcommand, e.g.:
 +<code bash>
 +apptainer exec --nv /scratch/$USER/fsl6_latest.sif fsl_anat <arguments>
 </code> </code>