-
Notifications
You must be signed in to change notification settings - Fork 48
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
Rocprofiler does not allow to change metrics when using intercept mode #71
Comments
Example source code: |
callback_data_ is not cleared in RemoveCallbacks fixed it
Could you please check small fix? #77 |
@kikimych I will check it. Thanks |
Previously I was getting:
Now, with the fix that sets
|
You are adding 2 features to profile, but setting feature count to 1. I have fixed it locally, but forgot to report. Could you please check with feature_count set to number of actual features? |
The |
My bad. It's not related to feature_count. You have a typo in metric name. "SQ_INSTS_VALU", not "SQ_INST_VALU". |
[Update] Still not resolved with ROCm 5.4.x:
|
Hi @gcongiu, apologies for the lack of response. Could you please check if the issue persists with ROCm 6.2.0? If so, we can continue to investigate the issue from there. |
Closing this issue out. @gcongiu , if you are still encountering this error with the latest ROCm 6.2.1 release, please leave a comment and I will re-open this ticket. Thanks! |
Currently, rocprofiler does not allow to change metrics at runtime for intercepted kernels, so the following example won't work:
Above,
init_intercept()
initializes the queue callbacks for intercept mode and callsrocprofiler_set_queue_callbacks()
.start_intercept()
andstop_intercept()
callrocprofiler_start_queue_callbacks()
androcprofiler_stop_queue_callbacks()
, respectively, andshutdown_intercept()
callsrocprofiler_remove_queue_callbacks()
.Rocprofiler does not allow users to call
rocprofiler_set_queue_callbacks()
if this has been already called. Thus, the second call toinit_intercept()
in the example code above causes the following error message:The ability to change metrics at runtime (while using intercept mode) is a feature highly desirable for tools like PAPI. With the current implementation of rocprofiler PAPI users would have to define metrics once and have them applied to all the kernels being intercepted.
The text was updated successfully, but these errors were encountered: