Collect information about x86 CPU
Project description
Uses cpuid instruction to get information about CPU.
Queries OS as well as cpuid to see if the OS / CPU supports AVX instructions.
Quickstart
>>> from x86cpu import info >>> print(info.model_display, info.family_display) (69, 6) >>> print(info.vendor) GenuineIntel >>> print(info.brand) 'Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz'
You can run the cpuid command directly. The argument to cpuid goes into the EAX register before calling the CPUID instruction:
>>> from x86cpu import cpuid >>> cpuid(1) {'eax': 263761L, 'ebx': 17827840L, 'ecx': 2147154879L, 'edx': 3219913727L}
Some CPUID commands also care about the value in the ECX register. You can set this with a second optional argument to cpuid:
>>> cpuid(13, 1) {'eax': 1, 'ebx': 0, 'ecx': 0, 'edx': 0}
The package installs a command line tool x86report giving output like this:
$ x86report x86cpu report ------------- brand : Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz vendor : GenuineIntel model (display) : 69 family (display) : 6 model : 5 family : 6 extended model : 4 extended family : 0 stepping : 1 processor type : 0 signature : 263761 MMX : True 3DNow! : True SSE : True SSE2 : True SSE3 : True SSSE3 : True SSE4.1 : True SSE4.2 : True supports AVX : True supports AVX2 : True
Code
See https://github.com/matthew-brett/x86cpu
Released under the BSD two-clause license - see the file LICENSE in the source distribution.
The latest released version is at https://pypi.python.org/pypi/x86cpu
Support
Please put up issues on the x86cpu issue tracker.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for x86cpu-0.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae0df4ff24d00770b5fb852f9d39d9fd4d6a7e334b2698edd4531944f3d31cba |
|
MD5 | 51d0599402c8666a3d45fefd4fd1a2ee |
|
BLAKE2b-256 | 4c981becc3d8966d8ad835c56ce3a9e22b84ab4671e11f2d58579111c3626088 |
Hashes for x86cpu-0.4-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4076481a5efb167a94074fb020e300d88969c0f81f76ff8419755856fc6e56d3 |
|
MD5 | 5ca6a669a5b85a969e1c12e4377b63e5 |
|
BLAKE2b-256 | 6671cf08662888dcfd02f04a3a295c69f394198bb997e831a8a5216ed01f7b28 |
Hashes for x86cpu-0.4-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b631581757771f8941797b4c80caab8ab9d3a22f3225eebaacb88e2a3d929f6 |
|
MD5 | ff2d659ca95a23fde5d0849f89e24a92 |
|
BLAKE2b-256 | 4de723a2224fc3bbb879078d819462ee0492afd7d7d3cc96d881b0d713a40bda |
Hashes for x86cpu-0.4-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cce206afca792d870841cc12cd60b80954a3084594f9390c02ed0209f3fed989 |
|
MD5 | 9742b6af3b98e2baa4891618471b2cdf |
|
BLAKE2b-256 | df2e900c01a09a1351495592d19241a1e6bc828af248833f0e6e27eda35b6227 |
Hashes for x86cpu-0.4-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51686f2c57557260c3c6c72743702af3fe586044a4cbe19045998bc53081aa91 |
|
MD5 | f2fa748a997033372b8562f5e6969408 |
|
BLAKE2b-256 | 9dc55a05cf0dc565ea6a164386620ac17fd90bdc5755fc838a5952c20496f327 |
Hashes for x86cpu-0.4-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc10b740257a79225193701ad9d918b714987e2cb91847d25c3b3371e72eaa70 |
|
MD5 | ca197a02126ead66708ca05b502e118c |
|
BLAKE2b-256 | 1344ab69f746870854a5a50197bec4be98bd25976799690218987a2685598e9a |
Hashes for x86cpu-0.4-cp34-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9065d7f31ec2a4147c659166f3fedcd2ad201022dd1cb3c5468ebdcb6962304d |
|
MD5 | dc442e84d3228faa843f9d1bcd7d69c7 |
|
BLAKE2b-256 | 8abf6eb46af2819253027c53b1f14d57a0d284a34dd10543902b790e8cb3f322 |
Hashes for x86cpu-0.4-cp27-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1df5b5e0dd6792070cc0589d5ffff75ac54c06314a425c0d06f453719ff8d79a |
|
MD5 | e5adac5c496b299365245ed6db870c13 |
|
BLAKE2b-256 | 44bbacc75caec0251e9a73d540eaea3fe41b8d959fc583d52e608e181e2e2587 |
Hashes for x86cpu-0.4-cp27-none-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb82cd4b4cbe81cbc20e328225018e55725b3d15e75c5b0cdd3d2727f36b125 |
|
MD5 | 0f7928c03baf56c25d4ea511f64f0004 |
|
BLAKE2b-256 | 03ba281f30422375e90f86544f5b63f5e34ac4d3c975b993e83daa6ac2484998 |