GPU in containerized snakemake workflows - core-unit-bioinformatics/knowledge-base GitHub Wiki
Modules of a snakemake workflow normally can not locate CUDA devices when running within an (apptainer) container, even if the GPUs are allocated under "resources".
Apptainer needs the additional argument --apptainer-args "--nv" given on the command line, to find the nvidia GPUs.