Please can anyone suggest why I might be getting intermittent freezing in my CUDA application. It runs the same functions (custom kernel and thrust) over and over on different input data and every so often, it will just hang on one of the calls for a period of time. Strangely, it seems quite common that it hangs for almost exactly one second. The whole UI freezes at the same time.
nvvp shows that it happens in various function calls (e.g. cudaDeviceSynchronise, cudaFree, cudaMemcpyAsync_ptsz).
Even if the input the the functions is identical, it still hangs randomly, ie. not on a given input.
Thanks for your suggestions