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 14:52:44


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-bounces_at_[hidden]] 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-users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users