Related to https://bugs.schedmd.com/show_bug.cgi?id=12245, let's say we have a job that can work with any number of nodes that is a multiple of 20 between 20 and 400. The current solution is to use --nodes 20-400 and then shrink the job down to the nearest multiple of 20. But this is probably working against the Slurm scheduler, as it doesn't know that the job is going to relinquish some of the nodes and will have to re-evaluate other jobs in the queue when those extra nodes are released. It would be ideal to extend --nodes to support this with a list of acceptable values, e.g.: --nodes 20,40,60,80. The use case above could then be easily solved programmatically: $ sbatch --nodes $(seq -s, 20 20 400) run.sub
Felix - I wanted to double-check on a couple of implementation details as we get this wrapped up for 23.02. After some back-and-forth, what we're planning to land looks exactly like the original request - a way to specify the desired multiplier - but is slightly different than what was outlined in the SoW. So the proposed syntax looks like: --nodes=20-400:20 (20 to 400 nodes, must be in multiples of 20) Is that sufficient to cover this use case, or do you still foresee some reason why you'd want to specify a list of values? thanks, - Tim
Hi Tim, We still have a use case for specifying a list of values, for example in the case where not all multiples of 20 are valid configs for the application.
Hi The requested feature was added to the master branch and will be included in 23.02. The allowed syntax is '--nodes 20,40,60,80' and '--nodes 20-81:20'. Please let me know if you have any questions. Dominik
Hi 23.02 is already released. Do you have any questions or concerns? If not, maybe we could close this ticket. Dominik
LGTM, thanks!
Apologies, I didn't realize the bug was still open. I was under the impression that usually the RFE bugs are closed as soon as the code lands on the master branch, but that was not the case here.