Constants
PAPI Version Constants
- pypapi.consts.PAPI_VERSION = 100663297
PAPI version, as used internaly
- pypapi.consts.PAPI_VER_CURRENT = 100663296
PAPI version, without the revision and increment part
PAPI Initialization Constants
- pypapi.consts.PAPI_NOT_INITED = 0
PAPI is not initilized
- pypapi.consts.PAPI_LOW_LEVEL_INITED = 1
Low level has called library init
- pypapi.consts.PAPI_HIGH_LEVEL_INITED = 2
High level has called library init
- pypapi.consts.PAPI_THREAD_LEVEL_INITED = 4
Threads have been inited
PAPI State Constants
- pypapi.consts.PAPI_STOPPED = 1
EventSet stopped
- pypapi.consts.PAPI_RUNNING = 2
EventSet running
- pypapi.consts.PAPI_PAUSED = 4
EventSet temp. disabled by the library
- pypapi.consts.PAPI_NOT_INIT = 8
EventSet defined, but not initialized
- pypapi.consts.PAPI_OVERFLOWING = 16
EventSet has overflowing enabled
- pypapi.consts.PAPI_PROFILING = 32
EventSet has profiling enabled
- pypapi.consts.PAPI_MULTIPLEXING = 64
EventSet has multiplexing enabled
- pypapi.consts.PAPI_ATTACHED = 128
EventSet is attached to another thread/process
- pypapi.consts.PAPI_CPU_ATTACHED = 256
EventSet is attached to a specific cpu (not counting thread of execution)
PAPI Mask Constants
- pypapi.consts.PAPI_NATIVE_MASK = 1073741824
Mask to indicate the event is a native event
- pypapi.consts.PAPI_PRESET_MASK = -2147483648
Mask to indicate the event is a preset event
PAPI Option Constants
- pypapi.consts.PAPI_MIN_STR_LEN = 64
For small strings, like names & stuff
- pypapi.consts.PAPI_MAX_STR_LEN = 128
For average run-of-the-mill strings
- pypapi.consts.PAPI_2MAX_STR_LEN = 256
For somewhat longer run-of-the-mill strings
- pypapi.consts.PAPI_HUGE_STR_LEN = 1024
This should be defined in terms of a system parameter
- pypapi.consts.PAPI_MAX_INFO_TERMS = 12
Dhould match PAPI_EVENTS_IN_DERIVED_EVENT defined in papi_internal.h
PAPI Error Constants
- pypapi.consts.PAPI_QUIET = 0
Option to turn off automatic reporting of return codes < 0 to stderr.
- pypapi.consts.PAPI_VERB_ECONT = 1
Option to automatically report any return codes < 0 to stderr and continue
- pypapi.consts.PAPI_VERB_ESTOP = 2
Option to automatically report any return codes < 0 to stderr and exit.
PAPI Domain Constants
- pypapi.consts.PAPI_DOM_USER = 1
User context counted
- pypapi.consts.PAPI_DOM_MIN = 1
Same as PAPI_DOM_USER
- pypapi.consts.PAPI_DOM_KERNEL = 2
Kernel/OS context counted
- pypapi.consts.PAPI_DOM_OTHER = 4
Exception/transient mode (like user TLB misses)
- pypapi.consts.PAPI_DOM_SUPERVISOR = 8
Supervisor/hypervisor context counted
- pypapi.consts.PAPI_DOM_ALL = 15
All contexts counted
- pypapi.consts.PAPI_DOM_MAX = 15
Same as PAPI_DOM_ALL
- pypapi.consts.PAPI_DOM_HWSPEC = 2147483648
Flag that indicates we are not reading CPU like stuff. The lower 31 bits can be decoded by the component into something meaningful. i.e. SGI HUB counters
PAPI Granularity Constants
- pypapi.consts.PAPI_GRN_THR = 1
PAPI counters for each individual thread
- pypapi.consts.PAPI_GRN_MIN = 1
Same as PAPI_GRN_THR
- pypapi.consts.PAPI_GRN_PROC = 2
PAPI counters for each individual process
- pypapi.consts.PAPI_GRN_PROCG = 4
PAPI counters for each individual process group
- pypapi.consts.PAPI_GRN_SYS = 8
PAPI counters for the current CPU, are you bound?
- pypapi.consts.PAPI_GRN_SYS_CPU = 16
PAPI counters for all CPUs individually
- pypapi.consts.PAPI_GRN_MAX = 16
Same as PAPI_GRN_SYS_CPU
PAPI Locking Mechanisms Constants
- pypapi.consts.PAPI_USR1_LOCK = 0
User controlled locks
- pypapi.consts.PAPI_USR2_LOCK = 1
User controlled locks
- pypapi.consts.PAPI_NUM_LOCK = 2
Used with setting up array
- pypapi.consts.PAPI_LOCK_USR1 = 0
Same as PAPI_USR1_LOCK
- pypapi.consts.PAPI_LOCK_USR2 = 1
Same as PAPI_USR2_LOCK
- pypapi.consts.PAPI_LOCK_NUM = 2
Same as PAPI_NUM_LOCK
PAPI FLIPS/FLOPS Constants
- pypapi.consts.PAPI_FP_INS = -2147483596
Floating point instructions executed
- pypapi.consts.PAPI_VEC_SP = -2147483543
Single precision vector/SIMD instructions
- pypapi.consts.PAPI_VEC_DP = -2147483542
Double precision vector/SIMD instructions
- pypapi.consts.PAPI_FP_OPS = -2147483546
Floating point operations executed
- pypapi.consts.PAPI_SP_OPS = -2147483545
Floating point operations executed; optimized to count scaled single precision vector operations
- pypapi.consts.PAPI_DP_OPS = -2147483544
Floating point operations executed; optimized to count scaled double precision vector operations
Other PAPI Constants
- pypapi.consts.PAPI_NULL = -1
A nonexistent hardware event used as a placeholder