Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] Problem with hwloc_set_thread_cpubind() and pthread_barrier_wait() on new debianj
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2010-06-16 08:47:44


Αλέξανδρος Παπαδογιαννάκης, 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