[mpich-discuss] Hydra binding option
Pavan Balaji
balaji at mcs.anl.gov
Sat Jul 21 17:34:54 CDT 2012
To bind them to the same core you need to give:
mpiexec -binding user:0,0 -n 2 ./myprocess
"-1" means that you don't care where the second process is bound to, and
the OS will schedule it wherever it likes (likely to the second core).
-- Pavan
On 07/21/2012 04:52 PM, Gonzalo Martín Cruz wrote:
> Hi all,
>
> I am working with MPICH2 v.1.4.1p1 in a dual core machine and I am
> trying to bind two mpi processes to run in the same core (id 0)
> executing the following command:
>
> mpiexec -binding user:0,-1 -n 2 ./myprocess
>
> But this way every process is binded to one different core (id 0 and 1
> respectively). The only way I have been able to binding both processes
> to same core (id 0) is executing the following command two times:
>
> mpiexec -binding user:0 -n 1 ./myprocess
>
> What am I doing wrong?
>
> Thank you guys!
>
> ------------------------------------------------------------------------------------------------
> Gonzalo Martín Cruz
> Computer Arquitecture Group
> Computer Science Department
> Universidad Carlos III de Madrid
> e-mail: gmcruz at arcos.inf.uc3m.es <mailto:gmcruz at arcos.inf.uc3m.es>
> ------------------------------------------------------------------------------------------------
>
>
>
>
> _______________________________________________
> mpich-discuss mailing list mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
--
Pavan Balaji
http://www.mcs.anl.gov/~balaji
More information about the mpich-discuss
mailing list