Yes, you're right, this is exactly what I did after my last email. Sorry for the convenience, that was a silly mistake from my own. I'm going to start another thread related to building from source on Windows, using Visual Studio. Thanks for the good work ! Eloi
-----Original Message----- From: hwloc-users [mailto:hwloc-users-boun...@open-mpi.org] On Behalf Of Samuel Thibault Sent: lundi 6 janvier 2014 18:15 To: Hardware locality user list Subject: Re: [hwloc-users] [windows] hwloc_get_proc_cpubind issue, even with current process handle as 2nd parameter Samuel Thibault, le Mon 06 Jan 2014 18:07:59 +0100, a écrit : > 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, Let me fix my typos: No, PIDs are mere numbers, they have nothing to do with HANDLEs. More interestingly, PID values are valid along the whole system, while HANDLE values are only valid within a given process. You have to use OpenProcess(), to create a HANDLE from a PID value. Samuel _______________________________________________ hwloc-users mailing list hwloc-us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users