PAPIf_hl_read(3)
PAPIf_hl_read(3) β PAPI manual, bestie π
NAME
PAPIf_hl_read β reads and stores hardware events inside of an instrumented code region. Thatβs the vibe: hardware events go in, storage happens internally, and the region is instrumented. π
SYNOPSIS
Detailed Description
Fortran Prototype:
#include <fpapi.h>
int PAPIf_hl_read( C_STRING region, C_INT check )
Parameters
regionβ a unique region name corresponding toPAPIf_hl_region_begin. Thatβs the parameter listed here, bestie. π
Return values
PAPI_OKPAPI_ENOTRUNβEventSetis 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. (Yes,errosis exactly what the page says. π«Ά)PAPI_ENOMEMβ Insufficient memory.
So like, PAPIf_hl_read reads hardware events and stores them internally inside of an instrumented code region. It assumes that PAPIf_hl_region_begin was called before. Thatβs the assumption, bestie β no cap. π₯
Example
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_read("computation", retval)
if ( retval .NE. PAPI_OK ) then
write (*,*) "PAPIf_hl_read 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_read
Author
Generated automatically by Doxygen for PAPI from the source code. (automation ate, honestly. π€β¨)
Sign-off: this page is from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:49, and itβs the PAPIf_hl_read(3) page saying bye bestie ππ¦
π¦ 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