[mpich-discuss] How to run MPI code on a single machin with four cores when using MPICH2
Horacio Pedro Burbridge
hpbridge at yahoo.com.ar
Sat Nov 20 16:35:40 CST 2010
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20101120/d86407ab/attachment.htm>
More information about the mpich-discuss
mailing list