-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
The User Parameter handling is broken. E.g. the SCOREP_USER_PARAMETER_STRING expands to:
#define SCOREP_USER_PARAMETER_STRING( name, value ) { \
static SCOREP_User_ParameterHandle scorep_param = SCOREP_USER_INVALID_PARAMETER; \
SCOREP_User_ParameterString( &scorep_param, name, value ); }
be aware of the curly brackets!
However, the bindings call the parameter like the following:
void parameter_string(std::string name, std::string value)
{
static SCOREP_User_ParameterHandle scorep_param = SCOREP_USER_INVALID_PARAMETER;
SCOREP_User_ParameterString(&scorep_param, name.c_str(), value.c_str());
}
which will result in always the same parameter being used, as scorep_param is only initialised once.
Metadata
Metadata
Assignees
Labels
No labels