Assuming all node need to run the same task once...
How about -n num_of_nodes --ntasks-per-node=1 ?
Otherwise if it is more deployment related I would use ansible to do that.
S. Zhang
On 2025/02/19 2:37, John Hearns via slurm-users wrote:
I am running single node tests on a cluster.
I can select named nodes using the -2 flag with sbatch.
However - if I want to submit perhaps 20 test jobs is there any smart
way to run only one time on a node?
I know I could touch a file with the hostname and test for that file.
I am just wondering if there is a smarter way to do this.\
I should point out that the tests take a few minutes to run, so if a
node finishes a test run it could become idle and run the tests again.
--
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com