Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] very sched_setaffinity support
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-12-14 05:34:31

Brice Goglin, le Wed 14 Dec 2011 11:21:30 +0100, a écrit :
> His sched.h defines the very old prototype of sched_setaffinity (pid,
> len, ulong*).

Urgl. Is it actually "very old"? I thought it was just a transient
prototype in glibc, between pid,mask and pid,size,mask, which IIRC was
never officially released... (there is a thread about it on the hwloc
mailing list).

> * change configure to also define a HWLOC_HAVE_SCHED_SETAFFINITY when
> there's a sched_setaffinity in sched.h (recent, old or very old)
> * change src/topology-linux.c to check HWLOC_HAVE_SCHED_SETAFFINITY
> before using syscall3