The PAPI high-level interface includes the following calls:

  • PAPI_start_counters - initialize and begin counting events
  • PAPI_num_counters - get the number of hardware counters currently supported by the PAPI high-level interface for the current platform
  • PAPI_read_counters - fill an array with the current counter values, reset the counters, and continue counting
  • PAPI_accum_counters - add the current counter values to the corresponding elements of the input array, reset the counters, and continue counting
  • PAPI_stop_counter - stop the counters and optionally fill an array with the current counter values
  • PAPI_flips - return data about the number of floating-point instructions per second indicated by the current counter values
  • PAPI_flops - return data about the number of floating-point operations per second indicated by the current counter values
  • PAPI_ips - return data about the number of CPU instructions per second indicated by the current counter values

The PAPI high-level API is also available in Fortran by using the prefix "PAPIF" (instead of PAPI). The PAPI distribution includes man pages on all the above, for Fortran calls as well as C.

 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement