On 17 September 2015 at 18:56, Jeff Squyres (jsquyres) <jsquy...@cisco.com> wrote: > On Sep 17, 2015, at 11:44 AM, Joel Hermanns <joel.herma...@gmail.com> wrote: >> >> Thanks for the quick answer! > > Be sure to see Nick's answer, too -- mpi4py is a nice package. > >> I have a few questions now: >> >> 1. Are there any downsides of using —disable-dlopen? > > You won't be able to add or remove plugins in the filesystem after you do the > Open MPI installation. But that's a pretty unusual thing to do, so I > wouldn't worry about it. > >> 2. Are there any other options? We might not be able to change MPI >> installation, when this is running on a supercomputer. > > I'm not super familiar with Python and its extension capabilities -- Nick's > email implies that there's a different way to solve the problem, and I > confess to not remembering what mpi4py does, offhand. >
mpi4py just calls dlopen("libmpi.so", RTLD_NOW | RTLD_GLOBAL | RTLD_NOLOAD); before calling MPI_Init(), see the code below: https://bitbucket.org/mpi4py/mpi4py/src/master/src/lib-mpi/compat/openmpi.h?fileviewer=file-view-default#openmpi.h-52 -- Lisandro Dalcin ============ Research Scientist Computer, Electrical and Mathematical Sciences & Engineering (CEMSE) Numerical Porous Media Center (NumPor) King Abdullah University of Science and Technology (KAUST) http://numpor.kaust.edu.sa/ 4700 King Abdullah University of Science and Technology al-Khawarizmi Bldg (Bldg 1), Office # 4332 Thuwal 23955-6900, Kingdom of Saudi Arabia http://www.kaust.edu.sa Office Phone: +966 12 808-0459