查询系统架构的库
项目描述
Archspec (Python绑定)
Archspec旨在提供一套人类可理解的标签,用于表示系统架构的各个方面,如CPU、网络布线等,并提供API来检测、查询和比较它们。
该项目源于Spack,目前正在积极开发中。目前它支持检测和建模不同CPU微架构之间兼容性关系的API。
开始开发
Python 包 archspec
需要从 VCS 源安装 poetry。建议使用其自定义安装程序在虚拟环境外安装。
curl -sSL https://install.python-poetry.org | python3 -
您可以参考 Poetry 的文档 获取更多详细信息或安装此工具的其他方法。您还需要 tox
来运行单元测试。
pip install --user tox
最后,您需要克隆仓库。
git clone --recursive https://github.com/archspec/archspec.git
运行单元测试
环境准备就绪后,您可以使用 tox
从仓库根目录运行 archspec
单元测试。
$ 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 :)
引用 Archspec
如果您在出版物中引用了 archspec
,请引用以下论文:
- Massimiliano Culpo, Gregory Becker, Carlos Eduardo Arango Gutierrez, Kenneth Hoste, 和 Todd Gamblin.
archspec
: A library for detecting, labeling, and reasoning about microarchitectures. 在 2nd International Workshop on Containers and New Orchestration Paradigms for Isolated Environments in HPC (CANOPIE-HPC'20),线上活动,2020年11月12日。
许可证
Archspec 根据 MIT 许可证和 Apache 许可证(版本 2.0)进行分发。用户可以选择任一许可证。
所有新的贡献都必须在 MIT 和 Apache-2.0 许可证下进行。
有关详细信息,请参阅 LICENSE-MIT、LICENSE-APACHE、COPYRIGHT 和 NOTICE。
SPDX-License-Identifier: (Apache-2.0 OR MIT)
LLNL-CODE-811653
项目详情
下载文件
下载适用于您平台文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。
源代码分发
archspec-0.2.4.tar.gz (52.8 kB 查看哈希值)
构建分发
archspec-0.2.4-py3-none-any.whl (73.0 kB 查看哈希值)