Bugfix: incorrect access to bind_to_core arg
This commit is contained in:
parent
bc698fec54
commit
ff5b79feaf
@ -234,7 +234,7 @@ class Slate():
|
|||||||
array = f'0-{last_job_idx}%{num_parallel_jobs}'
|
array = f'0-{last_job_idx}%{num_parallel_jobs}'
|
||||||
job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC)
|
job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC)
|
||||||
if self.verify:
|
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()
|
job_id = job.submit()
|
||||||
print(f'[>] Job submitted to slurm with id {job_id}')
|
print(f'[>] Job submitted to slurm with id {job_id}')
|
||||||
with open('job_hist.log', 'a') as f:
|
with open('job_hist.log', 'a') as f:
|
||||||
@ -297,7 +297,7 @@ class Slate():
|
|||||||
|
|
||||||
Runner = self.runners[runnerName]
|
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()])
|
os.sched_setaffinity(0, [p_ind % os.cpu_count()])
|
||||||
|
|
||||||
for r in rep_ids:
|
for r in rep_ids:
|
||||||
|
Loading…
Reference in New Issue
Block a user