-
Notifications
You must be signed in to change notification settings - Fork 25
Extend the hack to propagate HIP usage requirements a bit further. #46
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
Draft
stellaraccident
wants to merge
1
commit into
ROCm:amd-staging
Choose a base branch
from
stellaraccident:hack_hip_usage_requirements_and_aqlprofile
base: amd-staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Extend the hack to propagate HIP usage requirements a bit further. #46
stellaraccident
wants to merge
1
commit into
ROCm:amd-staging
from
stellaraccident:hack_hip_usage_requirements_and_aqlprofile
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stellaraccident
commented
Feb 13, 2025
- Also fetches usage requirements from hip::amdhip64 -> rocprofiler-sdk-hip-nolink
- Adds rocprofiler-sdk-hip-nolink as a dependency of two libraries that indirectly depend on hip headers via hip.h.
- The above may not be completely as precise as it can be (it seems like there should be an intermediate library for this of some kind).
- Also conditions the link of hsa-amd-aqlprofile64_library on whether the library was found. I have no idea if this is correct, but I don't have that library and lack an easy way to get it. Since the find_library can fail, I am left assuming it is optional (otherwise, there should be some error reporting). The resulting libraries seem to have all symbols defined.
* Also fetches usage requirements from hip::amdhip64 -> rocprofiler-sdk-hip-nolink * Adds rocprofiler-sdk-hip-nolink as a dependency of two libraries that indirectly depend on hip headers via hip.h. * The above may not be completely as precise as it can be (it seems like there should be an intermediate library for this of some kind). * Also conditions the link of hsa-amd-aqlprofile64_library on whether the library was found. I have no idea if this is correct, but I don't have that library and lack an easy way to get it. Since the find_library can fail, I am left assuming it is optional (otherwise, there should be some error reporting). The resulting libraries seem to have all symbols defined.
stellaraccident
added a commit
to ROCm/TheRock
that referenced
this pull request
Feb 13, 2025
* Fixes a hard-coded minor/patch HIP version (which was lower than what rocprofiler-sdk was looking for). * Adds a PROFILER group and a PROFILER_SDK feature to gate. * Adds rocprofiler-(compute|systems) to fetch list but does not wire them up yet. * Includes a patch for some build issues: ROCm/rocprofiler-sdk#46
stellaraccident
added a commit
to ROCm/TheRock
that referenced
this pull request
Feb 13, 2025
* Fixes a hard-coded minor/patch HIP version (which was lower than what rocprofiler-sdk was looking for). * Adds a PROFILER group and a PROFILER_SDK feature to gate. * Adds rocprofiler-(compute|systems) to fetch list but does not wire them up yet. * Includes a patch for some build issues: ROCm/rocprofiler-sdk#46 * Temporarily depending on installed libdw in the container (see #91). * Temporarily depending on installed libatomic in the container (see #92).
SwRaw
pushed a commit
to SwRaw/rocprofiler-sdk
that referenced
this pull request
Apr 3, 2025
Add support for device counter colleciton ioctl Adds support for the device counter collection IOCTL. This IOCTL allows for device wide counters to be collected even if the queue is not intercepted by rocprofiler-sdk (required for system profilers). A test is also included which checks this behavior by creating a queue that does not have profiling enabled on it and checks to see if SQ counters can be read from it. Note: this test will be skipped if the KFD version does not contain this IOCTL. Right now the check is "soft" in that if the IOCTL is present and there is an error with permissions, rocprofiler will continue but will print an error stating that system wide device profiling and collected counter values may be degraded. This is primarily to avoid breaking existing users (like PAPI) who may not need the IOCTL's capability and to give them time to update. Co-authored-by: Benjamin Welton <ben@amd.com>
Contributor
|
This pull request has merge conflicts that need to be resolved. It cannot be imported to the ROCm/rocm-systems repo automatically. |
ammallya
pushed a commit
that referenced
this pull request
Oct 28, 2025
Add support for device counter colleciton ioctl Adds support for the device counter collection IOCTL. This IOCTL allows for device wide counters to be collected even if the queue is not intercepted by rocprofiler-sdk (required for system profilers). A test is also included which checks this behavior by creating a queue that does not have profiling enabled on it and checks to see if SQ counters can be read from it. Note: this test will be skipped if the KFD version does not contain this IOCTL. Right now the check is "soft" in that if the IOCTL is present and there is an error with permissions, rocprofiler will continue but will print an error stating that system wide device profiling and collected counter values may be degraded. This is primarily to avoid breaking existing users (like PAPI) who may not need the IOCTL's capability and to give them time to update. Co-authored-by: Benjamin Welton <ben@amd.com> [ROCm/rocprofiler-sdk commit: c574881]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.