[slurm-users] salloc with bash scripts problem
Mark Hahn
hahn at mcmaster.ca
Wed Jan 2 13:49:47 MST 2019
> [mahmood at rocks7 ~]$ salloc -n1 hostname
> salloc: Granted job allocation 278
> rocks7.jupiterclusterscu.com
> salloc: Relinquishing job allocation 278
> salloc: Job allocation 278 has been revoked.
> [mahmood at rocks7 ~]$
>
> As you can see whenever I run salloc, I see the rocks7 prompt which is the
> login node.
this is precisely as expected. salloc allocates; srun runs.
to get a compute node do this instead:
salloc srun hostname
if you actually want to srun an interactive shell each time,
why are you not using SallocDefaultCommand as others have suggested?
you earlier mentioned wanting to run an X-requiring script. why not just:
salloc --x11 srun ./whateveryourscriptwas
regards,
--
Mark Hahn | SHARCnet Sysadmin | hahn at sharcnet.ca | http://www.sharcnet.ca
| McMaster RHPCS | hahn at mcmaster.ca | 905 525 9140 x24687
| Compute/Calcul Canada | http://www.computecanada.ca
More information about the slurm-users
mailing list