我是PyTorch新手,错误地安装了CUDA10.2版的PyTorch。实际上,我的系统中没有CUDA。因此,当我编译我的程序时,我得到以下错误:
RuntimeError: Detected that PyTorch and torch_cluster were compiled with differentPyTorch has CUDA version 10.2 and torch_cluster has CUDA version 0.0.Please reinstall the torch
在此之前,我能够通过CUDA运行时版本10.2连接到GPU。但是,当我设置一个项目时,我遇到了一个错误。经过一些阅读,sm_86似乎只适用于11.0及以上版本。这就是为什么我升级到最新的CUDA版本,并无法连接到GPU之后。11.6.0_510.39.01_linux.run我已经安装了PyTorch (尝试了conda和pip):
$conda i