Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] Having trouble getting CPU Model string on Windows 7 x64
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2014-01-28 10:32:16

Le 28/01/2014 14:31, Brice Goglin a écrit :
> Le 28/01/2014 13:00, Samuel Thibault a écrit :
>> Brice Goglin, le Tue 28 Jan 2014 12:46:24 +0100, a écrit :
>>> 42: xchg %ebx,%rbx
>>> I guess having both ebx and rbx on these lines isn't OK. On Linux, I get
>>> rsi instead of ebx, no problem.
>>> Samuel, any idea?
>> Mmm, IIRC, "unsigned long" on windows may not be 64bit but 32bit?
>> Perhaps we could rather include stdint.h and use uintptr_t or uint64_t
>> there (so any other unix with 32bit unsigned long is fixed), and in the
>> case of windows, include windows.h and use DWORDLONG.

The attached patch gets the x86 backend working on win32 and win64
(without breaking Linux/*BSD on
I am reusing the hwloc_uint64_t logic by manually reimplementing what's
not in hwloc/autogen/config.h yet.

Robin, I can send a new win64 build (based on master/v1.9) if you want
to test before I release an official v1.8 fix.