PAPIf_hl_region_end(3)

πŸ’… PAPIf_hl_region_end(3) β€” the PAPI manual, but make it bestie-coded πŸŽ€

✨ NAME ✨

PAPIf_hl_region_end β€” reads and stores hardware events at the end of an instrumented code region. It's literally the closing-bracket era for your PAPI high-level region, bestie πŸ’–

πŸ’« SYNOPSIS πŸ’«

Detailed Description

Fortran Prototype:

#include 'fpapi.h'
PAPIf_hl_region_end( C_STRING region, C_INT check )

Parameters

  • region β€” a unique region name corresponding to PAPIf_hl_region_begin πŸŽ€

Return values

  • PAPI_OK β€” that's the whole entry in the original list, bestie πŸ’…
  • PAPI_ENOTRUN β€” EventSet is currently not running or could not determined 🫠
  • PAPI_ESYS β€” A system or C library call failed inside PAPI, see the errno variable 😭
  • PAPI_EMISC β€” PAPI has been deactivated due to previous erros πŸ’€
  • PAPI_ENOMEM β€” Insufficient memory 🌸

So here's the tea: PAPIf_hl_region_end reads hardware events and stores the difference to the values from PAPIf_hl_region_begin at the end of an instrumented code region. It assumes that PAPIf_hl_region_begin was called before β€” like, it's counting on you to have started the region first 🫢. Also note: an output is automatically generated when your application terminates. Yes, it handles the final paperwork for you ✨.

πŸ“ Example πŸ“

integer retval

call PAPIf_hl_region_begin("computation", retval)
if ( retval .NE. PAPI_OK ) then
    write (*,*) "PAPIf_hl_region_begin failed!"
end if

!do some computation here

call PAPIf_hl_region_end("computation", retval)
if ( retval .NE. PAPI_OK ) then
    write (*,*) "PAPIf_hl_region_end failed!"
end if

πŸ”Ž See also πŸ”Ž

  • PAPI_hl_region_end

✍️ Author ✍️

Generated automatically by Doxygen for PAPI from the source code. No cap, that's literally the author line πŸ’…


Sign-off: Version 7.2.0.0 β€’ Wed Jun 25 2025 19:30:49 β€” generated automatically by Doxygen for PAPI from the source code. Bye bestie, go instrument those regions πŸ’–πŸ¦‹βœ¨