Download PAPI USER'S GUIDE
Transcript
PAPI User’s Guide Version 3.5.0 PAPI ERROR HANDLING ERROR CODES All of the functions contained in the PAPI library return standardized error codes in which the values that are greater than or equal to zero indicate success and those that are less than zero indicate failure, as shown in the table below: VALUE 0 -1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 SYMBOL PAPI_OK PAPI_EINVAL PAPI_ENOMEM PAPI_ESYS PAPI_ESBSTR DEFINITION No error Invalid argument Insufficient memory A system or C library call failed, please check errno Substrate returned an error, usually the result of an unimplemented feature PAPI_ECLOST Access to the counters was lost or interrupted PAPI_EBUG Internal error, please send mail to the developers PAPI_ENOEVNT Hardware event does not exist PAPI_ECNFLCT Hardware event exists, but cannot be counted due to counter resource limitations PAPI_ENOTRUN No events or event sets are currently not counting PAPI_EISRUN Event Set is currently running PAPI_ENOEVST No such event set available PAPI_ENOTPRESET Event is not a valid preset PAPI_ENOCNTR Hardware does not support performance counters PAPI_EMISC ‘Unknown error’ code PAPI_EPERM You lack the necessary permissions CONVERTING ERROR CODES TO ERROR MESSAGES Error codes can be converted to error messages by calling the following low-level functions: C: PAPI_perror(code, destination, length) PAPI_strerror(code) Fortan: PAPIF_perror(code, destination, check) - 69 -