Search code examples
visual-studiovisual-c++mpims-mpi

MS MPI does not execute MPI program


I have used MS MPI to develop an MPI program. The program is tested and it works fine.

When I try to run the program in cmd using the following command:

mpiexec -n 4 a.exe

the console hangs and it does not execute the program. If I try to interrupt using Ctrl+C, the message mpiexec aborting job... appears and nothing exits until I manually kill smpd.exe.
I use MS Windows 7 64bit. The same problem appears when using another machine with this OS. However, everything works fine on a MS Windows 10 machine.
I'd appreciate any clue to the problem.


Solution

  • The problem is using the latest version of MS MPI runtime which is v9 at the time of writing. I installed the previous version (i.e. v8) and everything worked fine.