[slurm-users] calculate license tokens from cpus

Oytun Peksel Oytun.Peksel at semcon.com
Tue Oct 29 13:32:53 UTC 2019

Thanks for the tip Mark it looks quite useful for my purposes.

I am setting this up for a small intimate group so abuse is a non issue and I want everyone to be responsible for maintenance.

Oytun Peksel
oytun.peksel at semcon.com
Mobile   +46739205917

-----Original Message-----
From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Mark Hahn
Sent: den 29 oktober 2019 13:55
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] calculate license tokens from cpus

> #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.

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

When you communicate with us or otherwise interact with Semcon, we will process personal data that you provide to us or we collect about you, please read more in our Privacy Policy<https://semcon.com/data-privacy-policy/>.

More information about the slurm-users mailing list