[slurm-users] calculate license tokens from cpus

Mark Hahn hahn at mcmaster.ca
Tue Oct 29 12:54:43 UTC 2019


> #SBATCH -L [ here I would like to calculate it like (    perl -e  "int $SLURM_NTASKS * 0.422 * 5 "  )  ]

I think a calculation like this needs to take place in the job_submit.lua.
So you decide on a way for users to signal that they want this behavior,
(partition, gre?) and that script calculates and sets the --licenses.

> I would like to expose user to slurm as much
> as possible, and use scripts as little as possible.

Well, that exposes it to a lot of error and possibly abuse.

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