You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the code I am using to use srun in an salloc with Open MPI. Starts around line 443 of SLURM.py. Will this interfere with anyone else's use case? It also makes SLURM.py more specific rather than making it more general. @ribab
# Add support for srun in --no-shell allocation
if self.allocated and (cmds['command'] == 'srun') and ("--job-name" in cmds['allocate_cmd']
parseAllocate_cmd = cmds['allocate_cmd'].split()
for word in parseAllocate_cmd:
word = word.strip()
if '--job-name' in word:
jobname = word[11:]
jobid = int(subprocess.check_output(['squeue', '--noheader', '--format', '%i', '--name'
cmdargs.append('--jobid=%d' % (jobid))
SLURM plguin (And other related plugins like ALPS) should be smarter
The code could also be cleaned up
The text was updated successfully, but these errors were encountered: