Can you send your lstopo output?
preferably with latest trunk tarball
One way to solve this problem (which may also occur on old Linux
distribs) would be to store the CPU model in the machine object. But
we'll have to make sure all processors in the machine are indeed of the
same model. On MacOSX, it looks like sysctl reports a single socket
description anyway, so no problem.
Le 27/10/2012 11:37, Olivier Cessenat a Ã©crit :
> Robin Scher indicated how to get the info on a Mac.
> At least on mine (OSX 10.4) with darwin 8.11.1
> $ sysctl -a machdep.cpu.brand_string
> machdep.cpu.brand_string: Intel(R) Core(TM)2 CPU T7400 @
> I unfortunately have no socket:
> *** The number of sockets is unknown
> [ from Third example: Print the number of sockets. of
> I see objects type 1,2,4 and 6 only.
> So, will there be another (non socket hwloc object based) way to get
> CPUModel or will it find sockets as on Linux ?
> Olivier Cessenat.
> Le jeudi 25 octobre 2012 Ã 23:42 +0200, Brice Goglin a Ã©crit :
>> Assuming you found the socket hwloc object whose name you want, do
>> hwloc_obj_get_info_by_name(obj, "CPUModel");
>> you'll get const char * pointing to what you want.
>> However, this info is only available on Linux and Solaris for now. If
>> you have any idea of to discover such info on other OS, please let us
>> Le 25/10/2012 23:39, Robin Scher a Ã©crit :
>>> Is there a way to get this string (e.g. "Intel(R) Core(TM) i7 CPU M
>>> 620 @ 2.67GHz") consistently on Windows, Linux, OS-X and Solaris?
>>> Robin Scher Uberware
>>> +1 (213) 448-0443
>>> hwloc-users mailing list
>> hwloc-users mailing list
> hwloc-users mailing list