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: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2014-01-06 12:07:52

Eloi Gaudry, le Mon 06 Jan 2014 17:16:53 +0100, a écrit :
> the PID of the process. I was assuming that casting this member to a HANDLE object would allow me to use hwloc_get_proc_cpubind,

No, PIDs are mere numbers, they have nothing to do with HANDLES. More
interestingly, PID values are valid along the whole systems, while
HANDLE values are only valid with a given process. You have to use
OpenProcess, to create a HANDLE from a PID.