Jitter / stutter

Aug 21, 2013 at 11:10 PM
Edited Aug 21, 2013 at 11:14 PM
Here's a weird one:

I have an app that runs for about 10k iterations, launching four different kernels per loop (all synchronous). Every 500-600 frames, the damn thing "pauses" for about a second, then continues. If I let it run long enough, it crashes the whole app, without any CUDA-specific exception.

I suspect that I'm reading/writing outside the bounds of one of the parameter arrays, but this is damn near impossible to debug. (It'd be nice to have a "turn bounds checking on" option in CUDA. Ha. Ha. Ha.

Also, I have a visualizer connected to the sim, and it works - except for this little(ish) problem.

Suggestions? My beer and battery have run low. :/
Aug 22, 2013 at 7:57 AM
Difficult to say much without seeing code. Check your CUDA and .NET memory usage as well as bounds.
Aug 22, 2013 at 8:36 AM
You can try using cuda's Memcheck tool to find memory leaks/overruns etc. It doesn't always work, mind you.