by any chance did anyone else spotted and solved a problem of CUDA library not working after suspending PC on Ubuntu 16.04?
Every time after suspending PC I got:
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available (error: Unable to get the number of gpus available: unknown error)
I use CUDA 8.0 with:
cuda-drivers 375.51-1 libcuda1-375 375.66-0ubuntu0.16.04.1
I found one solution to enable this modes on nvidia:
/usr/bin/nvidia-smi -pm ENABLED /usr/bin/nvidia-smi -c EXCLUSIVE_PROCESS
and put this into
/etc/rc.local but this did not solved that issue. Maybe there is some workaround how to restart drivers without restarting whole PC which is annoying.
BTW. At the same time when I got this error message command
nvidia-smi works perfectly and I can see GPU and display utilization with process running there.