Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Compiling OpenMPI 1.7.x with core afinity
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-10-21 10:24:23


We never set binding "on" by default, and there is no configure option that will do so. Never has been, to my knowledge.

If you truly want it to bind by default, then you need to add that directive to your default MCA param file:

<prefix>/etc/openmpi-mca-params.conf

On Oct 21, 2013, at 3:17 AM, Patrick Begou <Patrick.Begou_at_[hidden]> wrote:

> I am compiling OpenMPI 1.7.3 and 1.7.2 with GCC 4.8.1 but I'm unable to activate some binding policy at compile time.
> ompi_info -a shows:
>
> MCA hwloc: parameter "hwloc_base_binding_policy" (current value: "", data source: default, level: 9 dev/all, type: string)
> Policy for binding processes [none (default) | hwthread | core | l1cache | l2cache | l3cache | socket | numa | board] (supported qualifiers: overload-allowed,if-supported)
> MCA hwloc: parameter "hwloc_base_bind_to_core" (current value: "false", data source: default, level: 9 dev/all, type: bool)
> Bind processes to cores
> Valid values: 0: f|false|disabled, 1: t|true|enabled
> MCA hwloc: parameter "hwloc_base_bind_to_socket" (current value: "false", data source: default, level: 9 dev/all, type: bool)
> Bind processes to sockets
> Valid values: 0: f|false|disabled, 1: t|true|enabled
>
> So clearly it is not activated.
> I've tried to set these options to ./configure but it doesn't help:
> --enable-mca-direct=hwloc_base_bind_to_core,hwloc_base_bind_to_socket
>
> I know it should work because it is working out of the box with OpenMPI-1.6.3 that I have compiled several months ago.
>
> I think I've messed something but where ?
>
> Thanks for your advices
>
> Patrick
>
> --
> ===================================================================
> | Equipe M.O.S.T. | |
> | Patrick BEGOU | mailto:Patrick.Begou_at_[hidden] |
> | LEGI | |
> | BP 53 X | Tel 04 76 82 51 35 |
> | 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 |
> ===================================================================
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users