> Depending whether you want to execute one >thread per core, or per hyperthread, use the first or second of these: > >rc = pthread_create(&thread[t], NULL, threaded_task, (void *)t); >HANDLE handle = pthread_getw32threadhandle_np(thread[t]); >hwloc_set_thread_cpubind(topology, handle, > hwloc_get_obj_by_type(topology, HWLOC_OBJ_CORE, t), > 0); with ->cpuset after get_obj_by_type() Brice
- Re: [hwloc-users] Windows api threading functions equivale... Andrew Somorjai
- Re: [hwloc-users] Windows api threading functions equ... Samuel Thibault
- Re: [hwloc-users] Windows api threading functions... Andrew Somorjai
- Re: [hwloc-users] Windows api threading funct... Brice Goglin
- Re: [hwloc-users] Windows api threading f... Andrew Somorjai
- Re: [hwloc-users] Windows api threading funct... Samuel Thibault
- Re: [hwloc-users] Windows api threading f... Samuel Thibault
- Re: [hwloc-users] Windows api threading f... Brice Goglin
- Re: [hwloc-users] Windows api threading f... Andrew Somorjai