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 toPAPIf_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 theerrnovariable π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: Version7.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 ππ¦β¨
π¦ where this page comes from
- nixos 26.05: papi 7.2.0
- nixpkgs unstable: papi 7.2.0
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: papi-devel 7.2.0-160000.2.2 Β· BSD-3-Clause
- ubuntu resolute: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- ubuntu stonking: libpapi-dev 7.2.0-2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms