PAPI_epc(3)
π NAME π
Okay bestie, welcome to PAPI_epc(3) β the manual page for PAPI_epc, aka Simplified call to get arbitrary events per cycle, real and processor time. That's the whole name vibe. π
β¨ SYNOPSIS β¨
The synopsis is giving βsee the C interface belowβ energy β keep scrolling, babe. π
π Detailed Description π
π§ C Interface: π§
#include <papi.h>
int PAPI_epc( int event, float *rtime, float *ptime, long long *ref,
long long *core, long long *evt, float *epc );
πΈ Parameters πΈ
eventβ event code to be measured (0defaults toPAPI_TOT_INS).*rtimeβ realtime since the latest call.*ptimeβ process time since the latest call.*refβ incremental reference clock cycles since the latest call.*coreβ incremental core clock cycles since the latest call.*evtβ events since the latest call.*epcβ incremental events per cycle since the latest call.
π Return values π
PAPI_EINVALβ The counters were already started by something other thanPAPI_epc().PAPI_ENOEVNTβ One of the requested events does not exist.PAPI_ENOMEMβ Insufficient memory to complete the operation.
The first call to PAPI_epc() will initialize the PAPI interface, set up the counters to monitor the user specified event, PAPI_TOT_CYC, and PAPI_REF_CYC (if it exists) and start the counters. Setup era, honestly. β¨
Subsequent calls will read the counters and return real time, process time, event counts, the core and reference cycle count and EPC rate since the latest call to PAPI_epc(). Numbers go brrr. π
PAPI_epc() can provide a more detailed look at algorithm efficiency in light of clock variability in modern cpus. MFLOPS is no longer an adequate description of peak performance if clock rates can arbitrarily speed up or slow down. By allowing a user specified event and reporting reference cycles, core cycles and real time, PAPI_epc provides the information to compute an accurate effective clock rate, and an accurate measure of computational throughput. Note that PAPI_epc() is thread-safe and can therefore be called by multiple threads. Multi-thread bestie approved. π«Ά
π¦ See also π¦
PAPI_flips_rate()PAPI_flops_rate()PAPI_ipc()PAPI_rate_stop()
β Author β
Literally generated automatically by Doxygen for PAPI from the source code.
Okay that's the whole page. Sign-off tea: version 7.2.0.0, dated Wed Jun 25 2025 19:30:48, and it's the PAPI_epc(3) page. Stay iconic, bestie. πβ¨
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms