Skip to content

Commit

Permalink
Remove explicit MPI init and final
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirif committed Feb 21, 2017
1 parent bd8d506 commit 73b63f6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions platoon/channel/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
import zmq

try:
from mpi4py import rc
rc.initialize = False
from mpi4py import MPI
except ImportError:
MPI = None
Expand Down Expand Up @@ -315,9 +313,6 @@ def serve(self):
except Exception as exc:
print(PlatoonError("Unexpected exception", exc), file=sys.stderr)
self._clean()
else:
if self._multinode and MPI:
MPI.Finalize()
finally: # Close sockets and unlink for shared memory
self._close()
return self._success
Expand Down Expand Up @@ -352,7 +347,6 @@ def _init_region_comm(self):
"""
if MPI is None:
raise AttributeError("mpi4py is not imported")
MPI.Init()
self._region_comm = MPI.COMM_WORLD
self._region_size = MPI.COMM_WORLD.Get_size()
self._region_rank = MPI.COMM_WORLD.Get_rank()
Expand Down

0 comments on commit 73b63f6

Please sign in to comment.