none
MS-MPI mpiexec error - Can't run MSMPI program RRS feed

  • Question

  • Hello.

    I have successfully setup Visual Studio to recognize the include and lib directory for HPC (using HPC redistributable 2012) and i have added the msmpi library to the linker input. Long story short, everything works, except for when i run an MPI Hello World program with mpiexec (which runs perfectly on Linux same machine with MPICH).

    I have Windows 8.1 x86_64. My MPI project on Visual Studio 2015 community is 64bit Release Configuration. When i run mpiexec -n 8 programName.exe i get the following output.

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2652 error 1722


    job aborted:
    [ranks] message

    [7] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2653 error 1722

    job aborted:
    [ranks] message

    [6] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2654 error 1722

    job aborted:
    [ranks] message

    [5] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2655 error 1722

    job aborted:
    [ranks] message

    [4] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2656 error 1722

    job aborted:
    [ranks] message

    [3] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2657 error 1722

    job aborted:
    [ranks] message

    [2] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2658 error 1722

    job aborted:
    [ranks] message

    [1] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)

    Aborting: mpi appplication on ADMIN is unable to connect to the smpd manager on (null):2659 error 1722

    job aborted:
    [ranks] message

    [0] fatal error
    Fatal error in MPI_Init: Other MPI error, error stack:
    MPI_Init(argc_p=0x0000000000000000, argv_p=0x0000000000000000) failed
    The RPC server is unavailable.  (errno 1722)


    I have also tried launching the parallel manager smpd, by running smpd -d, but i believe this is only for servers and is not needed (it didn't make a difference).

    I installed the HPC 2012 redistributable pack (4MB version). I don't think i need to install the full pack which is for SERVER pcs and for Windows server OS. Serial execution (1 core only) works normally in VS. Do i need any other software to run MSMPI that i haven't installed?

    What am i doing wrong? 

    Thanks in advance.

    Monday, July 31, 2017 8:43 AM

Answers

  • I solved the problem. I originally did download the latest MS-MPI version 8.1. However this version did not include the include directory and the libraries. Therefore i found this older version (2012) which included them. So what i did now is:

    1. kept the include directories and the libraries of the old MS-MPI version and then uninstalled it

    2. Installed the new version MS-MPI v8.1

    Now everything works. I can build and link Visual Studio and run it from the command line with mpiexec (the executable of the newest version of course). 

    Why don't you include these? The "include" and "lib" directories anymore?

    Anyway. Problem fixed. Thanks.

    • Marked as answer by KeyC0de Friday, May 4, 2018 1:01 AM
    Tuesday, August 1, 2017 3:54 AM

All replies

  • Hi Nik-Lz,

    For the local scenario of running mpi you’re correct that you won’t need to run smpd -d?

    You mentioned that you were using HPC Pack 2012  – which probably came with an older version of MS-MPI (you can check the version of MS-MPI by running mpiexec -help and look at the first line of output). I would recommend updating to MS-MPI version 8.1 (you can get the download link from our homepage https://msdn.microsoft.com/en-us/library/bb524831(v=vs.85).aspx

    You will want to stop the msmpi service (open an admin console windows and type “net stop msmpi”) before installing the new MS-MPI version, the installation process will ask you to confirm the uninstallation of the existing MS-MPI that came with HPC Pack 2012. If after installing the new version of MS-MPI and you still have the same issue, it would be very helpful if you can attach a debug log of running mpiexec by adding the -d 3 flag to the command line of mpiexec. I.e., mpiexec -d 3 -n 8  programName.exe

    Thanks

    Anh

    Monday, July 31, 2017 6:48 PM
  • I solved the problem. I originally did download the latest MS-MPI version 8.1. However this version did not include the include directory and the libraries. Therefore i found this older version (2012) which included them. So what i did now is:

    1. kept the include directories and the libraries of the old MS-MPI version and then uninstalled it

    2. Installed the new version MS-MPI v8.1

    Now everything works. I can build and link Visual Studio and run it from the command line with mpiexec (the executable of the newest version of course). 

    Why don't you include these? The "include" and "lib" directories anymore?

    Anyway. Problem fixed. Thanks.

    • Marked as answer by KeyC0de Friday, May 4, 2018 1:01 AM
    Tuesday, August 1, 2017 3:54 AM
  • Hi Nik-Lz,

    The header files ("include") and the lib's are part of the SDK now. We've split the redistributable package and the SDK into two separate downloads. When you click on the MS-MPI download, there are two check boxes, one for the MSMPISetup.exe and one for the msmpisdk.msi. I don't remember on top of my head the new API's that we have added since HPC Pack 2012, perhaps some of the non-blocking collectives that are part of MPI-3.0 standard. If you are planning on using these new API's, I would recommend that you download and install the msmpisdk.msi to replace the HPC Pack 2012 SDK.

    Anh

    Tuesday, August 1, 2017 5:04 AM