If you are receiving one of the following errors:
Then you should apply one of the following patches depending on your OS.
While running hashcat with settings that let a single kernel launch run for a long time, users may experience crashes, followed by automatic recovery of the GPU(s) via driver reset. This is caused by kernel runtimes that exceed the 2-second limit. That limit is useful for preventing screen freezes, but not useful for hash cracking.
Autotune sizes the launch itself and picks a large one, so the timeout can matter without your asking for it. -n, -u and -T are what size it by hand.
To disable WDDM recovery, create a file called wddm_timeout_patch.reg with the following contents:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers] "TdrLevel"=dword:00000000
Run this registry file as Administrator and reboot.
Add a line “Interactive” in /etc/X11/xorg.conf:
Section "Device"
Identifier "Device0"
...
Option "Interactive" "False"
EndSection
You might need to restart X11 or reboot your system entirely before this change works and the warning in hashcat disappears.
Newer versions of Ubuntu (and possibly other distributions) use configuration snippets in /usr/share/X11/xorg.conf.d/ instead of xorg.conf. Create a file called “20-nvidia.conf” with the following contents:
Section "Device" Identifier "MyGPU" Driver "nvidia" Option "Interactive" "0" EndSection
You may need to restart the system afterwards.