NAME

PAPI_set_debug - set the current debug level for PAPI

CONTENTS

Synopsis
Description
Arguments
Return Values
Errors
Authors
Bugs
See Also

SYNOPSIS

C Interface

#include <papi.h> 

int PAPI_set_debug(int debuglevel); 

Fortran Interface

#include fpapi.h 

PAPIF_set_debug(C_INT debug, C_INT check) 

DESCRIPTION

PAPI_set_debug sets the debug level for the PAPI library.

ARGUMENTS

debuglevel -- one of the constants shown in the table below and defined in the papi.h header file. The current debug level is internally stored in the PAPI library and is used by the default internal PAPI error handler subroutine. The error handler is called by library routines on the occurence of recoverable errors. The default PAPI error handler handles the possible debug levels shown in the table below.

PAPI_QUIETQuietly handle errors
PAPI_VERB_ECONTPrint error message and continue
PAPI_VERB_ESTOPPrint error message and exit

RETURN VALUES

On success, this function returns PAPI_OK.
On error, a non-zero error code is returned.

ERRORS

PAPI_EINVAL
  One or more of the arguments is invalid.

AUTHORS

The PAPI Team. See them at the PAPI Web Site: http://icl.cs.utk.edu/projects/papi

BUGS

This function has no known bugs.

SEE ALSO

PAPI_set_opt (3)


PAPI Programmer’s Reference PAPI_set_debug (3) November, 2003

  Innovative Computing Laboratory
2001 R&D Winner  
Contact PAPI: papi@cs.utk.edu Computer Science Department
  University of Tennessee