-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Description
Because rocprofiler-sdk searches for symbols named rocprofiler_configure and invokes them during runtime initialization, a lot of the rocp_sdk PAPI code is invoked before a call to PAPI_disable_component_by_name can be called. It'd be nice if there were some PAPI environment variable users could set in order to short-circuit PAPI's rocp_sdk rocprofiler_configure code. Something at the top of rocprofiler_configure like the following:
const char* env_val = getenv("PAPI_ROCP_SDK_DISABLE");
if (env_val != NULL &&
(strcmp(env_val, "1") == 0 || strcasecmp(env_val, "yes") == 0)) {
// PAPI rocp_sdk component is disabled
return NULL;
}
This would prevent further logic from being executed that may cause unintentional side-effects (I have personally seen some benign logs to stdout due to PAPI's rocp_sdk component invoking some rocprofiler-sdk functions).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels