Skip to content

Commit 55d912f

Browse files
authored
get rid of old libmpi fix (#269)
1 parent bc876b4 commit 55d912f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

charm4py/charm.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,17 +118,6 @@ def __init__(self):
118118
self.options.interactive = Options()
119119
self.options.interactive.verbose = 1
120120
self.options.interactive.broadcast_imports = True
121-
122-
if 'OMPI_COMM_WORLD_SIZE' in os.environ:
123-
# this is needed for OpenMPI, see:
124-
# https://svn.open-mpi.org/trac/ompi/wiki/Linkers
125-
import ctypes
126-
try:
127-
self.__libmpi__ = ctypes.CDLL('libmpi.so', mode=ctypes.RTLD_GLOBAL)
128-
except OSError:
129-
# For IBM's Spectrum MPI, which is based on Open MPI, but renames the library
130-
self.__libmpi__ = ctypes.CDLL('libmpi_ibm.so', mode=ctypes.RTLD_GLOBAL)
131-
132121
self.lib = load_charm_library(self)
133122
self.ReducerType = self.lib.ReducerType
134123
self.CkContributeToChare = self.lib.CkContributeToChare

0 commit comments

Comments
 (0)