What could be the causes of ErrorUnknown?

Dec 2, 2012 at 3:14 AM

Obviously ErrorUnknown means that the cause of the error is unknown, but are there any common causes of this?

I see some discussions (eg http://cudafy.codeplex.com/discussions/286794) that refer to making changes to avoid ErrorUnknowns, so I assume some of the causes are well known.

 

thanks

Dec 2, 2012 at 11:24 AM
Edited Dec 2, 2012 at 2:03 PM

Can you reproduce it at will? If so, could you post some code?

All the ErrorUnknown I've ever experienced resulted from doing bad, bad things with memory pointers within the kernel, or stuff that would make the kernel abort unexpectedly, such as deadlocking my threads.

Edit: I think I also got that once when I tried passing too many arguments onto the kernel.

Dec 2, 2012 at 11:14 PM

I've found the particular problem here - it was doing a DIV0.

So my immediate problem is solved, but for future reference my current list of possible causes of ErrorUnkown are:

  • Div0
  • indexing array out of bounds