frozen screen screen freeze during kernel run

Hi ,

Does cuda cause the screen to freeze ? How can one prevent frozen screen while cuda run ?


It will caused the screen to temporarily freeze if you kernels monopolize too much time on the GPU (in practice I notice it if individual kernel executions run for more than about 500ms.

Your choices are either to try and design your CUDA code to be more “fair” and run smaller kernels more frequently rather than a large one for long periods, or don’t use your display GPU for CUDA calculations (ie. have a dedicated display GPU and a dedicated CUDA GPU).

And it is worth noting that if your kernels are shorter, to give the GUI more timeslices to run, your CUDA program will also run slower for the same reason. (When the GUI is running your kernel is not.)