[mpich-discuss] mpiexec ignoring host setting in configfile

Kenneth Raffenetti raffenet at mcs.anl.gov
Thu Jun 22 10:14:38 CDT 2017


-host(s) is a global option. You can only specify it once. Further, your 
configfile does not make much sense since your are using the same 
program on both lines. You could rather just do:

   mpiexec -n 4 -ppn 2 -hosts Shakespeare,Burns ./mpi_io_test

Ken

On 06/22/2017 09:55 AM, Alexander Rast wrote:
> I'm getting a very suprising result with the attached application and 
> configfile. As you can see, I'm asking MPI to run 2 processes on 
> Shakespeare, and 2 on Burns. But when I ran the program using mpiexec 
> -configfile ./MPI_config.txt what I actually get is the output shown in 
> MPI_IO_Test.txt. Furthermore I can confirm that this is genuine: I shut 
> down Burns altogether and the same result ensues. It's as if mpiexec is 
> taking the -host field as advisory but not required, that is, it might 
> execute on the host asked for, but then again if it decides not to, it 
> doesn't interpret the -host field as a requirement. I get the distinct 
> impression, indeed, that instead of interpreting the host as a 
> requirement, it uses a greedy process allocation: if it can spawn all of 
> the processes on the invoking host (the one that ran mpiexec) it does 
> so, and only once the resources there are exhausted does it look at 
> other possible hosts.
> 
> Clearly if you specify a -host the intention is that the process should 
> be placed there. This looks like a bug in mpiexec.
> 
> 
> _______________________________________________
> discuss mailing list     discuss at mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss
> 
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list