[mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2

Jayesh Krishna jayesh at mcs.anl.gov
Tue Nov 30 10:57:54 CST 2010


Hi,
 AFAIK, MPICH and MPICH2 can be installed on the same machine (Although we don't test that setup routinely in our lab). We currently do not support installing two versions of MPICH2 on the same machine.
 Try specifying the complete path to mpiexec (C:\Progra~1\MPICH2\bin\mpiexec -n 1 ...). Let us know if it works.

Regards,
Jayesh
----- Original Message -----
From: Horacio Pedro Burbridge <hpbridge at yahoo.com.ar>
To: Jayesh Krishna <jayesh at mcs.anl.gov>, mpich-discuss at mcs.anl.gov
Sent: Tue, 30 Nov 2010 09:37:19 -0600 (CST)
Subject: Re: [mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2

Hi Jayesh,

Thanks for your answer. 
I followed your suggestion by creating a bat file that executes the command you 
sent to me. 


The content of the bat file is:

 D:
cd \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster

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

The answer is:

Aborting, unable to connect to Usuario-PC, smpd version mismatch

¿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. 


Note: In addition to have MPICH2 installed I also have MPICH installed into the 
same computer.

Thank you.

 Horacio. 




________________________________
De: Jayesh Krishna <jayesh at mcs.anl.gov>
Para: mpich-discuss at mcs.anl.gov
CC: hpbridge at yahoo.com.ar
Enviado: domingo, 21 de noviembre, 2010 2:42:37
Asunto: Re: [mpich-discuss] How to run MPI code on a single machin with four 
cores when using MPICH2

Hi,
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.

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


Regards,
Jayesh
----- Original Message -----
From: Horacio Pedro Burbridge <hpbridge at yahoo.com.ar>
To: mpich-discuss at mcs.anl.gov
Sent: Sat, 20 Nov 2010 16:35:40 -0600 (CST)
Subject: [mpich-discuss] How to run MPI code on a single machin with four    
cores when using MPICH2

Hello,
 
I got this e-mail from the mpich_discuss forum. I have already suscribed to it.
 
I have a code paralellized that is runnig OK when I compile it using Win32 Intel 

Fortran compiler and MPICH1 libraries.
When I compile it using EMT64 Intel Fortran compiler and MPICH2 libraries it is 
compiled OK but I can´t make it run.
 
I need to run this on a single Windows 7 machine using its four cores (Intel 
i7). Once the core is finished I will run it on a 20 node cluster. Now my 
problem is to run on a single machine. 

When running the win32 MPICH1 compiled executable there is no problem at all. 
I´m using four different folders and executing four executables. The executables 

are the same, but the information they use is readed from different folders. For 

this, I´m setting the enviromental varibles manually, and runing the executable 
"Prueba32-01.exe" on four cores as follows:
 
file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster:
 
 D:
 cd 
\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster                                                                 


   
 set MPICH_JOBID=ns.123
 set MPICH_IPROC= 0
 set MPICH_NPROC= 4
 set MPICH_ROOT=Usuario-PC:1
 Prueba32-01

file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1:
 
 D:
 cd 
\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster1                                                                  


   
 set MPICH_JOBID=ns.123
 set MPICH_IPROC= 1
 set MPICH_NPROC= 4
 set MPICH_ROOT=Usuario-PC:1
 Prueba32-01
 
file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2:
 
 D:
 cd 
\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster2                                                                 


   
 set MPICH_JOBID=ns.123
 set MPICH_IPROC= 2
 set MPICH_NPROC= 4
 set MPICH_ROOT=Usuario-PC:1
 Prueba32-01

 
file "mpi.bat" on folder \HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3:
 
 D:
 cd 
\HORACIO\DOCTORADO\2-Corridas\MPI\Cluster3                                                                  


   
 set MPICH_JOBID=ns.123
 set MPICH_IPROC= 3
 set MPICH_NPROC= 4
 set MPICH_ROOT=Usuario-PC:1
 Prueba32-01

This works fine with MPICH1. I couldn´t find a way to launch this executable on 
four different folders using mpiexec or even manually by setting the 
environmental variables "PMI_RANK" and "PMI_SIZE"

Could you please help me?

Thank you in advance.
 Horacio. 





More information about the mpich-discuss mailing list