PTL logo

From: Jo Shields (jo.shields_at_[hidden])
Date: 2009-12-08 03:55:22


On Tue, 2009-12-08 at 08:20 +0200, Hasan Kıvrak wrote:
> Did you add mpi.dll as references to your project?(C:\Program Files
> \MPI.NET\Lib\MPI.dll)?
>
>
>
> ______________________________________________________________________
> Date: Mon, 7 Dec 2009 17:11:12 -0300
> From: misterdmf_at_[hidden]
> To: mpi.net_at_[hidden]
> Subject: [MPI.NET] Error trying to run a HelloWorld
>
> When I run: mono Hello.exe or mpirun Hello.exe
> The following error occurs:
> Unhandled Exception: System.TypeInitializationException: An exception
> was thrown by the type initializer for MPI.Unsafe --->
> System.DllNotFoundException: mpinet
> at (wrapper managed-to-native) MPI.Unsafe:mpinet_MPI_COMM_WORLD ()
> at MPI.Unsafe..cctor () [0x00000]
> --- End of inner exception stack trace ---
> at MPI.Environment..ctor (System.String[]& args) [0x00000]
> at Hello.Main (System.String[] args) [0x00000]

Standard gluelib issues. libmpinet.so.0 is not being picked up by the
mono runtime. One of the following is at fault:

* Ensure libmpinet.so.0 is installed in a system-readable folder such
as /usr/local/lib, and that you have run "ldconfig" to refresh the
visible systemwide libs
* Alternatively, ensure libmpinet.so.0 is in the application's execution
folder, or is in the same folder that MPI.dll is in if you installed
MPI.dll into the GAC
* Ensure that libmpinet.so.0 is a valid symlink to the exact version of
libmpinet.so.0.x.x appropriate for your build, that the library is built
for the correct CPU architecture, and that all its dependencies are
found by the LD linker (try "ldd libmpinet.so.0.0.6" and look for "not
found" lines)