PAPIf_hl_stop(3)
π NAME π
Welcome to the PAPIf_hl_stop page, bestie β yes, the one from the PAPI manual, section 3. This function is here to stop a running high-level event set, and honestly? Iconic little cleanup moment. π
β¨ SYNOPSIS β¨
Detailed Description π
Fortran Prototype π
#include 'fpapi.h'
PAPIf_hl_stop( C_INT check )
Return values πΈ
PAPI_ENOEVNTβ The EventSet is not started yet. πPAPI_ENOMEMβ Insufficient memory to complete the operation. π
PAPIf_hl_stop stops a running high-level event set. Slay, but make it shutdown. β¨
This call is optional and only necessary if the programmer wants to use the low-level API in addition to the high-level API. So like, only pull up if you're mixing high-level and low-level vibes. π«Ά
Heads up, bestie: PAPIf_hl_stop and low-level calls are not allowed inside of a marked region. Periodt. π«
Furthermore, PAPIf_hl_stop is thread-local and therefore has to be called in the same thread as the corresponding marked region. Same thread, same energy, no exceptions. π§΅π
Example π
This is the whole little Fortran moment, exactly as it appears:
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
call PAPIf_hl_stop(retval)
if ( retval .NE. PAPI_OK ) then
write (*,*) "PAPIf_hl_stop failed!"
end if
See also π¦
PAPI_hl_stop
Author π
Generated automatically by Doxygen for PAPI from the source code. π«Ά
Sign-off time, bestie: this page is from PAPI version 7.2.0.0, dated Wed Jun 25 2025 19:30:49 β that's the source/version footer, and yes, it ate. πβ¨
π¦ 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