locked
MPI Code Works in Ubuntu but not in Windows? RRS feed

  • Question

  • Hi,

    I have been having some issues running my very simple MPI code in Windows 7. I don't think it's my code because I tested in ubuntu and it worked perfectly fine. I got it to compile fine in Microsoft Visual Studio 2010 but when I go to invoke mpiexec in cmd the program output:

    mpiexec -n 2 MPI_TEST.exe

    and the output:

    Number of processes: 1
    My rank: 0
    Number of processes: 1
    My rank: 0

    Could someone help me figure out what is going on? I don't quite understand if it's my understanding of the way MPI works in Windows or my setup of OpenMPI in Windows is incorrect... I followed what many people had posted on setting up MPI in Windows and it seemed to work that far but isn't it supposed to come out as:

    Number of processes: 2
    My rank: 0
    Number of processes: 2
    My rank: 1

    ?

    I'm stumped. I tried using the cluster debugger within VS 2010 and it seems the program just runs for however many times "-n #" is given. Any help would be greatly appreciated. Thanks.


    Monday, July 2, 2012 1:27 PM

All replies

  • Hi,

    Could you please try MSMPI on Windows HPC Pack? This forum mainly provides supports for msmpi users.

    Michael

    Tuesday, July 3, 2012 7:06 PM