cea-hpc / pcocc

Run VMs on an HPC cluster
GNU General Public License v3.0
47 stars 14 forks source link

Add MinMemoryCPU case for memory in GiB #13

Closed martijnkruiten closed 5 years ago

martijnkruiten commented 5 years ago

When trying to launch a job I get the following error message:

(pcocc/6795629) [odf1@tcn179 ~]$ Failed to read memory per core

Looking at the code I realized the error: there is no detection mechanism for MinMemoryCPU in GiB, but Slurm does report in GiB in this case:

[odf1@tcn179 ~]$ scontrol show job 6780602 | grep -i mem
   RunTime=2-05:38:01 TimeLimit=3-23:35:00 TimeMin=N/A
   TRES=cpu=1,mem=8G,node=1
   MinCPUsNode=1 MinMemoryCPU=8G MinTmpDiskNode=0
fdiakh commented 5 years ago

Hi,

Thank you for the bug report, I've applied your patch !