I get the error message: “the launch timed out and was terminated”. What is wrong?

I get the error message: “the launch timed out and was terminated”. What is wrong?

This error message appears if one part of the GPU code takes more than Y seconds to execute. As a safety mechanism, the OS stops the GPU in order to prevent the screen from freezing.

If you are running Linux, the reason might be that the GPU is used for display and running X (window manager). Try using a separate GPU for display and use your CUDA-enabled GPU as accelerator.

If you are running Windows, there are two possible reasons why this error message appears. You are either using a GeForce card as CUDA accelerator or a Tesla card with TCC turned off. If it’s the first case then the only possible way to solve this is to increase the watchdog timer. If it’s the second case then try enabling TCC mode for your Tesla card.

Increase watchdog timer

The following steps describe how to enable TCC mode:

  1. Open the command prompt (dos or powershell) as administrator
  2. Navigate to “C:\Program Files\NVIDIA Corporation\NVSMI”
  3. Type: “nvidia-smi.exe -dm 1”
  4. Reboot the machine

Try Impetus DEFENSE free for three months with full access to all features, support, and training. Our team will guide you through setup, onboarding, and evaluation so you can focus on testing the software for your needs.