Re: [OMPI users] Dynamic loading of libmpi.dylib on Mac OS X

2006-09-22 Thread Brian Barrett
Brian - Sorry for the slow reply, I've been on vacation for a while and am still digging out from all the back e-mail. Anyway, that makes sense. Open MPI's default build mode is to dlopen() the driver components needed for things like the various interconnects and process starters we support. S

Re: [OMPI users] Dynamic loading of libmpi.dylib on Mac OS X

2006-09-08 Thread Brian E Granger
Brian, I think I have figured this one out. By default ctypes calls dlopen with mode = RTLD_LOCAL (except on Mac OS 10.3). When I instruct ctypes to set mode = RTLD_GLOBAL it works fine on 10.4. Based on the dlopen man page: RTLD_GLOBAL Symbols exported from this image (dynamic

Re: [OMPI users] Dynamic loading of libmpi.dylib on Mac OS X

2006-09-06 Thread Brian Barrett
Thanks for the information. I've filed a bug in our bug tracker on this issue. It appears that for some reason, when libmpi is dlopened() by python, that objects it then dlopens are not able to find symbols in the libmpi. It will probably take me a bit of time to track this issue down, but you w

Re: [OMPI users] Dynamic loading of libmpi.dylib on Mac OS X

2006-08-31 Thread Brian E Granger
Brian, Sure, but my example will probably seem a little odd. I am calling the mpi shared library from Python using ctypes. The dependencies for doing things this way are: 1. Python built with --enable-shared 2. The ctypes python package 3. OpenMPI configured with --enable-shared Once you h

Re: [OMPI users] Dynamic loading of libmpi.dylib on Mac OS X

2006-08-31 Thread Brian Barrett
This is quite strange, and we're having some trouble figuring out exactly why the opening is failing. Do you have a (somewhat?) easy list of instructions so that I can try to reproduce this? Thanks, Brian On Tue, 2006-08-22 at 20:58 -0600, Brian Granger wrote: > HI, > > I am trying to dynamica