Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

Getting Processor Spec Number in c/c++

alandiego_schreiner
704 Views

Hi,

I'm working in a Desktop Hardware Inventory Project, and I need to get the sSpec number of Intel Procesors in the local machine. Is there a way to get this information with c/c++/c# ?

Thanks.

0 Kudos
3 Replies
Tamer_Assad
Innovator
704 Views

Hi alandiego,

Yes, you can use Intel IPP simply.

Please check this articles, I hope it is helpful.

"Is there any function to detect processor type from Intel IPP?"
URL: http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-is-there-any-function-to-dete ct-processor-type/

Regards,
Tamer

0 Kudos
alandiego_schreiner
704 Views

Thanks, but I need an unique identification that help me to find sSpec.

I'm trying to do this: I compose the CPU String and plus CPU clock and L2 cache, then I found the unique identification that allow me to find sSpec on Intel's Website.

Using the CPU Family,Model and Stepping converted in Hex I found the CPU string.


Example:

CPU family : 15
model : 4
stepping : 1

CPU family : 0F
model : 4
stepping : 1

CPUID String = 0f41h

Newer processors have more characters in the CPUID String.

Example:

Intel Core i5 Processor I5-750S - CPUID String = 106E5h
Intel Core i5 Processor I5-661- CPUID String = 20652h

How can I compose this new CPUID String?

0 Kudos
Reply