[mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2
Jayesh Krishna
jayesh at mcs.anl.gov
Sat Nov 20 23:42:37 CST 2010
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