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. is not being picked up by the
mono runtime. One of the following is at fault:

* Ensure 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 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 is a valid symlink to the exact version of 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" and look for "not
found" lines)