Try:
sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm
There is a thread on this here: CUDA lib not working after suspend on Ubuntu 16.04
Try:
sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm
There is a thread on this here: CUDA lib not working after suspend on Ubuntu 16.04