Gabriele Fatigati, le Tue 02 Aug 2011 16:23:12 +0200, a écrit :
> hwloc_set_cpubind(*topology, set,  HWLOC_CPUBIND_THREAD | HWLOC_CPUBIND_STRICT
> |   HWLOC_CPUBIND_NOMEMBIND);
> 
> 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).

Samuel

Reply via email to