<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">On Thu, Jun 22, 2017 at 4:14 PM, Kenneth Raffenetti <span dir="ltr"><<a href="mailto:raffenet@mcs.anl.gov" target="_blank">raffenet@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-host(s) is a global option. You can only specify it once.<br></blockquote><div><br></div><div>? This doesn't make sense to me. Example 8.13 from the MPI specification has:<br><br></div><div>mpiexec myprog infile1 : myprog infile2 : myprog infile3, corresponding to Form A<br><br></div><div>mpiexec {<above arguments>} : {...} : {...} : ... : { ...}<br></div><div><br></div><div>which invokes potentially multiple programs with different arguments (of which host is one)<br><br></div><div>and then mentions that Form B: mpiexec -configfile <filename> has lines of the form separated by the colons in Form A.<br><br></div><div>So there's no reason, I would think, that a Form B file can't have multiple lines with different hosts specified for the same executable.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> Further, your configfile does not make much sense since your are using the same program on both lines. You could rather just do:<br>
<br>
mpiexec -n 4 -ppn 2 -hosts Shakespeare,Burns ./mpi_io_test<br></blockquote><div><br></div><div>I have not seen the -ppn switch listed anywhere. What does this do? Is this intended to be a 'limit number of processes to n on the hosts specified?<br></div><div>Notwithstanding this isn't what is needed anyway, because what if I want specifically to run at most 2 processes on Shakespeare but 5 on Burns (imagine, for example, that Shakespeare is already loaded with other processes, so I need to limit it for the executable in concern)?<br><br></div><div>In any case the point is, using the same program on both lines to me seems straightforward enough given that there are numerous instances (as ex. 8.13 above) where various switches and options might be different. <br></div><div><br></div><div>I note also that -hosts is different from the -host switch listed as pre-defined for mpiexec.<br><br></div><div>In my case we have a system where the objective is to direct specific instances of an application or possibly several to specific hosts - so that the mapping can be fixed. In the limit this might consist of -n 1 -host <x> <executable> lines, each directing a specific instance of the executable to a specific host. <br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ken<span class=""><br>
<br>
On 06/22/2017 09:55 AM, Alexander Rast wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
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.<br>
<br>
Clearly if you specify a -host the intention is that the process should be placed there. This looks like a bug in mpiexec.<br>
<br>
<br></span>
______________________________<wbr>_________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org" target="_blank">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" rel="noreferrer" target="_blank">https://lists.mpich.org/mailma<wbr>n/listinfo/discuss</a><br>
<br>
</blockquote>
</blockquote></div><br></div></div>