Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Is there an mca parameter equivalent to -bind-to-core?
From: Ralph Castain (rhc_at_[hidden])
Date: 2011-03-22 09:36:35


On Mar 21, 2011, at 9:27 PM, Eugene Loh wrote:

> Gustavo Correa wrote:
>
>> Dear OpenMPI Pros
>>
>> Is there an MCA parameter that would do the same as the mpiexec switch '-bind-to-core'?
>> I.e., something that I could set up not in the mpiexec command line,
>> but for the whole cluster, or for an user, etc.
>>
>> In the past I used '-mca mpi mpi_paffinity_alone=1'.

Must be a typo here - the correct command is '-mca mpi_paffinity_alone 1'

>> But that was before '-bind-to-core' came along.
>> However, my recollection of some recent discussions here in the list
>> is that the latter would not do the same as '-bind-to-core',
>> and that the recommendation was to use '-bind-to-core' in the mpiexec command line.

Just to be clear: mpi_paffinity_alone=1 still works and will cause the same behavior as bind-to-core.

>>
> A little awkward, but how about
>
> --bycore rmaps_base_schedule_policy core
> --bysocket rmaps_base_schedule_policy socket
> --bind-to-core orte_process_binding core
> --bind-to-socket orte_process_binding socket
> --bind-to-none orte_process_binding none
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users