C#, MPI, and VS2008 trouble RRS feed

  • Question

  • I found a simple program that is basically a hello world! program for C# in VS2008.

    I am trying to submit this job to my cluster using mpiexec -n 10 MPIHello.exe. on the HPC Job Manager and I am currently getting this error.

    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'MPI, Version=, Culture=neutral, PublicKeyToken=29b4a045737654fe' or one of its dependencies. The system cannot find the file specified.
    File name: 'MPI, Version=, Culture=neutral, PublicKeyToken=29b4a045737654fe'
       at MPIHello.Program.Main(String[] args)

    I am executing the program as a release version and I added the MPI.NET reference into VS2008 by the tutorial I found here.


    I submitted a simple hello program using just C# with no problems which leads me to believe that I am missing a couple configuration steps.

    Any help with my problem would be appreciated.

    AJ Fret
    Wednesday, June 10, 2009 8:04 PM


  • Hi AJ,

    make sure the mpi.net runtime is available on each of the nodes.   You can do this by:

    clusrun msiexec.exe /quiet /i“\\Installers\MPI.NET Runtime.msi”

    copy your program to the nodes (or put on a share), and then submit a job:

    C:\>job submit /stdout:\\mpi.net\out.txt /stderr:\\mpi.net\err.txt /numprocessors:48  mpiexec C:\PingPong\PingPong.exe

    Pls see the tutorial in the Word file for detailed steps.

    Also, check out http://paralleldwarfs.codeplex.com for lots of examples w boost mpi and mpi.net.
    • Marked as answer by Don Pattee Wednesday, December 9, 2009 6:30 AM
    Saturday, June 13, 2009 8:03 AM