<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Hi Jayesh,</DIV>
<DIV> </DIV>
<DIV>Thanks for your answer. </DIV>
<DIV>I followed your suggestion by creating a bat file that executes the command you sent to me. </DIV>
<DIV> </DIV>
<DIV>The content of the bat file is:</DIV>
<DIV> </DIV>
<DIV><EM> D:<BR>cd \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster</EM></DIV>
<DIV><BR><EM>mpiexec -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster\Prueba32-01 : -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1\Prueba32-01 : -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2\Prueba32-01 : -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3\Prueba32-01<BR></EM></DIV>
<DIV>The answer is:</DIV>
<DIV> </DIV>
<DIV><EM>Aborting, unable to connect to Usuario-PC, smpd version mismatch</EM></DIV>
<DIV> </DIV>
<DIV>¿How can be problems with smpd version if this is only one machine with four cores? There is no way to have different versions of MPICH2 installed. </DIV>
<DIV> </DIV>
<DIV>Note: In addition to have MPICH2 installed I also have MPICH installed into the same computer.</DIV>
<DIV> </DIV>
<DIV>Thank you.</DIV>
<DIV><BR> </DIV>Horacio.
<DIV><BR></DIV>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 12pt"><BR>
<DIV style="FONT-FAMILY: arial, helvetica, sans-serif; FONT-SIZE: 13px"><FONT size=2 face=Tahoma>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">De:</SPAN></B> Jayesh Krishna <jayesh@mcs.anl.gov><BR><B><SPAN style="FONT-WEIGHT: bold">Para:</SPAN></B> mpich-discuss@mcs.anl.gov<BR><B><SPAN style="FONT-WEIGHT: bold">CC:</SPAN></B> hpbridge@yahoo.com.ar<BR><B><SPAN style="FONT-WEIGHT: bold">Enviado:</SPAN></B> domingo, 21 de noviembre, 2010 2:42:37<BR><B><SPAN style="FONT-WEIGHT: bold">Asunto:</SPAN></B> Re: [mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2<BR></FONT><BR>Hi,<BR>You should be able to launch different executables as part of the same job by separating the executables (and the executable specific args) by a colon (:). Try the following command and let us know if it works for you.<BR><BR>mpiexec -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster\Prueba32-01 : -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1\Prueba32-01 : -n 1 D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2\Prueba32-01 : -n 1
D:\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3\Prueba32-01<BR><BR><BR>Regards,<BR>Jayesh<BR>----- Original Message -----<BR>From: Horacio Pedro Burbridge <<A href="mailto:hpbridge@yahoo.com.ar" ymailto="mailto:hpbridge@yahoo.com.ar">hpbridge@yahoo.com.ar</A>><BR>To: <A href="mailto:mpich-discuss@mcs.anl.gov" ymailto="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A><BR>Sent: Sat, 20 Nov 2010 16:35:40 -0600 (CST)<BR>Subject: [mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2<BR><BR>Hello,<BR> <BR>I got this e-mail from the mpich_discuss forum. I have already suscribed to it.<BR> <BR>I have a code paralellized that is runnig OK when I compile it using Win32 Intel <BR>Fortran compiler and MPICH1 libraries.<BR>When I compile it using EMT64 Intel Fortran compiler and MPICH2 libraries it is <BR>compiled OK but I can´t make it run.<BR> <BR>I need
to run this on a single Windows 7 machine using its four cores (Intel <BR>i7). Once the core is finished I will run it on a 20 node cluster. Now my <BR>problem is to run on a single machine. <BR><BR>When running the win32 MPICH1 compiled executable there is no problem at all. <BR>I´m using four different folders and executing four executables. The executables <BR>are the same, but the information they use is readed from different folders. For <BR>this, I´m setting the enviromental varibles manually, and runing the executable <BR>"Prueba32-01.exe" on four cores as follows:<BR> <BR>file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster:<BR> <BR> D:<BR> cd
<BR>\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster <BR><BR> <BR> set MPICH_JOBID=ns.123<BR> set MPICH_IPROC= 0<BR> set MPICH_NPROC= 4<BR> set MPICH_ROOT=Usuario-PC:1<BR> Prueba32-01<BR><BR>file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1:<BR> <BR> D:<BR> cd
<BR>\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1 <BR><BR> <BR> set MPICH_JOBID=ns.123<BR> set MPICH_IPROC= 1<BR> set MPICH_NPROC= 4<BR> set MPICH_ROOT=Usuario-PC:1<BR> Prueba32-01<BR> <BR>file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2:<BR> <BR> D:<BR> cd
<BR>\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2 <BR><BR> <BR> set MPICH_JOBID=ns.123<BR> set MPICH_IPROC= 2<BR> set MPICH_NPROC= 4<BR> set MPICH_ROOT=Usuario-PC:1<BR> Prueba32-01<BR><BR> <BR>file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3:<BR> <BR> D:<BR> cd
<BR>\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3 <BR><BR> <BR> set MPICH_JOBID=ns.123<BR> set MPICH_IPROC= 3<BR> set MPICH_NPROC= 4<BR> set MPICH_ROOT=Usuario-PC:1<BR> Prueba32-01<BR><BR>This works fine with MPICH1. I couldn´t find a way to launch this executable on <BR>four different folders using mpiexec or even manually by setting the <BR>environmental variables "PMI_RANK" and "PMI_SIZE"<BR><BR>Could you please help me?<BR><BR>Thank you in advance.<BR> Horacio. <BR><BR><BR><BR></DIV></DIV></div><br>
</body></html>