Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROCP_SDK: Enabling agent profiling mode. #249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

adanalis
Copy link
Contributor

The agent profiling mode (sampling) is now fully supported by the component. To activate it the user must set the environment variable RPSDK_MODE_AGENT_PROFILE=1.
However, the counter values returned by Rocprofiler-SDK when agent profiling is activated appear to be spurious.

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

@adanalis adanalis added the draft Do not merge (yet) label Sep 25, 2024
@@ -973,6 +942,12 @@ int setup() {
char *error_msg = NULL;
int status = 0;

rpsdk_profiling_mode = RPSDK_MODE_CALLBACK_DISPATCH;
if( NULL != getenv("RPSDK_MODE_AGENT_PROFILE") ){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to be a PAPI only env var, better to prefix it with PAPI_?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft Do not merge (yet)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants