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
> Date: Wed, 16 Jun 2010 14:47:44 +0200
> From: samuel.thibault_at_[hidden]
> To: hwloc-users_at_[hidden]
> 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
> > 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.
> hwloc-users mailing list
Hotmail: Trusted email with powerful SPAM protection.