[slurm-users] Re: Background tasks in Slurm scripts?

2024-07-26 Thread Brian Andrus via slurm-users
Generally speaking, when the batch script exits, slurm will clean up (ie kill) any stray processes. So, I would expect that executable to be killed at cleanup. Brian Andrus On 7/26/2024 2:45 AM, Steffen Grunewald via slurm-users wrote: On Fri, 2024-07-26 at 10:42:45 +0300, Slurm users wrote:

[slurm-users] Re: [ext] API - Specify GPUs

2024-07-26 Thread Hagdorn, Magnus Karl Moritz via slurm-users
On Fr, 2024-07-26 at 19:34 +, jpuerto--- via slurm-users wrote: > It does not seem that the REST API allows for folks to configure > their jobs to utilize GPUs, using the traditional methods. IE, there > does not appear to be an equivalent between the --gpus (or --gres) > flag on sbatch/srun an

[slurm-users] API - Specify GPUs

2024-07-26 Thread jpuerto--- via slurm-users
Good Afternoon All, It does not seem that the REST API allows for folks to configure their jobs to utilize GPUs, using the traditional methods. IE, there does not appear to be an equivalent between the --gpus (or --gres) flag on sbatch/srun and the REST API's job submission endpoint. Can anyone

[slurm-users] slurmd error: port already in use, resulting in slaves not being able to communicate with master slurmctld

2024-07-26 Thread Shooktija S N via slurm-users
Hi, I'm trying to set up a Slurm (version 22.05.8) cluster consisting of 3 nodes with these hostnames and local IP addresses: server1 - 10.36.17.152 server2 - 10.36.17.166 server3 - 10.36.17.132 I had scrambled together a minimum working example using these resources: https://github.com/SergioMEV

[slurm-users] Re: Background tasks in Slurm scripts?

2024-07-26 Thread Steffen Grunewald via slurm-users
On Fri, 2024-07-26 at 10:42:45 +0300, Slurm users wrote: > Good Morning; > > This is not a slurm issue. This is a default shell script feature. If you > want to wait to finish until all background processes, you should use wait > command after all. Thank you - I already knew this in principle, an

[slurm-users] Re: Background tasks in Slurm scripts?

2024-07-26 Thread mercan via slurm-users
Good Morning; This is not a slurm issue. This is a default shell script feature. If you want to wait to finish until all background processes, you should use wait command after all. Regards; C. Ahmet Mercan On 26.07.2024 10:23, Steffen Grunewald via slurm-users wrote: Good morning, yester

[slurm-users] Background tasks in Slurm scripts?

2024-07-26 Thread Steffen Grunewald via slurm-users
Good morning, yesterday I came across a Slurm (sbatch) script that, after doing some stuff in the foreground, runs another executable in the background - and doesn't "wait" for it to finish - literally the last line of the script is executable & (and that executable is supposed to take several 1