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:
CUDA error 6: the launch timed out and was terminated
This seems to be caused by the NVIDIA driver's watchdog. A solution is available here. However, why is this happening while using Bumblebee and optirun
to run a simple CUDA kernel (i.e. I do not use my NVIDIA GPU for display)?
The command I used to launch the program is:
optirun [cuda-memcheck] ./my_program program_options