sys-apps/CommsPowerManagement: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-08-26 04:10:15 +02:00
parent 0238b10c15
commit 115605d778
3 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MYPV="pwr-v${PV}"
PYTHON_COMPAT=( python3_{8..10} pypy3 )
inherit distutils-r1
DESCRIPTION="Python library providing various tools to work with Intel processors"
HOMEPAGE="https://github.com/intel/iCommsPowerManagement"
SRC_URI="https://github.com/intel/CommsPowerManagement/archive/refs/tags/${MYPV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MYPV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="${PYTHON_DEPS}"
DEPEND="${RDEPEND}"
IUSE="ansible"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
src_prepare() {
distutils-r1_python_prepare_all
}
src_compile() {
pushd "pwr" || die
python_foreach_impl distutils-r1_python_compile
popd || die
}
src_install() {
python_foreach_impl python_install
dodoc *.md
#docinto telemetry
#dodoc telemetry/*.md
dodoc -r intel_sst_os_interface
#where to put those?
use ansible && dodoc -r ansible
}
python_install() {
pushd "pwr" || die
distutils-r1_python_install
popd || die
python_doscript power.py
python_doscript sst_bf.py
#python_doscript telemetry/pkgpower.py
}

View File

@@ -0,0 +1 @@
DIST CommsPowerManagement-0.2.1.tar.gz 32669 BLAKE2B 381aa8906377f0facdd909b53c4d8ba7d961a54691a4a3520f8c492aa6d97b55842536dcebd8f578373e2399a82af2c8098b2ac45332cfd1959e22e2e7de505d SHA512 6e449b7c2e199b67496b87725aa4595bd8107adfa1fb050b3cdd1c2db5620a3be4f784dd78f1e57bdea809a29cca7b27f55c08cfbc2b070f789100183508205a

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<bugs-to>https://github.com/intel/CommsPowerManagement/issues</bugs-to>
<remote-id type="github">intel/CommsPowerManagement</remote-id>
</upstream>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<longdescription lang="en">
Introduction
Recent generations of the Intel® Xeon® family processors allow configurations where:
Turbo Boost can be enabled on a per-core basis.
Some cores can be given a higher base frequency than others
Overview
The scripts provided are as follows:
power.py allows the user to adjust the frequencies and Turbo-Boost availability on a core-by-core basis. This script allows the adjustment of P-states, C-states and Turbo-Boost.
sst_bf.py allows the user to confure the system for Intel® Speed Select Technology - Base Frequency (Intel® SST-BF). This allows some cores to run at a higher base frequency than others.
pwr.py a python library which can be imported into an application, to measure/modify core frequencies of a CPU to utilize Intel® Speed Select Technology.
The 'pwr' library is built to help take advantage of various Intel processor features such as:
- Core and uncore frequency scaling
- SST-BF technology
- SST-CP technology
It is intended to be used to build various orchestration and platform power management tools.
</longdescription>
<use>
<flag name="ansible">Install ansible playbook</flag>
</use>
</pkgmetadata>