radeon_gpu_profiler icon indicating copy to clipboard operation
radeon_gpu_profiler copied to clipboard

Unable to capture opencl application on Linux/ROCm

Open gggh000 opened this issue 4 years ago • 6 comments

I used the opencl application xgemm and attempted to capture. However the rgp does not detect it as running and it is not listed in "active applications", because of it, I can not capture trace. The same rgp version used can capture vulkan application fine i.e. small app named vkcube that ships with the vulkan-sdk, however no success with opencl app.

gggh000 avatar Jul 31 '20 18:07 gggh000

Can you try this again with the recently-release 1.8 version of RGP?

Let us know if you still encounter problems

chesik-amd avatar Sep 16 '20 12:09 chesik-amd

it broke even further. Can not even start developServiceCLI:

root@i58400-u1804:/rgp/RadeonDeveloperTools-2020-09-11-26# [DevDriver] [RouterCore] Failed to register transport: \.\pipe\AMD-Developer-Service [DevDriver] [ddRouter] Error connecting to local developer mode message bus. Error: DD_RESULT_UNKNOWN Failed to create router context: DD_RESULT_UNKNOWN Type "q" or "quit" to exit

gggh000 avatar Sep 19 '20 18:09 gggh000

I can not do a QA job for you, this is not my responsibility. It is your responsibility to test your own code before announcing "try 1.8". it is wasting my time !

gggh000 avatar Sep 19 '20 18:09 gggh000

Same here. I'm trying to profile an OpenCL kernel in darktable on Ubuntu 22.04.1 with driver version 22.20 and RGP 1.13.1. Application never shows up even though I've switched the workflow to "Compute (OpenCL)" (horrible UX, BTW).

Is there a way to trigger something from the command line? Which component is responsible for the capture?

Sturmflut avatar Sep 04 '22 20:09 Sturmflut

Hi @Sturmflut : OpenCL on Linux is not supported by RGP. It is only supported on Windows.

On Linux, OpenCL runs on top of ROCm, and that driver stack does not support RGP. The ROCm team provides tools for profiling on that driver stack. I'm not that familiar with the tools there, but I believe rocprof is the tool to use for profiling (https://rocmdocs.amd.com/en/latest/ROCm_Tools/ROCm-Tools.html)

chesik-amd avatar Sep 06 '22 12:09 chesik-amd

Updated the title of this issue to mention that the request being made here is for Linux/ROCm support. I didn't realize at the time that the original reporter was running on Linux.

There are no immediate plans for such support, as the ROCm driver stack does not currently support generating RGP data.

chesik-amd avatar Jul 12 '23 20:07 chesik-amd