Measuring the energy consumption (nanoJoules) of SaC programs through RAPL.
The project uses the cmake-common
submodule, and so upon cloning this
repository it is important that you first initialize submodules.
git submodule update --init --recursive
cmake -B build
cmake --build build
Reading RAPL requires slightly elevated permissions.
I suggest adding a new rapl
group.
sudo addgroup rapl
sudo usermod -aG rapl $(whoami)
And then adding the necessary entries to /etc/sysfs.conf
for the available
packages. (Requires sysfsutils
to be installed.)
mode class/powercap/intel-rapl:0/energy_uj = 0440
owner class/powercap/intel-rapl:0/energy_uj = root:rapl