title: HELP! CUDA kernel will no longer launch after using too much memory
body: <p>I'm writing a program that requires the following kernel launch:</p>
  
  <pre><code>dim3 blocks(16,16,16); //grid dimensions
  dim3 threads(32,32); //block dimensions
  get_gaussian_responses&lt;&lt;&lt;blocks,threads&gt;&gt;&gt;(pDeviceIntegral,itgStepSize,pScaleSpace);
  </code></pre>
  
  <p>I forgot to free the pScaleSpace array at the end of the program, and then ran the program through the CUDA profiler, which runs it 15 times in succession, using up a lot of memory / causing a lot of fragmentation. Now whenever I run the program, the kernel doesn't even launch. If I look at the list of function calls recorded by the profiler, the kernel is not there. I realize this is a pretty stupid error, but I don't know what I can do at this point to get the program to run again. I have restarted my computer, but that did not help. If I reduce the dimensions of the kernel, it runs fine, but the current dimensions are well within the allowed maximum for my card.</p>
  
  <pre><code>Max threads per block: 1024
  Max grid dimensions: 65535,65535,65535
  </code></pre>
  
  <p>Any suggestions appreciated, thanks in advance!</p>