tpatki / papi-rapl

Adding a RAPL component to PAPI.
Other
5 stars 0 forks source link

Error compiling perf_events.c #1

Open alansill opened 5 years ago

alansill commented 5 years ago

perf_events.c: In function ‘_papi_pe_dispatch_timer’: perf_events.c:1712:35: error: dereferencing pointer to incomplete type int found_evt_idx = -1, fd = info->si_fd; ^ make[1]: [libpapi.so.4] Error 1 make[1]: Leaving directory `/root/perf/papi-rapl/src' make: [/root/perf/papi-rapl/src/libpfm4/lib/libpfm.a] Error 2

tpatki commented 5 years ago

Hello Alan, This is a 6 year old version of PAPI that is not maintained anymore. Since then, the PAPI team itslef has added monitoring through RAPL MSRs and supports multiple intel microarchitectures. Can you let me know what you're looking for? If you're looking at capping power through RAPL (i.e. control, not monitoring), I can help you port things to a newer version of PAPI or point you to other tools (libmsr/msr-safe).

alansill commented 5 years ago

Just looking for a simpel set of tools I can use to build a plugin to expose the package and memory power utilization on nodes in an HPC cluster. I've installed the papi-devel and papa-testsuite RPMs via yum on my CentOS 7.4 machine, so maybe you could just point me to the right place to look in the components installed by those packages, or other general usage information.

alansill commented 5 years ago

Specifically, issung the "papa_componetn_avail" command after insalling these packages yields the following (in part):

Name: rapl Linux SandyBridge RAPL energy measurements -> Disabled: CPU model not supported