wlandau / crew.cluster

crew launcher plugins for traditional high-performance computing clusters
https://wlandau.github.io/crew.cluster
Other
26 stars 9 forks source link

sbatch: error: Invalid --mem-per-cpu specification with slurm_memory_gigabytes_per_cpu = 1.5 #22

Closed kendonB closed 1 year ago

kendonB commented 1 year ago

Prework

Description

When using crew_controller_slurm(..., slurm_memory_gigabytes_per_cpu = 1.5, ...) I get the error:

sbatch: error: Invalid --mem-per-cpu specification

It seems to be related to having the decimal GBs. Perhaps you could just change it in the background to use #SBATCH --mem-per-cpu=3072M and round to the nearest integer?

Diagnostic information

 crew           0.4.1      2023-09-07 [1] Github (wlandau/crew@948c339)
 crew.cluster * 0.1.1.9001 2023-08-08 [1] Github (wlandau/crew.cluster@5bb4dea)

08:28:17 mahuika01 ~ $ sinfo -o %v
VERSION
23.02.2
wlandau commented 1 year ago

Please let me know if 5817accdbc12bd9e463f51f757c53deb3e364eb6 doesn't work.