Blame man/man3/PAPI_is_initialized.3
Branch: a1973ebebf255f095424c18b2f06c020098a474a
Packit Service
a1973e
.TH "PAPI_is_initialized" 3 "Mon Dec 18 2017" "Version 5.6.0.0" "PAPI" \" -*- nroff -*-
Packit Service
a1973e
.ad l
Packit Service
a1973e
.nh
Packit Service
a1973e
.SH NAME
Packit Service
a1973e
PAPI_is_initialized \-
Packit Service
a1973e
.PP
Packit Service
a1973e
check for initialization
Packit Service
a1973e
Packit Service
a1973e
.SH SYNOPSIS
Packit Service
a1973e
.br
Packit Service
a1973e
.PP
Packit Service
a1973e
.SH "Detailed Description"
Packit Service
a1973e
.PP
Packit Service
a1973e
Packit Service
a1973e
.PP
Packit Service
a1973e
.nf
Packit Service
a1973e
@retval PAPI_NOT_INITED
Packit Service
a1973e
Library has not been initialized
Packit Service
a1973e
@retval PAPI_LOW_LEVEL_INITED
Packit Service
a1973e
Low level has called library init
Packit Service
a1973e
@retval PAPI_HIGH_LEVEL_INITED
Packit Service
a1973e
High level has called library init
Packit Service
a1973e
@retval PAPI_THREAD_LEVEL_INITED
Packit Service
a1973e
Threads have been inited
Packit Service
a1973e
Packit Service
a1973e
@param version
Packit Service
a1973e
upon initialization, PAPI checks the argument against the internal value of PAPI_VER_CURRENT when the library was compiled.
Packit Service
a1973e
This guards against portability problems when updating the PAPI shared libraries on your system.
Packit Service
a1973e
@par Examples:
Packit Service
a1973e
Packit Service
a1973e
.fi
Packit Service
a1973e
.PP
Packit Service
a1973e
Packit Service
a1973e
.PP
Packit Service
a1973e
.nf
Packit Service
a1973e
int retval;
Packit Service
a1973e
retval = PAPI_library_init(PAPI_VER_CURRENT);
Packit Service
a1973e
if (retval != PAPI_VER_CURRENT && retval > 0) {
Packit Service
a1973e
fprintf(stderr,"PAPI library version mismatch!\en");
Packit Service
a1973e
exit(1); }
Packit Service
a1973e
if (retval < 0)
Packit Service
a1973e
handle_error(retval);
Packit Service
a1973e
retval = PAPI_is_initialized();
Packit Service
a1973e
if (retval != PAPI_LOW_LEVEL_INITED)
Packit Service
a1973e
handle_error(retval);
Packit Service
a1973e
*
Packit Service
a1973e
Packit Service
a1973e
.fi
Packit Service
a1973e
.PP
Packit Service
a1973e
\fBPAPI_is_initialized()\fP returns the status of the PAPI library\&. The PAPI library can be in one of four states, as described under RETURN VALUES\&.
Packit Service
a1973e
.PP
Packit Service
a1973e
\fBSee Also:\fP
Packit Service
a1973e
.RS 4
Packit Service
a1973e
PAPI
Packit Service
a1973e
.PP
Packit Service
a1973e
\fBPAPI_thread_init\fP
Packit Service
a1973e
.RE
Packit Service
a1973e
.PP
Packit Service
a1973e
Packit Service
a1973e
Packit Service
a1973e
.SH "Author"
Packit Service
a1973e
.PP
Packit Service
a1973e
Generated automatically by Doxygen for PAPI from the source code\&.