[slurm-users] calculate license tokens from cpus
Oytun Peksel
Oytun.Peksel at semcon.com
Tue Oct 29 12:24:04 UTC 2019
Hi,
I would like to use a sbatch script with a license request using -L. However I would like to calculate the license necessary from the cpus that is being requested.
Ex:
#SBATCH -N 1
#SBATCH --ntasks=2
#SBATCH -L [ here I would like to calculate it like ( perl -e "int $SLURM_NTASKS * 0.422 * 5 " ) ]
However environmental variables within sbatch lines are not allowed. I could not find the output environmental variable to set the license usage externally.
I like the sbtach scripts for job submission. I don't want to wrap the job submission process in scripts. I would like to expose user to slurm as much as possible, and use scripts as little as possible.
Any way to do this kind of thing?
Oytun Peksel
Eng
Simulation & Digital Twins
Semcon Sweden AB
Lindholmsallén 2
417 80 GÖTEBORG
Sweden
Phone
+46739205917
Mobile
+46739205917
E-mail
oytun.peksel at semcon.com <mailto:oytun.peksel at semcon.com>
www.semcon.com<http://www.semcon.com>
Follow us: LINKEDIN<https://www.linkedin.com/company/semcon> FACEBOOK<https://www.facebook.com/semcon> TWITTER<https://twitter.com/Semcon> YOUTUBE<https://www.youtube.com/user/SemconGlobal> INSTAGRAM<https://www.instagram.com/semcon>
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/>.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20191029/42e917f1/attachment.htm>
More information about the slurm-users
mailing list