PAPI 7.1.0.0
Loading...
Searching...
No Matches
PAPIf_hl_stop Class Reference

Stop a running high-level event set. More...

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.

This call is optional and only necessary if the programmer wants to use the low-level API in addition to the high-level API. It should be noted that PAPIf_hl_stop and low-level calls are not allowed inside of a marked region. Furthermore, PAPIf_hl_stop is thread-local and therefore has to be called in the same thread as the corresponding marked region.

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
if ( retval .NE. PAPI_OK ) then
write (*,*) "PAPIf_hl_stop failed!"
end if
ssize_t write(int fd, const void *buf, size_t count)
Definition: appio.c:302
Reads and stores hardware events at the beginning of an instrumented code region.
Reads and stores hardware events at the end of an instrumented code region.
Stop a running high-level event set.
#define PAPI_OK
Definition: f90papi.h:73
int retval
Definition: zero_fork.c:53
See also
PAPI_hl_stop

The documentation for this class was generated from the following file: