[MPICH] Running different program names with mpirun
Jayesh Krishna
jayesh at mcs.anl.gov
Thu Feb 7 16:11:47 CST 2008
Hi,
First I would like to point that you are using an old version of MPICH on
windows. We recommend all users to use the latest version of MPICH2(1.0.6p2
- available at
http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downlo
ads)
You can find information on how to run MPI programs using MPICH2 on
unix/linux in the MPICH2 user's guide (available at
http://www.mcs.anl.gov/research/projects/mpich2/documentation/index.php?s=do
cs). You must be able to achieve the functionality that you mentioned using
the "-machinefile" option of mpiexec and separating the various
executables/num of procs using a ":"
(eg:: mpiexec -machinefile mf -n 1 master.exe : -n 8 slave.exe . And have
the machinefile contain :
machine1:1
machine2:4
machine3:4
).
Let us know if you need further assistance.
Regards,
Jayesh
_____
From: owner-mpich-discuss at mcs.anl.gov
[mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Luiz Carlos da Costa
Junior
Sent: Thursday, February 07, 2008 3:16 PM
To: MPICH Discuss
Subject: [MPICH] Running different program names with mpirun
Hi,
I have a MPI program that works well under Windows and right now I am
extending this application to run under Linux.
But I faced one little problem using mpirun.
Under Windows, I use to start my application from command line using mpirun
for mpd, like this:
>> mpirun cluster.dat
And cluster.dat file has the list of machines, number of process in each
machine and applications that should run.
The content o cluster.dat file looks like this:
args par
hosts
machine1 1 //machine1/app/master.exe
machine1 4 //machine1/app/slave.exe
machine2 4 //machine1/app/slave.exe
As you can see, I have 1 master process and n slaves, but in different
executables.
I would like use mpirun in the same way, but I didn't find how to do it.
Is there something similar to MPD for Linux ou another way to do it?
What should I do?
Thanks in advance,
LC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080207/99640e7e/attachment.htm>
More information about the mpich-discuss
mailing list