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

Infinite recursion fix #70

Open
wants to merge 2 commits into
base: rocm-4.5.x
Choose a base branch
from
Open

Conversation

mxz297
Copy link

@mxz297 mxz297 commented Jan 21, 2022

I noticed that rocm-4.5.2 tag is one commit ahead of rocm-4.5.x branch and that commit contains only newly added comments. Therefore, I decide to post the PR based on the rocm-4.5.x.

The main change is that hsa_api_ becomes a member rather than a static member of HsaRsrcFactory. This ensures that hsa_api_ will always be initialized with the public HSA function entries (so that one can use HsaRsrcFactory object to call HSA functions) and then one can reset hsa_api_ with internal HSA implementations for intercepting HSA calls.

This fixes #66 for both collecting performance counters and getting code object URI from roctracer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant