API Detects IA-32 and x64 Platform CPU Characteristics

Submit New Article


Last Modified On :   October 3, 2008 5:09 PM PDT
Rate
 


by Eric Palmer
Sr. Application Engineer, Software Enabling Division

Why Should I Care About This Code Sample?
This API with example Windows* utility is useful for detecting IA-32 CPU characteristics including Hyper-Threading Technology, instruction set extensions like Streaming SIMD Extensions 2 (SSE2), and the processor's cache configuration. New multi-core technology support includes the ability to enumerate and map processor packages, cores, and logical processors to processor affinity masks - useful for tuning threaded applications for multi-core technology or Hyper-Threading Technology.

The WinCPUID API can be used seamlessly between your application’s build configurations for IA-32 and x64 platforms. For more information on the cross-platform use of the CPUID instruction, see How to Use All of CPUID for x64 Platforms under Microsoft® Visual Studio™ .Net 2005.

Also includes new C++ abstraction class "CWinCPUID" for easier use in C++ applications.

Installation produces a shortcut on the Start>Programs menu to access the source code, sample application, and the help file including the WinCPUID API documentation.

Target Audience
General interest, general application developer

Sample Category
Complete Project

Implementation Language
C, C++

Target Hardware & Software Platforms
Hardware Systems: IA-32 platforms
Operating Systems: Microsoft Windows* XP, Windows* x64, Windows* Server 2003
Compilers: Microsoft Visual Studio* .Net 2005** or Visual Studio .Net 2003 ** Microsoft Visual Studio* .Net 2005** required for x64 platform support

Download the source code for IA-32 and x64 platforms [ZIP 3.6MB]. Updated October 2006
Download the x64 binaries (executables, DLLs, libs, and headers) [ZIP 4.8MB]. Updated October 2006




Comments (0)



Leave a comment

Name (required)

Email (required; will not be displayed on this page)

Your URL (optional)


Comment*