← Back to team overview

dolfin team mailing list archive

Re: Buildbot status

 

On Tuesday January 24 2012 18:52:52 Johannes Ring wrote:
> On Tue, Jan 24, 2012 at 2:13 PM, Johan Hake <johan.hake@xxxxxxxxx> wrote:
> >> I successfully got Dorsal to build 'petsc' on OS X yesterday, although
> >> I had to install OpenMPI from MacPorts, which resulted in a lot of
> >> other packages that had to be rebuilt. This was all successful and
> >> DOLFIN built fine, however the tests failed to run on the buildbot:
> >> 
> >> 
> >> http://fenicsproject.org:8090/builders/dolfin-osx-10.6/builds/79/steps/d
> >> ol fin%20check/logs/stdio
> >> 
> >> I found that the problem lies in
> >> site-packages/dolfin/importhandler/dynamicloadmpi.py, where we force
> >> load libmpi.0.dylib, the system installed OpenMPI library, and not the
> >> one installed by MacPorts, which is libmpi.1.dylib. There are symlinks
> >> to these in /usr/lib and /opt/local/lib, respectively, so in theory we
> >> should be able to replace libmpi.0.dylib with libmpi.dylib in
> >> dynamicloadmpi.py. However, it turns out that the stuff in
> >> dynamicloadmpi.py is not needed on OS X. In fact, it has never been
> >> used on Lion since Lion doesn't come with any OpenMPI compilers and
> >> there is therefore no libmpi.0.dylib available (only libmpi.1.dylib
> >> from MacPorts).
> >> 
> >> I have tested this on both of the OS X buildbots and I suggest we
> >> replace the code in dynamicloadmpi.py with this:
> >> 
> >>   import ctypes
> >>   ctypes.CDLL('libmpi.so', ctypes.RTLD_GLOBAL)
> >> 
> >> Doing so should result in one more green buildbot (osx-10.6). Any
> >> objections before I push?
> > 
> > Sounds good. Maybe you can add some:
> > 
> >  # NOTE: Bla bla
> > 
> > about this to that file?
> 
> Done.

Cool, but does it not:

  ctypes.CDLL('libmpi.so', ctypes.RTLD_GLOBAL)

crash on darwin? Should it not be in some if clause?

Johan
 
> Johannes
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References