We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f2f3d0 commit 6bde766Copy full SHA for 6bde766
1 file changed
firehpc/load.py
@@ -158,7 +158,7 @@ def _get_partition_gpus(self, partition):
158
gres = gres.split(":")
159
if gres[0] != "gpu":
160
continue
161
- result += int(gres[2])
+ result += int(gres[-1])
162
except json.decoder.JSONDecodeError as err:
163
raise FireHPCRuntimeError(
164
f"Unable to retrieve nodes from cluster {self.cluster.name}: {str(err)}"
0 commit comments