Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] question to -cpus-to-proc
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-10-05 10:12:56


I don't recall anyone ever asking for that before - the original people who
wanted cpus-per-proc only cared about it at the job level, not the
individual app. So it currently is a global value.

It can be modified, but it'll be awhile before I get around to it.

On Thu, Oct 4, 2012 at 10:53 PM, Siegmar Gross <
Siegmar.Gross_at_[hidden]> wrote:

> Hi,
>
> if I start different programs on one command line, I can use different
> options "-host" and "-np".
>
> mpiexec -report-bindings -host linpc0 -np 1 date : \
> -host sunpc0,sunpc1 -np 2 hostname
> Fri Oct 5 07:37:25 CEST 2012
> sunpc0
> sunpc1
>
> Only the last value counts if I use for example "-cpus-per-proc".
>
> mpiexec -report-bindings -host linpc0 -np 1 -cpus-per-proc 2 \
> -bind-to-core date : -host sunpc0,sunpc1 -np 2 -cpus-per-proc 1 \
> -bind-to-socket hostname
> [linpc0:16121] MCW rank 0 bound to socket 0[core 0]: [B .][. .]
> Fri Oct 5 07:37:42 CEST 2012
> [sunpc0:17789] MCW rank 1 bound to socket 0[core 0]: [B .][. .]
> sunpc0
> [sunpc1:15007] MCW rank 2 bound to socket 0[core 0]: [B .][. .]
> sunpc1
>
> mpiexec -report-bindings -host linpc0 -np 1 -cpus-per-proc 2 \
> -bind-to-core date : -host sunpc0,sunpc1 -np 2 -bind-to-socket \
> hostname
> [linpc0:16191] MCW rank 0 bound to socket 0[core 0-1]: [B B][. .]
> [sunpc0:17824] MCW rank 1 bound to socket 0[core 0-1]: [B B][. .]
> Fri Oct 5 07:37:56 CEST 2012
> sunpc0
> [sunpc1:15040] MCW rank 2 bound to socket 0[core 0-1]: [B B][. .]
> sunpc1
>
> Is this behaviour intended? How could I map and bind processes in
> different ways on a command line without a rankfile, e.g. in the
> following way?
>
> rank 0=linpc1 slot=0:0-1
> rank 1=sunpc0 slot=0:0
> rank 2=sunpc1 slot=0:0
>
> Thank you very much for any reply in advance.
>
>
> Kind regards
>
> Siegmar
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>