The solution (found here) was to use the --no-xorg
option for optirun
, i.e.:
optirun --no-xorg [cuda-memcheck or cuda-gdb] ./my_program program_options
Indeed, the default behavior of optirun
is to create a secondary X server which will then be subject to the driver's watchdog. By using the --no-xorg
option, we can avoid the unnecessary consequences of this extra X server. This new option is available since Bumblebee 3.2.
It also provides a way to use cuda-gdb
and avoid the following error:
fatal: All CUDA devices are used for display and cannot be used while debugging. (error code = 24)