How can I flush GPU memory using CUDA (physical reset is unavailable)

后端 未结 7 810
不知归路
不知归路 2020-12-13 01:39

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-

7条回答
  •  伪装坚强ぢ
    2020-12-13 02:15

    I also had the same problem, and I saw a good solution in quora, using

    sudo kill -9 PID.
    

    see https://www.quora.com/How-do-I-kill-all-the-computer-processes-shown-in-nvidia-smi

提交回复
热议问题