A library to query system architecture
Maintained. Last release 5 days ago, commits in 7 of the last 26 weeks. Weaker on contributor spread.
pip install archspecArchspec (Python bindings)
Archspec aims at providing a standard set of human-understandable labels for various aspects of a system architecture like CPU, network fabrics, etc. and APIs to detect, query and compare them.
This project grew out of Spack and is currently under active development. At present it supports APIs to detect and model compatibility relationships among different CPU microarchitectures.
Getting started with development
The archspec Python package needs poetry to
be installed from VCS sources. The preferred method to install it is via
its custom installer outside of any virtual environment:
curl -sSL https://install.python-poetry.org | python3 -
You can refer to Poetry's documentation
for further details or for other methods to install this tool. You'll also need tox
to run unit test:
pip install --user tox
Finally, you'll need to clone the repository:
git clone --recursive https://github.com/archspec/archspec.git
Running unit tests
Once you have your environment ready you can run archspec unit tests
using tox from the root of the repository:
$ tox
[ ... ]
py27: commands succeeded
py35: commands succeeded
py36: commands succeeded
py37: commands succeeded
py38: commands succeeded
pylint: commands succeeded
flake8: commands succeeded
black: commands succeeded
congratulations :)
Citing Archspec
If you are referencing archspec in a publication, please cite the following
paper:
- Massimiliano Culpo, Gregory Becker, Carlos Eduardo Arango Gutierrez, Kenneth Hoste, and Todd Gamblin. . In , Online Event, November 12, 2020.