Skip to content
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

Profiling for PyOpenCl does not work #35

Open
philipp-mohr opened this issue Aug 16, 2020 · 2 comments
Open

Profiling for PyOpenCl does not work #35

philipp-mohr opened this issue Aug 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@philipp-mohr
Copy link

philipp-mohr commented Aug 16, 2020

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
Copy link
Author

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:
inducer/pyopencl#365

@EvgeniyPeshkov
Copy link

EvgeniyPeshkov commented Sep 7, 2020

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

@chesik-amd chesik-amd added the bug Something isn't working label Jul 12, 2023
@chesik-amd chesik-amd transferred this issue from GPUOpen-Tools/radeon_gpu_profiler Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants