Skip to content

Commit

Permalink
Back to auto number of processes
Browse files Browse the repository at this point in the history
  • Loading branch information
sigurdp committed Oct 13, 2023
1 parent 2059820 commit df78869
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ async def calc_surf_isec_multiprocess(

# Note that the default number of processes is os.cpu_count()
# Try to use twice as many processes as there are cores
processes = 2*os.cpu_count()
# Unclear if this has a positive effect or not??
#processes = 2*os.cpu_count()
processes = None
print(f"{myprefix} trying to use {processes=} ({os.cpu_count()=})", flush=True)

with multiprocessing.Pool(processes=processes, initializer=init_access_and_fence, initargs=(access_token, case_uuid, ensemble_name, fence_arr)) as pool:
Expand Down

0 comments on commit df78869

Please sign in to comment.