PAPI_flops_rate(3)
π PAPI_flops_rate(3) β PAPI manual, bestie π
okay so this is the PAPI page for PAPI_flops_rate, and it's literally here to give you a simplified call that gets Mflops/s (floating point operation rate), plus real and processor time. No cap, it's a whole vibe. π¦
β¨ NAME β¨
PAPI_flops_rate β Simplified call to get Mflops/s (floating point operation rate), real and processor time.
πΈ SYNOPSIS πΈ
π Detailed Description π
π C Interface: π
#include <papi.h>
int PAPI_flops_rate ( int event, float *rtime, float *ptime, long
long *flpops, float *mflops );
π«Ά Parameters π«Ά
eventβ one of the three presetsPAPI_FP_OPS,PAPI_SP_OPSorPAPI_DP_OPS*rtimeβ realtime since the latest call*ptimeβ process time since the latest call*flpopsβ floating point operations since the latest call*mflopsβ incremental (Mega) floating point operations per seconds since the latest call
π₯ Return values π₯
PAPI_EINVALβ The counters were already started by something other thanPAPI_flops_rate().PAPI_ENOEVNTβ The floating point operations event does not exist.PAPI_ENOMEMβ Insufficient memory to complete the operation.
okay so the first call to PAPI_flops_rate() is the main character: it initializes the PAPI interface, sets up the counters to monitor the floating point operations event, and starts the counters. periodt. β¨
Subsequent calls read the counters and return real time, process time, floating point operations, and the Mflop/s rate since the latest call to PAPI_flops_rate(). It's giving incremental updates, iykyk. π
PAPI_flops_rate() returns information related to theoretical floating point operations rather than simple instructions. It uses the floating point operations event which attempts to 'correctly' account for, e.g., FMA undercounts and FP Store overcounts. Note that PAPI_flops_rate() is thread-safe and can therefore be called by multiple threads. π
π¦ See also π¦
PAPI_flips_rate()PAPI_ipc()PAPI_epc()PAPI_rate_stop()
π Author π
Generated automatically by Doxygen for PAPI from the source code.
and finally, a cute little sign-off: this PAPI_flops_rate(3) page is from PAPI, version 7.2.0.0, dated Wed Jun 25 2025 19:30:48 β bye bestie, go measure those flops! ππ«Άπ
π¦ 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