Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport PR #4875 on branch stable (BUG: create duplicate of MPI communicator, to avoid double comm.Free) #4886

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion yt/utilities/parallel_tools/parallel_analysis_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def enable_parallelism(suppress_logging=False, communicator=None):

# if no communicator specified, set to COMM_WORLD
if communicator is None:
communicator = MPI.COMM_WORLD
communicator = MPI.COMM_WORLD.Dup()
else:
communicator = communicator.Dup()

parallel_capable = communicator.size > 1
if not parallel_capable:
Expand Down
Loading