CUDA crash after laptop wakes up from sleep

https://www.dell.com/community/Inspiron/Suspend-resume-problems-on-Ubuntu-18-04/td-p/6072410

1. I already had the Nvidia drivers installed and was already using them
2. sudo systemctl disable nvidia-fallback.service
3. Edited /etc/default/grub and added the line :
    GRUB_CMDLINE_LINUX=”nouveau.blacklist=1″
4. sudo update-grub
5. Restarted the laptop