title: Microsoft MPI doesn't run
body: <p>I'm trying out Microsoft's implementation of MPI. I installed the CCP sdk from here: </p>
  
  <p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=239" rel="nofollow noreferrer">http://www.microsoft.com/en-us/download/details.aspx?id=239</a></p>
  
  <p>And then in my project settings I added the include folder, the lib folder and mentioned msmpi.lib.</p>
  
  <p>With the remaining settings as-is, I build the program and then in the command prompt I proceed to run the program, but nothing happens after I start it up.</p>
  
  <p>Here's the code (It's supposed to display the id numbers for each thread):</p>
  
  <pre><code>#include "stdafx.h"
  #include "mpi.h"
  #include &lt;stdio.h&gt;
  
  //Commands in cmd prompt
  //cd "C:\Program Files\Microsoft Compute Cluster Pack\Bin"
  //mpiexec.exe -n 2 "C:\Users\MyNameHere\Documents\Visual Studio 2012\Projects\tspMpi\Debug\tspMpi.exe"
  
  int main(int argc, char* argv[]) 
  {
   int  nTasks = 0, rank = 0; 
  
   MPI_Init(&amp;argc,&amp;argv); 
   MPI_Comm_size(MPI_COMM_WORLD,&amp;nTasks);
   MPI_Comm_rank(MPI_COMM_WORLD,&amp;rank);
  
   printf ("Number of threads = %d, My rank = %d\n", nTasks, rank);
  
  
    return 0;
   MPI_Finalize();
  }
  </code></pre>
  
  <p>As soon as I run mpiexec.exe (the commands are in the comments) the program just does nothing, until I press Ctrl-C. Does anyone know what I'm doing wrong? There are no errors when I build the program, and if I run it from visual studio, it acts as if there was only one process started up.</p>