Skip to content
Snippets Groups Projects
Commit 1d85b5f3 authored by Georges Da Costa's avatar Georges Da Costa
Browse files

Corrects a bug to access RAPL data

parent 4fb76972
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,8 @@ class Mojitos:
executor.hosts("sh -c 'echo 0 >/proc/sys/kernel/perf_event_paranoid'", root=True)
mode = os.stat('/sys/class/powercap/intel-rapl/intel-rapl:0/constraint_0_max_power_uw')
if not mode.st_mode & stat.S_IWUSR:
executor.hosts("chmod a+w /sys/class/powercap/intel-rapl/*/*", root=True)
executor.hosts("chmod a+w /sys/class/powercap/intel-rapl/*/*/*", root=True)
executor.hosts("chmod a+rw /sys/class/powercap/intel-rapl/*/*", root=True)
executor.hosts("chmod a+rw /sys/class/powercap/intel-rapl/*/*/*", root=True)
if self.network:
self.net_dev = executor.get_network_if()
......
......@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup(
name="expetator",
version="0.0.6",
version="0.0.7",
author="Georges Da Costa",
author_email="georges.da-costa@irit.fr",
description="A framework for monitoring HPC applications using DVFS",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment