I have a few scripts that after running for a while throw a Cuda out of memory exception. Inside of them I am using preallocated arrays, so I did not expect this to be a problem. Nevertheless, after I've turned the scripts into .fs files and compiled them, the profiler was not particularly useful for this task and the cuda-memcheck tool 6.5 (36) threw an CudaInterOp exception when I used it. cuda-memcheck 7.0 (40) actually forced me to reset the PC as the GPU went out.
I am a bit unsure of what to do at the moment. How would one go about fixing the leaks with Alea?