From ff5b79feaf9152faa1aa634c67cc0ad38b478518 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 2 Sep 2023 21:07:50 +0200 Subject: [PATCH] Bugfix: incorrect access to bind_to_core arg --- slate/slate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 5596927..f4db382 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -234,7 +234,7 @@ class Slate(): array = f'0-{last_job_idx}%{num_parallel_jobs}' job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC) if self.verify: - input(f'') + input(f'') job_id = job.submit() print(f'[>] Job submitted to slurm with id {job_id}') with open('job_hist.log', 'a') as f: @@ -297,7 +297,7 @@ class Slate(): Runner = self.runners[runnerName] - if orig_config.consume('scheduler.bind_agent_to_core', False): + if self.consume(orig_config, 'scheduler.bind_agent_to_core', False): os.sched_setaffinity(0, [p_ind % os.cpu_count()]) for r in rep_ids: