Slurm allows to pass things like --gres=gpu, which in this case the default value will be just one. However, the char gres value also really just contains "gres:gpu" when displayed via scontrol, with no indication of the count. The code previously assumed that Slurm internally modifies the char explicitly to reflect the default count of 1.
Slurm allows to pass things like --gres=gpu, which in this case the default value will be just one. However, the char gres value also really just contains "gres:gpu" when displayed via scontrol, with no indication of the count. The code previously assumed that Slurm internally modifies the char explicitly to reflect the default count of 1.
Fixes #333