PAPI_flips_rate(3)
π PAPI_flips_rate(3) β the PAPI manual, bestie edition
okay so this is PAPI_flips_rate(3) straight out of the PAPI manual pages, and I'm gonna walk you through it like we're texting at 1am π«Ά
β¨ NAME β¨
PAPI_flips_rate β the simplified call that gets you Mflips/s (that's the floating point instruction rate, iykyk), plus real time and processor time. One stop shop, no cap π
πΈ SYNOPSIS πΈ
π Detailed Description π
π C Interface π
#include <papi.h>
int PAPI_flips_rate( int event, float *rtime, float *ptime, long long *flpins, float *mflips );
π¦ Parameters π¦
eventβ one of the three presetsPAPI_FP_INS,PAPI_VEC_SPorPAPI_VEC_DP. pick one babe, those are your options β¨*rtimeβ realtime since the latest call*ptimeβ process time since the latest call*flpinsβ floating point instructions since the latest call*mflipsβ incremental (Mega) floating point instructions per seconds since the latest call
ngl mflips is "per seconds" in the original and I'm not fixing it, that's just how it's written π
π Return values π
PAPI_EINVALβ the counters were already started by something other thanPAPI_flips_rate(). rude. they were taken πPAPI_ENOEVNTβ the floating point instructions event does not existPAPI_ENOMEMβ insufficient memory to complete the operation
π₯ DESCRIPTION π₯
So the first call to PAPI_flips_rate() is your main character moment: it initializes the PAPI interface, sets up the counters to monitor the floating point instructions event, and starts the counters. periodt π
Subsequent calls just read the counters and return real time, process time, floating point instructions, and the Mflip/s rate since the latest call to PAPI_flips_rate(). literally that easy π
PAPI_flips_rate() returns information related to floating point instructions using the floating point instructions event. This is intended to measure instruction rate through the floating point pipe with no massaging. no extra work, no drama, just vibes π§
And the best part? PAPI_flips_rate() is thread-safe and can therefore be called by multiple threads. she's shared and she's fine with it πβ¨
β See also β
PAPI_flops_rate()PAPI_ipc()PAPI_epc()
go read those too bestie, they're giving the same energy π
πΈ Author πΈ
Generated automatically by Doxygen for PAPI from the source code. (yes the robots wrote the author line, we respect the robots π«‘)
Version 7.2.0.0 Β· Wed Jun 25 2025 19:30:48 β that's the version and date stamp from the footer, mwah, thanks for reading, ily, go measure some flips πππ¦
π¦ 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