Assuming Nordugrid cluster architecture, the common way to run code with Singularity is:
arcinfo -l cluster_name
See Definition of GPU-based containers
&
(executable = runfile.sh)
(jobname = "GPUtest")
(inputFiles =
("ubuntu_latest.sif" "gsiftp://dcache.arnes.si:2811/data/arnes.si/gen.vo.sling.si/yourname/ubuntu_latest.sif")
("bestGPUcodeEver.py" "")
)
(stdout=test.log)
(join=yes)
(gridtime=100)
(gmlog=log)
(cache=no)
(memory=300)
Note that for running singularity, you need the following flag (this could be runfile.sh):
singularity exec --nv ubuntu_latest bestGPUcodeEver.pyPlease, see the Detailed tutorial by Barbara Krašovec
TLDR: dcache offers elegant storage of the images somewhere other clusters can see them. Assuming ARC client, copy the image via:
arccp gpuImage.sif place_on_the_cluster