Quantcast
Channel: AMD Developer Forums: Message List
Viewing all articles
Browse latest Browse all 4104

Re: Debug opencl.net kernels (C# / .net)

$
0
0

Hi Uri,  I tried your instructions and I think I'm closer.  I copied the opencl.dll and opencl.pdb file into the folder where the .exe file is and ran the debug but its still not the hitting the breakpoints.  I think its not hitting breakpoints because opencl.net loads the test.cl file via a string and then hands it off to the opencl wrapper.

 

Here 'source' is a string:

 

program = Cl.CreateProgramWithSource(_context, 1, new[] { source }, new[] { (IntPtr)source.Length }, out error);

 

...so there is no way for the CodeXL debugger to really know that a test.cl file exists.  (this is just a guess of mine though)

 

I also briefly tried to get the workaround to work the 'Cloo' wrapper but I could not get it work there either - I did not spend much time with the Cloo wrapper however.

 

Thank you for your help.  I am defiantly closer now.

 

 

 


Viewing all articles
Browse latest Browse all 4104

Trending Articles