[mpich-discuss] mpiexec and -n option
Pavan Balaji
balaji at mcs.anl.gov
Tue Aug 16 14:50:43 CDT 2011
Is there a reason you don't want to use the "-n" option?
% mpiexec -f host_file -n 1 a1.out : -n 1 a2.out : -n 1 a3.out
-- Pavan
On 08/16/2011 02:48 PM, Jain, Rohit wrote:
> Hi Pavan,
>
> Another question on running with host file.
> I want to run 3 processes on 3 different machines:
>
> I run:
> mpiexec -f host_file a1.out : a2.out : a3.out
>
> host_file:
> mach1
> mach2
> mach3
>
> or
>
> mach1:1
> mach2:1
> mach3:1
>
> It starts 3 processes on all 3 machines:
>
> # Proxy information:
> # *********************
> # [1] proxy: mach1 (1 cores)
> # Exec list: a1.out (1 processes); a2.out (1 processes); a3.out (1 processes);
> #
> # [2] proxy: mach2 (1 cores)
> # Exec list: a1.out (1 processes); a2.out (1 processes); a3.out (1 processes);
> #
> # [3] proxy: mach3 (1 cores)
> # Exec list: a1.out (1 processes); a2.out (1 processes); a3.out (1 processes);
>
> What am I doing wrong?
>
> Regards,
> Rohit
>
>
>
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list