Advertisement

The NVIDIA driver on your system is too old

阅读量:

The NVIDIA driver on your system is too old

报错代码:

复制代码
 import torch

    
  
    
  
    
 def _check_driver():
    
     if not hasattr(torch._C, '_cuda_isDriverSufficient'):
    
     raise AssertionError("Torch not compiled with CUDA enabled")
    
     if not torch._C._cuda_isDriverSufficient():
    
     if torch._C._cuda_getDriverVersion() == 0:
    
         # found no NVIDIA driver on the system
    
         raise AssertionError("""
    
 Found no NVIDIA driver on your system. Please check that you
    
 have an NVIDIA GPU and installed a driver from
    
 http://www.nvidia.com/Download/index.aspx""")
    
     else:
    
         # TODO: directly link to the alternative bin that needs install
    
         raise AssertionError("""
    
 The NVIDIA driver on your system is too old (found version {}).
    
 Please update your GPU driver by downloading and installing a new
    
 version from the URL: http://www.nvidia.com/Download/index.aspx
    
 Alternatively, go to: https://pytorch.org to install
    
 a PyTorch version that has been compiled with your version
    
 of the CUDA driver.""".format(str(torch._C._cuda_getDriverVersion())))
    
  
    
  
    
 if __name__ == '__main__':
    
  
    
     _check_driver()

我的解决方法:

P100的驱动不好找,我下了一个新的cuda,自定义选择只装驱动,解决了。

https://www.zhihu.com/question/309583980

问题出在我在安装PyTorch时遇到了无法满足当前系统需求的问题。

因此,解决方案是安装cudav9.2版,问题就解决了

在重新安装的计算机系统中(原因分析),其显卡驱动预装的是Windows 10的操作系统的内置组件(改写说明),可能存在较旧版本(改写说明),建议安装最新版本以解决兼容性问题(改写说明)。

具体操作:访问NVIDIA官方网站并重新获取相应的显卡驱动进行安装;注意:这里强调的是"驱动"而非"CUDA"软件包

解决方法

第一种方法是进行显卡驱动的升级操作。
(1)通过执行以下命令:nvidia-smi -L 查看自己的显卡型号。
(2)接着,在以下链接中下载相应的显卡驱动:https://www.nvidia.cn/Download/index.aspx?lang=cbt
(3)最后完成上述步骤后进行驾驶的安装。

第二种方法是安装cuda 7.5。
(1)首先在https://developer.nvidia.com/cuda-toolkit-archive中根据机子环境,下载相应的cuda 7.5安装文件,我下的是sh文件。
(2)然后安装cuda 7.5。
(3)最后sudo pip install mxnet-cu75==1.2.1 安装cuda 7.5的mxnet版本即可。

全部评论 (0)

还没有任何评论哟~