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-boun...@lists.schedmd.com> on behalf of Jeffrey 
T Frey <f...@udel.edu>
Sent: Tuesday, February 7, 2023 6:16 PM
To: Slurm User Community List <slurm-users@lists.schedmd.com>
Subject: Re: [slurm-users] slurm and singularity

You don't often get email from f...@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>

Reply via email to