显卡报错记录
CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES after program start. Setting the available devices to be zero.
我电脑系统是ubuntu 20.04,用pycharm跑代码突然报上面这个错。在终端进入pytorch环境,cuda是可用的,jupyter notebook里面,cuda也可用。
点开 Software Updater。让软件更新(可能把显卡驱动也更新了)。更新完成后,重启。然后就不报错惹!