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.