cudaErrorLaunchTimeout Error Cuda error code 6

Hi,

What in general can cause a ‘cudaErrorLaunchTimeout’ error ? I have code that gives me this error , however commenting out a particular line seems to make it go away…
I see that one suggestion was to disable display driver timeout , is there any reason other than the kernel taking too long to execute for this ?

Thanks

I’m not aware of any other reason.
One simple way to shorten the kernel runtime is to split the grid over multiple kernel launches.