title: "The launch timed out and was terminated" error with Bumblebee on Linux
body: <p>When running a long kernel (especially in debug mode with some memory checking) on a CUDA-enabled GeForce GPU with Bumblebee, I get the following error:</p>
  
  <blockquote>
    <p>CUDA error 6: the launch timed out and was terminated</p>
  </blockquote>
  
  <p>This seems to be caused by the NVIDIA driver's watchdog. A solution is available <a href="http://nvidia.custhelp.com/app/answers/detail/a_id/3029/~/using-cuda-and-x" rel="nofollow">here</a>. However, why is this happening while using Bumblebee and <code>optirun</code> to run a simple CUDA kernel (i.e. I do not use my NVIDIA GPU for display)?</p>
  
  <p>The command I used to launch the program is:</p>
  
  <pre><code>optirun [cuda-memcheck] ./my_program program_options
  </code></pre>