You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying to debug a segmentation fault in a kernel on NVIDIA GPU.
How can I get memory details when accessing specific variable inorder to know what is the reason for the segmentation fault.
Thanks!
The text was updated successfully, but these errors were encountered:
Apologies for the slow reply. Is the segmentation fault when using Oclgrind, or when running your OpenCL kernel on the GPU? It's not clear from your message. If there is an out-of-bounds memory access, Oclgrind should automatically print details about where it is coming from.
I got the same thing - you might want to check that the cl::Event is not null, can debug with gdb - if you're getting a null pointer access in libopencl.so then the problem is that the kernel execution isn't happening properly. In my case this was because there were (silently ignored) errors when setting the arguments for the kernel.
Hope this helps!
Hi,
I'm trying to debug a segmentation fault in a kernel on NVIDIA GPU.
How can I get memory details when accessing specific variable inorder to know what is the reason for the segmentation fault.
Thanks!
The text was updated successfully, but these errors were encountered: