diff --git a/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild new file mode 100644 index 0000000000..b4cc94c893 --- /dev/null +++ b/sys-apps/CommsPowerManagement/CommsPowerManagement-0.2.1.ebuild @@ -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 +} diff --git a/sys-apps/CommsPowerManagement/Manifest b/sys-apps/CommsPowerManagement/Manifest new file mode 100644 index 0000000000..4a141e0618 --- /dev/null +++ b/sys-apps/CommsPowerManagement/Manifest @@ -0,0 +1 @@ +DIST CommsPowerManagement-0.2.1.tar.gz 32669 BLAKE2B 381aa8906377f0facdd909b53c4d8ba7d961a54691a4a3520f8c492aa6d97b55842536dcebd8f578373e2399a82af2c8098b2ac45332cfd1959e22e2e7de505d SHA512 6e449b7c2e199b67496b87725aa4595bd8107adfa1fb050b3cdd1c2db5620a3be4f784dd78f1e57bdea809a29cca7b27f55c08cfbc2b070f789100183508205a diff --git a/sys-apps/CommsPowerManagement/metadata.xml b/sys-apps/CommsPowerManagement/metadata.xml new file mode 100644 index 0000000000..7d9b6759d0 --- /dev/null +++ b/sys-apps/CommsPowerManagement/metadata.xml @@ -0,0 +1,34 @@ + + + + + https://github.com/intel/CommsPowerManagement/issues + intel/CommsPowerManagement + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +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. + + + Install ansible playbook + +