[mpich-discuss] some questions about MPI

toufik hadjazi h_toufik7 at hotmail.fr
Sun Jul 29 11:58:43 CDT 2012


Hi Jayesh,
>>about MFC Project with mpich2, now i am getting the following errors: 
Error	3	error C2059: syntax error : 'constant'	c:\program files\mpich2\include\mpicxx.h	                                                                        2586	  1	MFCError	2	error C2143: syntax error : missing ';' before 'constant'	c:\program files\mpich2\include\mpicxx.h	                                                2586	  1	MFC	4	IntelliSense: expected an identifier	c:\program files\mpich2\include\mpicxx.h	                                                                        2586	  18	Warning	1	warning C4091: 'extern ' : ignored on left of 'const int' when no variable is declared	c:\program files\mpich2\include\mpicxx.h	2586	  1	MFC
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?
 >>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 (unable to connect to otherNode).
Regards,Toufik.
> Date: Thu, 26 Jul 2012 11:57:28 -0500
> From: jayesh at mcs.anl.gov
> To: h_toufik7 at hotmail.fr
> CC: mpich-discuss at mcs.anl.gov
> Subject: Re: [mpich-discuss] some questions about MPI
> 
> Hi,
> 
> >> ...MPI uses the debugging option "MPI Cluster Debugger", while MFC, probably, uses another...
>  I am not sure if this is your issue. Look into the dependency libs and the include directories etc.
> 
> >> "unable to connect to otherNode"...
>  Try specifying the ip addresses instead of hostname. Is this a new cluster (If so, check with your sysadmin to debug your setup)?
> 
> Regards,
> Jayesh
> 
> ----- Original Message -----
> From: "toufik hadjazi" <h_toufik7 at hotmail.fr>
> To: jayesh at mcs.anl.gov, mpich-discuss at mcs.anl.gov
> Sent: Thursday, July 26, 2012 10:38:05 AM
> Subject: Re: [mpich-discuss] some questions about MPI
> 
> 
> Hi Jayesh, 
> 
> thanks for your reply. 
> 
> > >> 1/ I wanted to configure a MFC project ... 
> > 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. 
> I think the problem is MPI uses the debugging option "MPI Cluster Debugger", while MFC, probably, uses another. 
> 
> 
> 
> > >> 2/ Since MPI_Publish_Name doesn't work across applications... 
> > You can manually write the port name to a file (and read it from other MPI processes). 
> > 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). 
> 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. 
> 
> > >> 3/ I have to launch my application in a remote node... 
> > 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. 
> Yes, I have the same username/password on all nodes, and i tried also to run the application as an administrator. 
> 
> Regards, 
> Toufik. 
> > Date: Thu, 26 Jul 2012 09:57:54 -0500 
> > From: jayesh at mcs.anl.gov 
> > To: mpich-discuss at mcs.anl.gov 
> > CC: h_toufik7 at hotmail.fr 
> > Subject: Re: [mpich-discuss] some questions about MPI 
> > 
> > Hi, 
> > 
> > >> 1/ I wanted to configure a MFC project ... 
> > 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. 
> > 
> > >> 2/ Since MPI_Publish_Name doesn't work across applications... 
> > You can manually write the port name to a file (and read it from other MPI processes). 
> > 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). 
> > 
> > >> 3/ I have to launch my application in a remote node... 
> > 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. 
> > 
> > Regards, 
> > Jayesh 
> > 
> > ----- Original Message ----- 
> > From: "toufik hadjazi" <h_toufik7 at hotmail.fr> 
> > To: mpich-discuss at mcs.anl.gov 
> > Sent: Wednesday, July 25, 2012 11:22:41 AM 
> > Subject: [mpich-discuss] some questions about MPI 
> > 
> > 
> > 
> > Hi, 
> > 
> > I am working on windows 7 using mpich2-1.4.1-p1. during that, I encountered some problems, which are: 
> > 
> > 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 
> > 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 
> > options to adjust or it follows another method of configuration. 
> > 
> > 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 
> > 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. 
> > 
> > 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, 
> > knowing that, all firewalls are off and all nodes have the same version of windows 7 and of mpich2. 
> > 
> > so, could anyone give some tips to help me with these questions? and thanks. 
> > Toufik. 
> > 
> > _______________________________________________ 
> > mpich-discuss mailing list mpich-discuss at mcs.anl.gov 
> > To manage subscription options or unsubscribe: 
> > https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20120729/8b684071/attachment.html>


More information about the mpich-discuss mailing list