Le 25/10/2012 23:42, Samuel Thibault a écrit :
> Robin Scher, le Thu 25 Oct 2012 23:39:46 +0200, 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?
> Currently, no.
>
> hwloc itself does not have a table of such strings, and each OS has its
> own table.
>

Actually there's no table on Linux/x86. It uses cpuid to fill the model
name in the vast majority of cases [1]. We could use that to get
consistent names on non-Linux non-Solaris OS, and in the x86 backend.

Brice

[1] http://lxr.free-electrons.com/source/arch/x86/kernel/cpu/common.c#L389

Reply via email to