jp6/cu128/: cpufeature-0.2.3 metadata and description

Homepage Simple index

Python CPU Feature Detection

author Robert A. McLeod
author_email "Robert A. McLeod" <robbmcleod@gmail.com>
classifiers
  • Development Status :: 3 - Alpha
  • Intended Audience :: Developers
  • Intended Audience :: Information Technology
  • License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
  • Programming Language :: Python
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Topic :: Software Development :: Libraries :: Python Modules
  • Topic :: System :: Hardware
  • Operating System :: Microsoft :: Windows
  • Operating System :: Unix
description_content_type text/markdown
license CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. See https://creativecommons.org/publicdomain/zero/1.0/legalcode for details.
maintainer Robert A. McLeod
maintainer_email "Robert A. McLeod" <robbmcleod@gmail.com>
platform
  • any
project_urls
  • Homepage, http://github.com/robbmcleod/cpufeature
requires_python >=3.9

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
cpufeature-0.2.3-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_28_x86_64.whl
Size
33 KB
Type
Python Wheel
Python
3.12

CPUFeature

CPUFeature is a tool for detecting CPU features on x86/AMD64 processors. In particular it is engineered to have very low overhead on import (~ 1 ms) and to detect features that are often important in high-performance computing where hybrid combinations of multi-threading and multi-processing are used. Detects CPU features such as:

It is written in C99. It supports Windows with MSVC and Linux with GCC/LLVM compilers. MacOSX should also work with GCC/LLVM. CPUFeature is licensed under Creative Commons Zero, so it may be freely incorporated as a submodule into your own projects.

CPUFeature is considered to be in an alpha state because while it is tested via GitHub Actions on a variety of platforms, we expect edge cases to appear.

Warning

As CPUFeature uses the cpuid instruction, its behavior in the case of virtualization or containerization is undefined. Whether or not it returns fully or partially correct information will depend on the implementation of the cpuid function by the virtual machine. Test before trusting the results.

Example

The module generates a dict called CPUFeature on import which contains useful information regarding optimization and compilation for the host. For my Intel i7-7820X Skylake CPU, it generates the following info:

    > python -c "import cpufeature; cpufeature.print_features()"
  === CPU FEATURES ===
      VendorId                : GenuineIntel
      num_virtual_cores       : 16
      num_physical_cores      : 8
      num_threads_per_core    : 2
      num_cpus                : 1
      cache_line_size         : 64
      cache_L1_size           : 32768
      cache_L2_size           : 1048576
      cache_L3_size           : 11534336
      OS_x64                  : True
      OS_AVX                  : True
      OS_AVX512               : True
      MMX                     : True
      x64                     : True
      ABM                     : True
      RDRAND                  : True
      BMI1                    : True
      BMI2                    : True
      ADX                     : True
      PREFETCHWT1             : False
      MPX                     : True
      SSE                     : True
      SSE2                    : True
      SSE3                    : True
      SSSE3                   : True
      SSE4.1                  : True
      SSE4.2                  : True
      SSE4.a                  : False
      AES                     : True
      SHA                     : False
      AVX                     : True
      XOP                     : False
      FMA3                    : True
      FMA4                    : False
      AVX2                    : True
      AVX512f                 : True
      AVX512pf                : False
      AVX512er                : False
      AVX512cd                : True
      AVX512vl                : True
      AVX512bw                : True
      AVX512dq                : True
      AVX512ifma              : False
      AVX512vbmi              : False
      AVX512vbmi2             : False
      AVX512vnni              : False

Notes on Fields

Authors

Release Notes

0.2.2

Under Development

0.2.1

0.2.0

0.1.1

0.1.0