From b535ad535c96d959288351068e95f307125819c7 Mon Sep 17 00:00:00 2001 From: Lourens Veen Date: Fri, 21 Jun 2024 13:44:45 +0200 Subject: [PATCH] Fix crash on hyperthreaded SLURM clusters (#250) --- libmuscle/python/libmuscle/manager/qcgpj_instantiator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmuscle/python/libmuscle/manager/qcgpj_instantiator.py b/libmuscle/python/libmuscle/manager/qcgpj_instantiator.py index 7f9e96b5..9b5836d4 100644 --- a/libmuscle/python/libmuscle/manager/qcgpj_instantiator.py +++ b/libmuscle/python/libmuscle/manager/qcgpj_instantiator.py @@ -209,7 +209,7 @@ def _send_resources(self) -> None: """Converts and sends QCG available resources.""" resources = Resources() for node in self._qcg_resources.nodes: - resources.cores[node.name] = set(map(int, node.free_ids)) + resources.cores[node.name] = {int(n.split(',')[0]) for n in node.free_ids} self._resources_out.put(resources)