Open MPI logo

PLPA Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all PLPA Users mailing list

Subject: Re: [PLPA users] setting affinity of threads
From: Fawzi Mohamed (fawzi_at_[hidden])
Date: 2009-01-25 04:38:41


On Jan 24, 2009, at 7:28 PM, Bert Wesarg wrote:

> On Sat, Jan 24, 2009 at 19:24, Bert Wesarg
> <bert.wesarg_at_[hidden]> wrote:
>> AFAIK, the pthread API has never changed. So your are probably safe
>> to
>> use this API directly.
> Ok, I must correct me, now I know, that this API has changed too. :(
>
> Bert

well thank you for the feedback :)
as said using pid=0 seems to work to change the affinity of the
current thread, and it is enough as fallback.
Otherwise I will just use the latest API (NPTL, and numa) if available
(two code paths is still acceptable).

Fawzi