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 presets PAPI_FP_INS, PAPI_VEC_SP or PAPI_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 than PAPI_flips_rate(). rude. they were taken 😭
  • PAPI_ENOEVNT β€” the floating point instructions event does not exist
  • PAPI_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 πŸ’œπŸŽ€πŸ¦‹