mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
a small C library for x86 CPU detection and feature extraction
6b09bceb66
On Windows, we don't have the API that Linux provides, which can be used to query MSRs of particular CPU cores. However, the same behaviour can be emulated. Say that the driver handle object also stores 'dedicated thread index'. When you call 'cpu_msr_driver_open()', this index is set to -1, so further API functions do not force which core should be executing RDMSR code. I.e. "I don't care on which core I run". However, if this is non-negative number, the subsequent functions like cpu_rdmsr() are forced to pass through this core by using temporary affinity mask. |
||
---|---|---|
contrib/MSR Driver | ||
cpuid_tool | ||
debian | ||
libcpuid | ||
tests | ||
.gitignore | ||
AUTHORS | ||
ChangeLog | ||
configure.ac | ||
COPYING | ||
libcpuid.dsw | ||
libcpuid.pc.in | ||
libcpuid_vc9.sln | ||
libcpuid_vc71.sln | ||
Makefile.am | ||
NEWS | ||
README |
libcpuid --------- libcpuid provides CPU identification for the x86 (and x86_64). For details about the programming API, please see the docs on the project's site (http://libcpuid.sourceforge.net/) Configuring after checkout -------------------------- Under linux, where you download the sources, there's no configure script to run. This is because it isn't a good practice to keep such scripts in a source control system. To create it, you need to run the following commands once, after you checkout the libcpuid sources from github: 1. run "libtoolize" 2. run "autoreconf --install" You need to have autoconf, automake and libtool installed. After that you can run "./configure" and "make" - this will build the library. "make dist" will create a tarball (with "configure" inside) with the sources.