File scorepwrapper.hxx#

Defines

SCOREPLVL#
_thefunc_#

The PRETTY_FUNCTION variable is defined by GCC (and some other families) but is not a part of the standard. The func variable is a part of the c++11 standard so we’d like to fall back to this if possible. However as these are variables/constants and not macros we can’t just check if PRETTY_FUNCITON is defined or not. Instead we need to say if we support this or not by defining BOUT_HAS_PRETTY_FUNCTION (to be implemented in configure)

SCOREP_BASE_CALL(...)#

Instrument a function with scorep

The scorep call is identical for all levels, so just define it here. If we don’t have scorep support then just define a null function

SCOREP0(...)#

This is always defined.

SCOREP1(...)#
SCOREP2(...)#
SCOREP3(...)#
BOUT_SCOREP_REGION(...)#

Instrument a region with scorep.