Once PAPI is installed, make sure it is capable of reading RAPL information. For instance, you can run this rapl-read program. You may need to modify the Makefile in order to specify the installation directory of PAPI. Once compiled, running the rapl-read program should result in the following output:
$ ./rapl_plot Found rapl component at cid 2 Found: rapl:::THERMAL_SPEC_CNT:PACKAGE0 Found: rapl:::MINIMUM_POWER_CNT:PACKAGE0 Found: rapl:::MAXIMUM_POWER_CNT:PACKAGE0 Found: rapl:::MAXIMUM_TIME_WINDOW_CNT:PACKAGE0 Found: rapl:::PACKAGE_ENERGY_CNT:PACKAGE0 Found: rapl:::PP1_ENERGY_CNT:PACKAGE0 Found: rapl:::DRAM_ENERGY_CNT:PACKAGE0 Found: rapl:::PP0_ENERGY_CNT:PACKAGE0 Found: rapl:::THERMAL_SPEC:PACKAGE0 Found: rapl:::MINIMUM_POWER:PACKAGE0 Found: rapl:::MAXIMUM_POWER:PACKAGE0 Found: rapl:::MAXIMUM_TIME_WINDOW:PACKAGE0 Found: rapl:::PACKAGE_ENERGY:PACKAGE0 Found: rapl:::PP1_ENERGY:PACKAGE0 Found: rapl:::DRAM_ENERGY:PACKAGE0 Found: rapl:::PP0_ENERGY:PACKAGE0 [...] 4.7213 0.0 (* Average Power for rapl:::MAXIMUM_TIME_WINDOW:PACKAGE0 *) 4.7213 3.0 (* Average Power for rapl:::PACKAGE_ENERGY:PACKAGE0 *) 4.7213 0.2 (* Average Power for rapl:::PP1_ENERGY:PACKAGE0 *) 4.7213 0.8 (* Average Power for rapl:::DRAM_ENERGY:PACKAGE0 *) 4.7213 0.1 (* Average Power for rapl:::PP0_ENERGY:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::THERMAL_SPEC_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MINIMUM_POWER_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MAXIMUM_POWER_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MAXIMUM_TIME_WINDOW_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::PACKAGE_ENERGY_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::PP1_ENERGY_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::DRAM_ENERGY_CNT:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::PP0_ENERGY_CNT:PACKAGE0 *) 4.8218 46156882941.9 (* Average Power for rapl:::THERMAL_SPEC:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MINIMUM_POWER:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MAXIMUM_POWER:PACKAGE0 *) 4.8218 0.0 (* Average Power for rapl:::MAXIMUM_TIME_WINDOW:PACKAGE0 *) 4.8218 2.9 (* Average Power for rapl:::PACKAGE_ENERGY:PACKAGE0 *) 4.8218 0.2 (* Average Power for rapl:::PP1_ENERGY:PACKAGE0 *) 4.8218 0.8 (* Average Power for rapl:::DRAM_ENERGY:PACKAGE0 *)