PTL logo

From: Stuart Fraser (stuart_at_[hidden])
Date: 2009-10-01 18:01:33


Hope some out there can help?!?

I am trying to build the MPI.Net bindings on Mono on both OS X 10.6
(Snow Leopard), I am using the MPICH2 C libraries as the underlying

Eventually I can apparently get the MPI.dll to compile after applying the
patches previously listed, although the perl script patch is
forbidden so I ran that by hand adding the /usr/local/lib/mpi.h as a second
I can then install this into the gac using the gacutil tool
as shown : stuart$ gacutil -l | grep MPI
MPI, Version=, Culture=neutral, PublicKeyToken=29b4a045737654fe
MPIUtils, Version=, Culture=neutral, PublicKeyToken=e35b242c18c115bc

Obviously I would like to get the Version for MPI to be correct ?!? But more
importantly if I try to run one of the Example executables the library fails
with the following error:

sf-mbp:PingPong stuart$ mono PingPong.exe

Unhandled Exception: System.DllNotFoundException: mpich
  at (wrapper managed-to-native) MPI.Unsafe:MPI_Initialized (int&)
  at MPI.Environment.get_Initialized () [0x00000]
  at MPI.Environment..ctor (System.String[]& args, Threading threading)
  at MPI.Environment..ctor (System.String[]& args) [0x00000]
  at PingPong.Main (System.String[] args) [0x00000]

So I am not sure if there is a way to hardcode that the actual libmpich2
library is in Œ/usr/local/lib¹ or if there is something seriously wrong in
my build process? (am I missing a crucial environment variable?!)


Stuart Fraser
e: stuart_at_[hidden]