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 presets PAPI_FP_OPS, PAPI_SP_OPS or PAPI_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 than PAPI_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! πŸ’–πŸ«ΆπŸ‘‘