Skip to content

Commit

Permalink
docs: add comment on why maxtasksperchild is set
Browse files Browse the repository at this point in the history
  • Loading branch information
s-bessey committed Oct 28, 2020
1 parent 59abad9 commit b4d3ec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion run_titan.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ def main(
tic = time_mod.time()
wct = [] # wall clock times

with Pool(processes=NCORES, maxtasksperchild=1) as pool:
with Pool(
processes=NCORES, maxtasksperchild=1
) as pool: # set max tasks/child to prevent processor drift
results = [
pool.apply_async(
single_run, (sweep_def, outfile_dir, params, save_pop, pop_path)
Expand Down

0 comments on commit b4d3ec5

Please sign in to comment.