Bugfix: incorrect access to bind_to_core arg

This commit is contained in:
Dominik Moritz Roth 2023-09-02 21:07:50 +02:00
parent bc698fec54
commit ff5b79feaf

View File

@ -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'<Press enter to submit {num_jobs} to slurm>')
input(f'<Press enter to submit {num_jobs} job(s) to slurm>')
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: