Re: [hwloc-users] Bind current thread to a specific cpu

2011-08-18 Thread PULVERAIL Sébastien
loc-users-boun...@open-mpi.org] De la part de Brice Goglin Envoyé : jeudi 18 août 2011 10:25 À : Hardware locality user list Objet : Re: [hwloc-users] Bind current thread to a specific cpu Are you talking about logical ids (the one given by hwloc) or physical/OS ids (the one given by the

Re: [hwloc-users] Bind current thread to a specific cpu

2011-08-18 Thread Brice Goglin
Are you talking about logical ids (the one given by hwloc) or physical/OS ids (the one given by the OS and possibly in strange order) ? You should avoid using physical ids, but... If logical, you can hwloc_get_obj_by_type() to get the corresponding object, then use its ->cpuset. If physical, you