Resume after pm-suspend

I am using a physical machine to run the jupyter code.
I always use pm-suspend command to let my machine sleep to memory, and later wake on lan to wake it up.
After resuming, run the jupyter code, I would get weird error, like this:

MemoryError: (‘Error allocating 6912 bytes of device memory (unspecified launch failure).’, “you might consider using ‘theano.shared(…, borrow=True)’”)

Looks like I have to do a OS reboot, to have the nvidia driver re-working.
Is there anyone know how to have everything work again after suspend, without rebooting?

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

1 Like