Skip to content

Commit 46f32e3

Browse files
authored
Fix threads per core when submitting to queue (#618)
1 parent a532b9d commit 46f32e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

executorlib/cache/queue_spawner.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,10 @@ def execute_with_pysqa(
5858
}
5959
if "cwd" in resource_dict:
6060
del resource_dict["cwd"]
61+
if "threads_per_core" in resource_dict:
62+
resource_dict["cores"] *= resource_dict["threads_per_core"]
63+
del resource_dict["threads_per_core"]
6164
unsupported_keys = [
62-
"threads_per_core",
6365
"gpus_per_core",
6466
"openmpi_oversubscribe",
6567
"slurm_cmd_args",

0 commit comments

Comments
 (0)