[slurm-users] slurm and singularity

Groner, Rob rug262 at psu.edu
Wed Feb 8 14:47:28 UTC 2023


I tried that, and it says the nodes have been allocated, but it never comes to an apptainer prompt.

I then tried doing them in separate steps.  Doing salloc works, I get a prompt on the node that was allocated.  I can then run "singularity shell <sif>" and get the apptainer prompt.  If I prefix that command with "srun", then it just hangs and I never get the prompt.  So that seems to be the sticking point.  I'll have to do some experiments running singularity with srun.

________________________________
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Jeffrey T Frey <frey at udel.edu>
Sent: Tuesday, February 7, 2023 6:16 PM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] slurm and singularity

You don't often get email from frey at udel.edu. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
The remaining issue then is how to put them into an allocation that is actually running a singularity container.  I don't get how what I'm doing now is resulting in an allocation where I'm in a container on the submit node still!

Try prefixing the singularity command with "srun" e.g.


salloc <salloc-parameters> srun <srun-parameters> /usr/bin/singularity shell <path to sif>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230208/5bc1fe97/attachment.htm>


More information about the slurm-users mailing list