Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] towards PLPA-like API in 1.0
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2009-11-11 16:31:03


Brice Goglin, le Wed 11 Nov 2009 17:34:30 +0100, a écrit :
> Would it make sense to add support for the CPUBIND_THREAD policy in
> set_proc_cpubind? (and maybe rename it into set_pid_cpubind, or add
> set_thread_pid_cpubind).

I answered in the ticket itself: linux 2.4 insanely mixed the notion of
pid and threads and it's still a mess. An application can't get a tid
without explicitely calling the linux-only system call, while it could
just use the portable pthread_self() and such.

Samuel