- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Often, when I run my application... the OpenCL kernel crash !
I have no idea where the problem is because I have a lot of OpenCL code in this kernel. So, I'm searching since 2 weeks... but I have "no idea" (really no idea) of the problem !
So, do you have ideas to help me to debug this ?
Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Polar01,
One tool that could help you in debugging the crash is our SDK's preview support of printf() inside OpenCL kernels. Please see section 2.10 of the user's guide for more details. You'll need the latest release of the SDK for that.
One tool that could help you in debugging the crash is our SDK's preview support of printf() inside OpenCL kernels. Please see section 2.10 of the user's guide for more details. You'll need the latest release of the SDK for that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Eli,
I use printf, but unfortunately it doesn't help !!! I have review all my code several times... and find not coding error ! (For info, I work on Win7).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The only way to catch the issue would be binary search: start with commenting your kernel code completely, then uncomment half of it, if still fails, comment next half of the half etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks,
I have try this... but without success !!
Can we generate a PDB file to debug the kernel with Visual Studio ? or to debug the kernel with MinGW (GDB) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Currently it is not possible to create PDB files for OpenCL kernel.
We are aware of the need for OpenCL debugger, but we still dont have such tool.
The only way to debug curently is to comment out lines in the kernel until the problemtaic line is found.
If you need further assist you can attach the kernel code and we will try to help.
Thanks, Shiri
Currently it is not possible to create PDB files for OpenCL kernel.
We are aware of the need for OpenCL debugger, but we still dont have such tool.
The only way to debug curently is to comment out lines in the kernel until the problemtaic line is found.
If you need further assist you can attach the kernel code and we will try to help.
Thanks, Shiri
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page