<div dir="ltr">Thanks for your guide. That solved my problem.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 25, 2014 at 3:17 PM, Lu, Huiwei <span dir="ltr"><<a href="mailto:huiweilu@mcs.anl.gov" target="_blank">huiweilu@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can determine the rank order of your MPI processes in your machinefile. For example, if you create a machinefile like:<br>
<br>
machine1<br>
machine1<br>
machine1<br>
machine1<br>
machine2<br>
machine1<br>
<br>
Using ‘mpiexec -f machinefile -n 6 ./example/cpi’, then rank 0-3 and rank 5 will run on machine1, and rank 4 will run on machine2.<br>
<br>
—<br>
Huiwei Lu<br>
Postdoc Appointee<br>
Mathematics and Computer Science Division, Argonne National Laboratory<br>
<a href="http://www.mcs.anl.gov/~huiweilu/" target="_blank">http://www.mcs.anl.gov/~huiweilu/</a><br>
<div><div class="h5"><br>
On Apr 25, 2014, at 2:42 AM, ehsan saei <<a href="mailto:ehsan.saei@gmail.com">ehsan.saei@gmail.com</a>> wrote:<br>
<br>
> Dear all,<br>
><br>
> I want to run my code on two machines and I want to declare rank IDs manually.<br>
> for example I want to rank=0 on machine 1 and rank= 4 on machine 2 and rank=5 on machine 1<br>
><br>
> how can I do that?<br>
><br>
> Thanks in advance,<br>
> Ehsan<br>
</div></div>> _______________________________________________<br>
> discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
> To manage subscription options or unsubscribe:<br>
> <a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
<br>
_______________________________________________<br>
discuss mailing list <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br>
</blockquote></div><br></div>