Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] [windows] hwloc_get_proc_cpubind issue, even with current process handle as 2nd parameter
From: Eloi Gaudry (Eloi.Gaudry_at_[hidden])
Date: 2014-01-06 10:37:36


Hi Brice,
I tried to use every flag but MEMBIND.
AFAIK, the issue seems related to the GetAffinityMask call inside hwloc_win_get_proc_cpubind : it always returns 0.
I'll try to get more error information tomorrow.
Regards,
Eloi

From: hwloc-users [mailto:hwloc-users-bounces_at_[hidden]] On Behalf Of Brice Goglin
Sent: lundi 6 janvier 2014 16:30
To: Hardware locality user list
Subject: Re: [hwloc-users] [windows] hwloc_get_proc_cpubind issue, even with current process handle as 2nd parameter

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 2nd 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-users_at_[hidden]<mailto:hwloc-users_at_[hidden]>

http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users