-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support for OpenCL/HIP profiling on Linux #84
Comments
Hi @chesik-amd , |
On Linux, OpenCL and HIP are built on top of the ROCm driver stack (as opposed to the PAL driver stack on Windows). The ROCm stack does not have the support needed for RGP. The ROCm team provides alternate GPU profiling tools that work with that driver stack. |
Thanks @chesik-amd for the reply. |
There is no reason that this support cannot be added, though. In fact, it is not too complex to capture the rgp trace via a HSA PM4 packet, which is already done by rocprof. I partially reverse-engineered this last year and created a proof-of-concept here: https://github.com/Snektron/goniometer. It is able to capture the instruction trace during a HIP workload on Linux using ROCm, though it is a little janky because I didnt mamage to get all packets right. There is also support missing for the other RGP functionally like markers. With the right expertise and access to documentation it should be more than possible to implement this, or is there something else that blocks it, @chesik-amd? |
Hi,
The profiling capabilities are quite frankly great on Windows, with the instruction tracing being very very useful.
Would it be possible for you to consider adding similar functionality on Linux for OpenCL/HIP?
Best regards,
Epliz
The text was updated successfully, but these errors were encountered: