hwloc_set_thread_cpubind() by itself works. I have it on a different test program
and it binds the threads without a problem. The problem is when the thread is
waiting on a barrier. I'll try strace and send you the results
--------------------------
Alexandros Papadogiannakis




> Date: Wed, 16 Jun 2010 14:47:44 +0200
> From: samuel.thibault@inria.fr
> To: hwloc-users@open-mpi.org
> Subject: Re: [hwloc-users] Problem with hwloc_set_thread_cpubind() and pthread_barrier_wait() on new debianj
>
> Αλέξανδρος Παπαδογιαννάκης, le Wed 16 Jun 2010 15:37:34 +0300, a écrit :
> > The program uses hwloc_set_thread_cpubind() to bind some threads to specific
> > cpus
> > but now it doesn't work. hwloc_set_thread_cpubind() returns zero but doesn't
> > bind
> > the thread.
>
> This looks to me like a glibc or kernel bug. Could you check with strace
> that a sched_setaffinity system call gets performed, and the returned
> value?
>
> > The problem is that when I call hwloc_set_thread_cpubind() the threads
> > are waiting on a posix barrier.
>
> That shouldn't be a problem.
>
> Samuel
> _______________________________________________
> hwloc-users mailing list
> hwloc-users@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users


Hotmail: Trusted email with powerful SPAM protection. Sign up now.