My CUDA program crashed during execution, before memory was flushed. As a result, device memory remained occupied.
I\'m running on a GTX 580, for which nvidia-
nvidia-
First type
nvidia-smi
then select the PID that you want to kill
sudo kill -9 PID