Thanks for your guide. That solved my problem.


On Fri, Apr 25, 2014 at 3:17 PM, Lu, Huiwei <huiweilu@mcs.anl.gov> wrote:
You can determine the rank order of your MPI processes in your machinefile. For example, if you create a machinefile like:

machine1
machine1
machine1
machine1
machine2
machine1

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.


Huiwei Lu
Postdoc Appointee
Mathematics and Computer Science Division, Argonne National Laboratory
http://www.mcs.anl.gov/~huiweilu/

On Apr 25, 2014, at 2:42 AM, ehsan saei <ehsan.saei@gmail.com> wrote:

> Dear all,
>
> I want to run my code on two machines and I want to declare rank IDs manually.
> for example I want to rank=0 on machine 1 and rank= 4 on machine 2 and rank=5 on machine 1
>
> how can I do that?
>
> Thanks in advance,
> Ehsan
> _______________________________________________
> discuss mailing list     discuss@mpich.org
> To manage subscription options or unsubscribe:
> https://lists.mpich.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss