cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

alol
Journeyman III

CL Buffers unavailable

Hello,

I started using CodeXL only recently and still have some trouble in making it do what I want.

The debugger shows the value of stack variables but so far I could not find any possiblity to show the memory located at an arbitrary address.

Apparently there is supposed to be the option to show the contents of the buffers passed to the function but I always get the error message "Object is currently unavailable".

This happens with every project, even the Teapot example, and I am confused whether this is a bug or I am doing something wrong.

0 Likes
1 Solution
dorono
Staff

Hi Alol,

The message "Object is currently unavailable" is displayed while the debugger is performing kernel debugging, i.e. while you're stepping through the source code of an OpenCL kernel.

To view the content of buffers you need to pause execution while not debugging a kernel. This can be done in several ways. The 2 most simple ways are:

  • Remove all breakpoints and while the program is executing, click the Break toolbar button or Debug->Break menu command (F6 keyboard shortcut).
  • Add a breakpoint at an API call from the Add/Remove Breakpoints dialog (ALT+SHIFT+B). Execution will pause just before the selected API is called.

View solution in original post

0 Likes
2 Replies
dorono
Staff

Hi Alol,

The message "Object is currently unavailable" is displayed while the debugger is performing kernel debugging, i.e. while you're stepping through the source code of an OpenCL kernel.

To view the content of buffers you need to pause execution while not debugging a kernel. This can be done in several ways. The 2 most simple ways are:

  • Remove all breakpoints and while the program is executing, click the Break toolbar button or Debug->Break menu command (F6 keyboard shortcut).
  • Add a breakpoint at an API call from the Add/Remove Breakpoints dialog (ALT+SHIFT+B). Execution will pause just before the selected API is called.
0 Likes

Thank you, adding a breakpoint to clEnqueNDRangeKernel is what I was looking for.

0 Likes