<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi Jayesh,<div><br></div><div>>>about MFC Project with mpich2, now i am getting the following errors: </div><div><br></div><div><div><font color="#ff0000">Error<span class="Apple-tab-span" style="white-space:pre">  </span>3<span class="Apple-tab-span" style="white-space:pre">   </span>error C2059: syntax error : 'constant'<span class="Apple-tab-span" style="white-space:pre">      </span>c:\program files\mpich2\include\mpicxx.h<span class="Apple-tab-span" style="white-space:pre">    </span>                                                                        2586<span class="Apple-tab-span" style="white-space:pre">       </span>  1<span class="Apple-tab-span" style="white-space:pre">       </span>MFC</font></div><div><font color="#ff0000">Error<span class="Apple-tab-span" style="white-space:pre">  </span>2<span class="Apple-tab-span" style="white-space:pre">   </span>error C2143: syntax error : missing ';' before 'constant'<span class="Apple-tab-span" style="white-space:pre">   </span>c:\program files\mpich2\include\mpicxx.h<span class="Apple-tab-span" style="white-space:pre">    </span>                                                2586<span class="Apple-tab-span" style="white-space:pre">   </span>  1<span class="Apple-tab-span" style="white-space:pre">       </span>MFC</font></div><div><font color="#ff0000"><span class="Apple-tab-span" style="white-space:pre">       </span>4<span class="Apple-tab-span" style="white-space:pre">   </span>IntelliSense: expected an identifier<span class="Apple-tab-span" style="white-space:pre">        </span>c:\program files\mpich2\include\mpicxx.h<span class="Apple-tab-span" style="white-space:pre">    </span>                                                                        2586<span class="Apple-tab-span" style="white-space:pre">    </span>  18<span class="Apple-tab-span" style="white-space:pre">      </span></font></div><div><font color="#ff0000">Warning<span class="Apple-tab-span" style="white-space:pre">   </span>1<span class="Apple-tab-span" style="white-space:pre">   </span>warning C4091: 'extern ' : ignored on left of 'const int' when no variable is declared<span class="Apple-tab-span" style="white-space:pre">      </span>c:\program files\mpich2\include\mpicxx.h<span class="Apple-tab-span" style="white-space:pre">    </span>2586<span class="Apple-tab-span" style="white-space:pre">        </span>  1<span class="Apple-tab-span" style="white-space:pre">       </span>MFC</font></div><div><br></div><div>when I checked the code of "mpicxx.h", I found that the error was triggered by "MAX_PORT_NAME" I don't know why, because I just included the header "mpi.h" in the project and I didn't do any call to mpi functions?</div><div><br></div><div> >>about the second one, I am trying to spawn children from my PC to the virtual machine, and yes, I tried the IP Adrresses instead but i got the same error (<span style="font-size: 10pt; ">unable to connect to otherNode</span><span style="font-size: 10pt; ">).</span></div><div><span style="font-size: 10pt; "><br></span></div><div><span style="font-size: 10pt; ">Regards,</span></div><div><span style="font-size: 10pt; ">Toufik.</span></div><div><span style="font-size: 10pt; "></span></div><br><div><div id="SkyDrivePlaceholder"></div>> Date: Thu, 26 Jul 2012 11:57:28 -0500<br>> From: jayesh@mcs.anl.gov<br>> To: h_toufik7@hotmail.fr<br>> CC: mpich-discuss@mcs.anl.gov<br>> Subject: Re: [mpich-discuss] some questions about MPI<br>> <br>> Hi,<br>> <br>> >> ...MPI uses the debugging option "MPI Cluster Debugger", while MFC, probably, uses another...<br>>  I am not sure if this is your issue. Look into the dependency libs and the include directories etc.<br>> <br>> >> "unable to connect to otherNode"...<br>>  Try specifying the ip addresses instead of hostname. Is this a new cluster (If so, check with your sysadmin to debug your setup)?<br>> <br>> Regards,<br>> Jayesh<br>> <br>> ----- Original Message -----<br>> From: "toufik hadjazi" <h_toufik7@hotmail.fr><br>> To: jayesh@mcs.anl.gov, mpich-discuss@mcs.anl.gov<br>> Sent: Thursday, July 26, 2012 10:38:05 AM<br>> Subject: Re: [mpich-discuss] some questions about MPI<br>> <br>> <br>> Hi Jayesh, <br>> <br>> thanks for your reply. <br>> <br>> > >> 1/ I wanted to configure a MFC project ... <br>> > It would be difficult to guess the source of your problem. One thing I can recommend is performing a diff on the VS proj files. <br>> I think the problem is MPI uses the debugging option "MPI Cluster Debugger", while MFC, probably, uses another. <br>> <br>> <br>> <br>> > >> 2/ Since MPI_Publish_Name doesn't work across applications... <br>> > You can manually write the port name to a file (and read it from other MPI processes). <br>> > Are you referring to MPICH_PORT_RANGE? MPICH_PORT_RANGE specifies the range of ports to be used by the MPICH library (Try specifying a bigger range, say with 10 port numbers). <br>> I am developping a multi client/ multi server application, so saving the port name of each server and client into a file is gonna need a lot of synchronization, that's why i thought that maybe it's gonna be easier if the port was predetermined. <br>> <br>> > >> 3/ I have to launch my application in a remote node... <br>> > Do you have the same username (with the same password) on all the machines/nodes? MPICH uses the same registered username/password to launch processes on all the nodes. <br>> Yes, I have the same username/password on all nodes, and i tried also to run the application as an administrator. <br>> <br>> Regards, <br>> Toufik. <br>> > Date: Thu, 26 Jul 2012 09:57:54 -0500 <br>> > From: jayesh@mcs.anl.gov <br>> > To: mpich-discuss@mcs.anl.gov <br>> > CC: h_toufik7@hotmail.fr <br>> > Subject: Re: [mpich-discuss] some questions about MPI <br>> > <br>> > Hi, <br>> > <br>> > >> 1/ I wanted to configure a MFC project ... <br>> > It would be difficult to guess the source of your problem. One thing I can recommend is performing a diff on the VS proj files. <br>> > <br>> > >> 2/ Since MPI_Publish_Name doesn't work across applications... <br>> > You can manually write the port name to a file (and read it from other MPI processes). <br>> > Are you referring to MPICH_PORT_RANGE? MPICH_PORT_RANGE specifies the range of ports to be used by the MPICH library (Try specifying a bigger range, say with 10 port numbers). <br>> > <br>> > >> 3/ I have to launch my application in a remote node... <br>> > Do you have the same username (with the same password) on all the machines/nodes? MPICH uses the same registered username/password to launch processes on all the nodes. <br>> > <br>> > Regards, <br>> > Jayesh <br>> > <br>> > ----- Original Message ----- <br>> > From: "toufik hadjazi" <h_toufik7@hotmail.fr> <br>> > To: mpich-discuss@mcs.anl.gov <br>> > Sent: Wednesday, July 25, 2012 11:22:41 AM <br>> > Subject: [mpich-discuss] some questions about MPI <br>> > <br>> > <br>> > <br>> > Hi, <br>> > <br>> > I am working on windows 7 using mpich2-1.4.1-p1. during that, I encountered some problems, which are: <br>> > <br>> > 1/ I wanted to configure a MFC project with MPI using the usual configuration but during the compilation some errors appeared like:"'CDialogEx' : base class undefined <br>> > c:\users\toufik\documents\visual studio 2010\projects\mfcapp\mfcapp\mfcappdlg.h" which didn't appear before the configuration. I don't know if there is some extra <br>> > options to adjust or it follows another method of configuration. <br>> > <br>> > 2/ Since MPI_Publish_Name doesn't work across applications, I want that MPI_Open_port opens a predetermined port (not some random port), when I digged a little, I found <br>> > that there is an environment variable MPI_PORT_RANGE whom could do it, when i tried it (mpiexec -env MPI_PORT_RANGE 1000..1000), nothing happened. <br>> > <br>> > 3/ I have to launch my application in a remote node but that didn't work giving me the error message: "unable to connect to otherNode". what could be the problem, <br>> > knowing that, all firewalls are off and all nodes have the same version of windows 7 and of mpich2. <br>> > <br>> > so, could anyone give some tips to help me with these questions? and thanks. <br>> > Toufik. <br>> > <br>> > _______________________________________________ <br>> > mpich-discuss mailing list mpich-discuss@mcs.anl.gov <br>> > To manage subscription options or unsubscribe: <br>> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss <br></div></div>                                           </div></body>
</html>