Using Windows HPC MPI from c++ in SUA?Hello,<br><br>I am trying to use the Windows HPC MPI library from c++ using windows SUA.<br>So i am pretty new to this<br><br>Here is my simple c++ example:<br><br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:gray">#include &lt;iostream&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">using</font><font style="font-size:11px"> </font><font style="color:blue">namespace</font><font style="font-size:11px"> std; </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">int</font><font style="font-size:11px"> main(){ </font></td></tr><tr><td>   cout &lt;&lt; <font style="color:blue">&quot;Hello World!\n&quot;</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">   <font style="color:blue">return</font><font style="font-size:11px"> 0 </font></td></tr><tr><td>} </td></tr></tbody></table></div><br><br>Compiled and ran it like this:<br><br><br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o main.exe main.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$./main.exe </td></tr><tr><td>Hello World! </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br>All looking good so far. <br><br>Now i want to include the mpi.h, here is my simple example:<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:gray">#include &lt;stdlib.h&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:gray">#include &lt;iostream&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td><font style="color:gray">#include &lt;mpi.h&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td><font style="color:blue">using</font><font style="font-size:11px"> </font><font style="color:blue">namespace</font><font style="font-size:11px"> std; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td><font style="color:blue">static</font><font style="font-size:11px"> </font><font style="color:blue">int</font><font style="font-size:11px"> mypid;       </font><font style="color:green">// PID of *this* node</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">static</font><font style="font-size:11px"> </font><font style="color:blue">int</font><font style="font-size:11px"> nnodes;      </font><font style="color:green">// number of nodes</font><font style="font-size:11px"> </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">int</font><font style="font-size:11px"> main(</font><font style="color:blue">int</font><font style="font-size:11px"> argc, </font><font style="color:blue">char</font><font style="font-size:11px"> *argv[]) </font></td></tr><tr><td>{ </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    cout &lt;&lt; <font style="color:blue">&quot;Starting...&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:green">// fire up MPI</font><font style="font-size:11px"> </font></td></tr><tr><td>    cout &lt;&lt; <font style="color:blue">&quot;call MPI_Init()..&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">    MPI_Init(&amp;argc, &amp;argv); </td></tr><tr><td>    MPI_Comm_rank(MPI_COMM_WORLD, &amp;mypid); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    MPI_Comm_size(MPI_COMM_WORLD, &amp;nnodes); </td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:green">// this test required two nodes</font><font style="font-size:11px"> </font></td></tr><tr><td>    cout &lt;&lt; <font style="color:blue">&quot;Rank &quot;</font><font style="font-size:11px"> &lt;&lt; mypid &lt;&lt; </font><font style="color:blue">&quot; of &quot;</font><font style="font-size:11px"> &lt;&lt; nnodes &lt;&lt; endl; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td>    <font style="color:green">// clean up and exit</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">    cout &lt;&lt; <font style="color:blue">&quot;Clean up and exit...&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td>    MPI_Finalize(); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:blue">return</font><font style="font-size:11px">(0); </font></td></tr><tr><td>} </td></tr></tbody></table></div><br><br><br><br><br>Now here is where i get confused, if i try to compile this i get this error:<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o simplempi.exe simplempi.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(7) : fatal error C1083: Cannot open </td></tr><tr><td> include file: 'mpi.h': No such file or directory </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br><br>Which is ok as there is not an mpi.h for SUA. Now i would like to use the HPC mpi.h.<br>I downloaded and installed the HPC SDK pack (now i get the header files i need)<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ ls -al  </font><font style="color:blue">&quot;/dev/fs/C/Program Files/Microsoft HPC Pack 2008 SDK/Include/&quot;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">total 312 </td></tr><tr><td>drwxrwx---+ 1 +SYSTEM  +SYSTEM      0 Oct  3 08:33 . </td></tr><tr><td style="background-color:rgb(247, 247, 247)">drwxrwx---+ 1 +SYSTEM  +SYSTEM   4096 Oct  3 08:33 .. </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  13674 Sep  2 15:12 job-v2.xsd </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM  47551 Sep 11 14:51 mpi.f90 </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  53132 Sep 11 14:51 mpi.h </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM  15750 Sep 11 14:51 mpif.h </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  18153 Sep 11 14:51 mpio.h </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM   6466 Sep  2 15:12 task-v2.xsd </td></tr><tr><td>bash-3.2$ </td></tr></tbody></table></div><br><br><br>I then tried to link these headers to my /usr/include (symbolic)  (Maybe this is where i am going wrong??)<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ ln -s </font><font style="color:blue">&quot;/dev/fs/C/Program Files/Microsoft HPC Pack 2008 SDK/Include/&quot;</font><font style="font-size:11px">* /usr/include/ </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr></tbody></table></div><br><br><br>Then tried to recompile, it attempts to load the mpi.h file but has trouble reading it.???<br>I tried mixed mode and g++/cc89/cc but without any luck<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o simplempi.exe simplempi.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">flip: /tmp/cc_tmp3_1117 <font style="color:blue">is</font><font style="font-size:11px"> a binary file, not converted </font></td></tr><tr><td>C:\Windows\SUA\usr\include\mpi.h(1) : error C2018: unknown character '0x1' </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Windows\SUA\usr\include\mpi.h(1) : error C2143: syntax error : missing ';' before '/' </td></tr><tr><td>C:\Windows\SUA\usr\include\mpi.h(1) : error C4430: missing type specifier - intassumed. Note: C++ does not support <font style="color:blue">default</font><font style="font-size:11px">-</font><font style="color:blue">int</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(16) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(16) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(19) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(19) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(20) : error C3861: 'MPI_Init': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(21) : error C2065: 'MPI_COMM_WORLD' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(21) : error C3861: 'MPI_Comm_rank': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(22) : error C2065: 'MPI_COMM_WORLD' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(22) : error C3861: 'MPI_Comm_size': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(25) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(25) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(28) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(28) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(29) : error C3861: 'MPI_Finalize':identifier not found </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br><br><br>So... I guess my question now is ,  is it possible?<br><br>Has anyone out there got an MPI example that works with  the windows mpi.h from SUA?<br>Can anyone see something wrong in the way i am approaching this problem?<br><br>Any help is very gratefully received!<br><br>Regards<br>Steven<br><br><br><br><br><br><br><br><br><br><br><br><br> <hr size=1 width="25%" align=left>sjj© 2009 Microsoft Corporation. All rights reserved.Thu, 02 Apr 2009 20:52:37 Zf1f5e6fd-b1b4-45ba-8d30-bf246adfe650http://social.microsoft.com/Forums/en-US/windowshpcinterop/thread/f1f5e6fd-b1b4-45ba-8d30-bf246adfe650#f1f5e6fd-b1b4-45ba-8d30-bf246adfe650http://social.microsoft.com/Forums/en-US/windowshpcinterop/thread/f1f5e6fd-b1b4-45ba-8d30-bf246adfe650#f1f5e6fd-b1b4-45ba-8d30-bf246adfe650sjj698http://social.microsoft.com/Profile/en-US/?user=sjj698Using Windows HPC MPI from c++ in SUA?Hello,<br><br>I am trying to use the Windows HPC MPI library from c++ using windows SUA.<br>So i am pretty new to this<br><br>Here is my simple c++ example:<br><br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:gray">#include &lt;iostream&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">using</font><font style="font-size:11px"> </font><font style="color:blue">namespace</font><font style="font-size:11px"> std; </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">int</font><font style="font-size:11px"> main(){ </font></td></tr><tr><td>   cout &lt;&lt; <font style="color:blue">&quot;Hello World!\n&quot;</font><font style="font-size:11px">; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">   <font style="color:blue">return</font><font style="font-size:11px"> 0 </font></td></tr><tr><td>} </td></tr></tbody></table></div><br><br>Compiled and ran it like this:<br><br><br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o main.exe main.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$./main.exe </td></tr><tr><td>Hello World! </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br>All looking good so far. <br><br>Now i want to include the mpi.h, here is my simple example:<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px"></font><font style="color:gray">#include &lt;stdlib.h&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:gray">#include &lt;iostream&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td><font style="color:gray">#include &lt;mpi.h&gt;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td><font style="color:blue">using</font><font style="font-size:11px"> </font><font style="color:blue">namespace</font><font style="font-size:11px"> std; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td><font style="color:blue">static</font><font style="font-size:11px"> </font><font style="color:blue">int</font><font style="font-size:11px"> mypid;       </font><font style="color:green">// PID of *this* node</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">static</font><font style="font-size:11px"> </font><font style="color:blue">int</font><font style="font-size:11px"> nnodes;      </font><font style="color:green">// number of nodes</font><font style="font-size:11px"> </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)"><font style="color:blue">int</font><font style="font-size:11px"> main(</font><font style="color:blue">int</font><font style="font-size:11px"> argc, </font><font style="color:blue">char</font><font style="font-size:11px"> *argv[]) </font></td></tr><tr><td>{ </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    cout &lt;&lt; <font style="color:blue">&quot;Starting...&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:green">// fire up MPI</font><font style="font-size:11px"> </font></td></tr><tr><td>    cout &lt;&lt; <font style="color:blue">&quot;call MPI_Init()..&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">    MPI_Init(&amp;argc, &amp;argv); </td></tr><tr><td>    MPI_Comm_rank(MPI_COMM_WORLD, &amp;mypid); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    MPI_Comm_size(MPI_COMM_WORLD, &amp;nnodes); </td></tr><tr><td> </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:green">// this test required two nodes</font><font style="font-size:11px"> </font></td></tr><tr><td>    cout &lt;&lt; <font style="color:blue">&quot;Rank &quot;</font><font style="font-size:11px"> &lt;&lt; mypid &lt;&lt; </font><font style="color:blue">&quot; of &quot;</font><font style="font-size:11px"> &lt;&lt; nnodes &lt;&lt; endl; </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr><tr><td>    <font style="color:green">// clean up and exit</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">    cout &lt;&lt; <font style="color:blue">&quot;Clean up and exit...&quot;</font><font style="font-size:11px"> &lt;&lt; endl; </font></td></tr><tr><td>    MPI_Finalize(); </td></tr><tr><td style="background-color:rgb(247, 247, 247)">    <font style="color:blue">return</font><font style="font-size:11px">(0); </font></td></tr><tr><td>} </td></tr></tbody></table></div><br><br><br><br><br>Now here is where i get confused, if i try to compile this i get this error:<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o simplempi.exe simplempi.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(7) : fatal error C1083: Cannot open </td></tr><tr><td> include file: 'mpi.h': No such file or directory </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br><br>Which is ok as there is not an mpi.h for SUA. Now i would like to use the HPC mpi.h.<br>I downloaded and installed the HPC SDK pack (now i get the header files i need)<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ ls -al  </font><font style="color:blue">&quot;/dev/fs/C/Program Files/Microsoft HPC Pack 2008 SDK/Include/&quot;</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">total 312 </td></tr><tr><td>drwxrwx---+ 1 +SYSTEM  +SYSTEM      0 Oct  3 08:33 . </td></tr><tr><td style="background-color:rgb(247, 247, 247)">drwxrwx---+ 1 +SYSTEM  +SYSTEM   4096 Oct  3 08:33 .. </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  13674 Sep  2 15:12 job-v2.xsd </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM  47551 Sep 11 14:51 mpi.f90 </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  53132 Sep 11 14:51 mpi.h </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM  15750 Sep 11 14:51 mpif.h </td></tr><tr><td>-rwxrwx---+ 1 +SYSTEM  +SYSTEM  18153 Sep 11 14:51 mpio.h </td></tr><tr><td style="background-color:rgb(247, 247, 247)">-rwxrwx---+ 1 +SYSTEM  +SYSTEM   6466 Sep  2 15:12 task-v2.xsd </td></tr><tr><td>bash-3.2$ </td></tr></tbody></table></div><br><br><br>I then tried to link these headers to my /usr/include (symbolic)  (Maybe this is where i am going wrong??)<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ ln -s </font><font style="color:blue">&quot;/dev/fs/C/Program Files/Microsoft HPC Pack 2008 SDK/Include/&quot;</font><font style="font-size:11px">* /usr/include/ </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)"> </td></tr></tbody></table></div><br><br><br>Then tried to recompile, it attempts to load the mpi.h file but has trouble reading it.???<br>I tried mixed mode and g++/cc89/cc but without any luck<br><br><div style="overflow:auto;background-color:white;line-height:100% ! important;font-family:Courier New;font-size:11px"><table style="border-width:0px;margin:2px 0px;width:99%;border-collapse:collapse;background-color:rgb(255, 255, 255)" cellpadding=0 cellspacing=0><col style="font-family:Courier New;font-size:11px;padding-left:10px;white-space:nowrap"><tbody><tr><td><font style="font-size:11px">bash-3.2$ cc -o simplempi.exe simplempi.cpp </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">flip: /tmp/cc_tmp3_1117 <font style="color:blue">is</font><font style="font-size:11px"> a binary file, not converted </font></td></tr><tr><td>C:\Windows\SUA\usr\include\mpi.h(1) : error C2018: unknown character '0x1' </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Windows\SUA\usr\include\mpi.h(1) : error C2143: syntax error : missing ';' before '/' </td></tr><tr><td>C:\Windows\SUA\usr\include\mpi.h(1) : error C4430: missing type specifier - intassumed. Note: C++ does not support <font style="color:blue">default</font><font style="font-size:11px">-</font><font style="color:blue">int</font><font style="font-size:11px"> </font></td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(16) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(16) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(19) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(19) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(20) : error C3861: 'MPI_Init': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(21) : error C2065: 'MPI_COMM_WORLD' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(21) : error C3861: 'MPI_Comm_rank': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(22) : error C2065: 'MPI_COMM_WORLD' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(22) : error C3861: 'MPI_Comm_size': identifier not found </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(25) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(25) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(28) : error C2065: 'cout' : undeclared identifier </td></tr><tr><td style="background-color:rgb(247, 247, 247)">C:\Users\Administrator\mpiTest\simplempi.cpp(28) : error C2065: 'endl' : undeclared identifier </td></tr><tr><td>C:\Users\Administrator\mpiTest\simplempi.cpp(29) : error C3861: 'MPI_Finalize':identifier not found </td></tr><tr><td style="background-color:rgb(247, 247, 247)">bash-3.2$ </td></tr></tbody></table></div><br><br><br><br>So... I guess my question now is ,  is it possible?<br><br>Has anyone out there got an MPI example that works with  the windows mpi.h from SUA?<br>Can anyone see something wrong in the way i am approaching this problem?<br><br>Any help is very gratefully received!<br><br>Regards<br>Steven<br><br><br><br><br><br><br><br><br><br><br><br><br> <hr size=1 width="25%" align=left>sjjFri, 03 Oct 2008 15:01:04 Z2008-10-03T15:03:33Zhttp://social.microsoft.com/Forums/en-US/windowshpcinterop/thread/f1f5e6fd-b1b4-45ba-8d30-bf246adfe650#7ef56ac4-a405-4dbd-b093-fdd069266ddbhttp://social.microsoft.com/Forums/en-US/windowshpcinterop/thread/f1f5e6fd-b1b4-45ba-8d30-bf246adfe650#7ef56ac4-a405-4dbd-b093-fdd069266ddbDon Patteehttp://social.microsoft.com/Profile/en-US/?user=Don%20PatteeUsing Windows HPC MPI from c++ in SUA?Hi, I apologize for no one getting back to you on this. We have a renewed effort in the forums so questions don't go un-answered now. But part of 'starting fresh' is to close out old posts that haven't been touched recently. Since things can change so quickly it is likely that many of the problems / questions that were posed several months ago have already been addressed in some other way. <br/><br/>I'm going to mark this thread as 'answered' to close it out. If you still have issues / questions please start a new thread with the updated information so that we can get to it.Thu, 02 Apr 2009 20:52:29 Z2009-04-02T20:52:29Z