Re: [hwloc-users] some questions about hwloc

2011-01-29 Thread guillaume Arnal
Wonderful ! Tank you very much everybody. Guillaume 2011/1/28 Brice Goglin > You have to choose 5 cores manually: > > /* get all my core objects */ > hwloc_obj_t core1 = hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, > ); > hwloc_obj_t core2 = hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, >

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Brice Goglin
You have to choose 5 cores manually: /* get all my core objects */ hwloc_obj_t core1 = hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, ); hwloc_obj_t core2 = hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, ); hwloc_obj_t core3 = hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, ); hwloc_obj_t cor

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Jim Burnes
Yes. There is a way to do that. You bind it to a cpuset. It will be easier if you know the set of cpu cores you want to bind to, but I suppose you could dynamically alter the cpuset. I haven't tried that though. On Fri, Jan 28, 2011 at 11:33 AM, guillaume Arnal wrote: > Yes, this helps. > >

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread guillaume Arnal
Yes, this helps. However, I complete my second question : is there a way to force my current process to run on 'n' cores ? For example : I have 20 cores for real in my architecture (I'm dreaming ...), but I wish that my process run on only 5 cores. Is it possible with hwloc ? Essayez avec cette o

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Jim Burnes
Yeah strange. Probably better to bind to a specific core and be happy. :-) On Fri, Jan 28, 2011 at 10:03 AM, Samuel Thibault wrote: > guillaume Arnal, le Fri 28 Jan 2011 17:42:31 +0100, a écrit : >> Actually, i want to know where my current thread is executing. But is seens >> to >> be impossi

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Samuel Thibault
guillaume Arnal, le Fri 28 Jan 2011 17:42:31 +0100, a écrit : > Actually, i want to know where my current thread is executing. But is seens to > be impossible, jeez ... It's not impossible, it's just not implemented in hwloc (yet). Samuel

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Samuel Thibault
Jim Burnes, le Fri 28 Jan 2011 17:51:00 +0100, a écrit : > While hwloc might not support it, should your local threading library > do it? (ie: pthread?) There's no standard about it. The problem is that the value can be expired right after you have gotten it, that's probably why nobody managed to

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Jim Burnes
While hwloc might not support it, should your local threading library do it? (ie: pthread?) On Fri, Jan 28, 2011 at 9:43 AM, guillaume Arnal wrote: > > ... iT seeMs to be ... sorry > > 2011/1/28 guillaume Arnal >> >> Actually, i want to know where my current thread is executing. But is >> seen

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread guillaume Arnal
... iT seeMs to be ... sorry 2011/1/28 guillaume Arnal > Actually, i want to know where my current thread is executing. But is seens > to be impossible, jeez ... > > Thank you for your answer. > Guillaume > > 2011/1/28 Samuel Thibault > > guillaume Arnal, le Fri 28 Jan 2011 15:32:40 +0100, a éc

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread guillaume Arnal
Actually, i want to know where my current thread is executing. But is seens to be impossible, jeez ... Thank you for your answer. Guillaume 2011/1/28 Samuel Thibault > guillaume Arnal, le Fri 28 Jan 2011 15:32:40 +0100, a écrit : > > First: I'm looking for a way to find which core is using by t

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Samuel Thibault
guillaume Arnal, le Fri 28 Jan 2011 15:32:40 +0100, a écrit : > First: I'm looking for a way to find which core is using by the current > thread. > (maybe with hwloc_get_thread_cpubind ??) You mean where the current thread is actually executing, not where it is just allowed to execute? Hwloc doe

Re: [hwloc-users] some questions about hwloc

2011-01-28 Thread Brice Goglin
Le 28/01/2011 15:32, guillaume Arnal a écrit : > Hi everyone, > > I'm beginner in using hwloc and I have some questions. > > First: I'm looking for a way to find which core is using by the > current thread. (maybe with hwloc_get_thread_cpubind ??) > > Second: is there a way to set the number of cor