Hello, On windows, set/get_cpubind() are implemented by called set/get_proc_cpubind() with GetCurrentProcess() as a 2nd argument, so your code should be doing exactly the same, and I don't see what could be going on here. Do you pass any flag in these cpubind functions ? Do you get any useful error code in errno ?
Brice static int hwloc_win_set_thisproc_cpubind(hwloc_topology_t topology, hwloc_const_bitmap_t hwloc_set, int flags) { return hwloc_win_set_proc_cpubind(topology, GetCurrentProcess(), hwloc_set, flags); } static int hwloc_win_get_thisproc_cpubind(hwloc_topology_t topology, hwloc_bitmap_t hwloc_cpuset, int flags) { return hwloc_win_get_proc_cpubind(topology, GetCurrentProcess(), hwloc_cpuset, flags); } Le 06/01/2014 16:04, Eloi Gaudry a écrit : > > Hi, > > > > On Windows, hwloc_get_cpubind and hwloc_set_cpubind works correctly > but I cannot use hwloc_get_proc_cpubind or hwloc_set_proc_cpubind > using the current process handle as 2^nd parameter (no matter what the > last one is). > > Any clue on this ? I'm trying to add support for Windows to an > hwloc-ps like utility, thus, I need to be able to use the > hwloc_get_proc_cpubind method. > > > > Regards, > > Eloi > > > > > > > > _______________________________________________ > hwloc-users mailing list > hwloc-us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users