---
name: "PAPI_flips_rate"
section: "3"
platform: "linux"
package: "libpapi-dev"
version: "7.1.0-5+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PAPI_flips_rate"
---

# PAPI\_flips\_rate(3)

Simplified call to get Mflips/s (floating point instruction rate), real and processor time.

## NAME

PAPI\_flips\_rate - Simplified call to get Mflips/s (floating point instruction rate), real and processor time.

## 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 \
 *\*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

**Return values**

*PAPI\_EINVAL* The counters were already started by something other than **PAPI\_flips\_rate()**. \
 *PAPI\_ENOEVNT* The floating point instructions event does not exist. \
 *PAPI\_ENOMEM* Insufficient memory to complete the operation.

The first call to **PAPI\_flips\_rate()** will initialize the PAPI interface, set up the counters to monitor the floating point instructions event and start the counters.

Subsequent calls will 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()**.

**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. Note that **PAPI\_flips\_rate()** is thread-safe and can therefore be called by multiple threads.

**See also**

**PAPI\_flops\_rate()**

**PAPI\_ipc()**

**PAPI\_epc()**

## Author

Generated automatically by Doxygen for PAPI from the source code.
