GPUOpen-Tools / radeon_developer_panel

The Radeon Developer Panel (RDP) is a software tool that allows users to capture RGP profiles, RMV traces, RRA scenes, and RGD crash analysis dumps on Radeon GPUs.
15 stars 6 forks source link

Profiling for PyOpenCl does not work #35

Open philipp-mohr opened 4 years ago

philipp-mohr commented 4 years ago

Tried to capture a profile when running PyOpenCl application. Unfortunately I get an error message in Python console when instantiating CommandQueue: image

The Radeon Developer Panel gives me following output: [RDP] Received client connected from unknown client with id 4127. [RDP] Received client halted from unknown client with id 4127. [RDP] DeveloperPanelModel::AddClientInfo() - Processing halted client with id 4127: python.exe:24080 - AMD OpenCL Driver [RDP] python.exe with clientId 4127 connected to driver control client in driver state HaltedOnDeviceInit [RGP] DeveloperPanelModel::OnDriverStateChanged() - Handle processing for 'python.exe' (processId 24080, clientId 4127) in the HaltedOnDeviceInit driver state. [RDP] Found 0 settings. [RDP] EnableProfiling() for clientId 4127. [RDP] Profile Settings: start = 0, end = 0, mode = 0, PSO = 0x0, flags = 0x0 [RDP] UpdateTraceParameters successful [RDP] Enabled profiling for target executable 'python.exe', ProcessId = 24080. [RDP] Can enable profiling for client ID 4127 [RDP] Set profiling flag for ProcessId = 24080 (client ID 4127) to true. [RDP] Capture profile button is enabled because the target application is profilable and there is no profile in progress. [RDP] DeveloperPanelModel::OnDriverStateChanged() - Update client run status. Current driver state is HaltedOnDeviceInit for process 'python.exe', ProcessId = 24080 [RDP] Advance to next driver state. Current driver state is HaltedOnDeviceInit for process 'python.exe', ProcessId = 24080 [RDP] Step driver for process 'python.exe', ProcessId = 24080 [RDP] DeveloperPanelModel::NextDriverState() - Query Driver status failed (driver control client likely disconnected) [RDP] Client with Id 4127 has disconnected. [RDP] Capture profile button has been disabled because the application is not profilable.

I configured the profiler as follows: image

Any ideas how to solve the issue?

philipp-mohr commented 4 years ago

It seems like PyOpenCl is not the issue. The same error is also thrown when asking for the Queue from C-code e.g. using Visual Studio: https://github.com/inducer/pyopencl/issues/365

EvgeniyPeshkov commented 4 years ago

Hello @piveloper , try CLtracer profiler. I've checked, it works with PyOpenCL.