Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: Re: [hwloc-users] Multiple thread binding
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-08-02 11:02:04

Gabriele Fatigati, le Tue 02 Aug 2011 16:23:12 +0200, a écrit :
> hwloc_set_cpubind(*topology, set,  HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_STRICT
> is it possible do multiple call to hwloc_set_cpubind passing each flag per
> time? 
> hwloc_set_cpubind(*topology, set,  HWLOC_CPUBIND_THREAD);
> hwloc_set_cpubind(*topology, set, HWLOC_CPUBIND_STRICT);
> hwloc_set_cpubind(*topology, set, HWLOC_CPUBIND_NOMEMBIND);
> or only the last have effect?

Err, it will simply do the three operations, i.e. first bind the current
thread and memory, then strictly bind the whole process and memory, and
eventually bind the process but not memory (but it will still bound
since it was by the second call).