Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: [hwloc-users] Bind current thread to a specific cpu
From: PULVERAIL Sébastien (sebastien.pulverail_at_[hidden])
Date: 2011-08-18 04:10:04


Hi,

 

I’m looking for a function that allows to bind the current thread to a
specific cpu given by its id.

 

I found the function hwloc_set_thread_cpubind to bind a thread to a cpuset.

I also found the function hwloc_bitmap_singlify to keep only one index in
the cpuset.

But I didn’t found anything to only keep the cpu I need in my cpuset…

Is it possible ?

 

Best regards

_________________________________________________________________

 

Sébastien Pulvérail | Sogeti High Tech

Phone +33 (0) 5 34 46 92 98 | Mobile +33 (0) 6 84 44 73 26

sebastien.pulverail_at_[hidden]

 

3 Chemin de Laporte | Bât. AEROPARK | 31300 Toulouse | France

www.sogeti.com / www.sogeti-hightech.fr

 

logo_signature_email_Sogeti High Tech

_________________________________________________________________

P Please consider the environment before printing !

 




image001.gif