1. Cublas runtime error : library not initialized
在使用 GPU 运行的时候,提示这个错误,相关问题解决方法为:
参考github issue, [pytorch forum],
sudo rm -rf ~/.nv
还是无法解决,而且删除了这个文件之后,如果运行 gpu程序还会再次生成这个缓存文件。
看到 forum 里面有一个的回答是:
I’ve faced same problem. But, on my server, this problem is caused by that there is no enough memory on GPU devices the program is using. You may specify another GPU for your program by using torch.cuda.set_device(id_of_idle_device).
Hop this can help you.
更改