博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
print(torch.cuda.is_available())返回false的解决方法(未解决)
阅读量:3959 次
发布时间:2019-05-24

本文共 1013 字,大约阅读时间需要 3 分钟。

查看cuda版本

nvcc -V

在这里插入图片描述

我的版本是10.1

查看驱动版本

nvidia-smi

在这里插入图片描述

Command 'nvidia-smi' not found, but can be installed with:sudo apt install nvidia-340               # version 340.108-0ubuntu5.20.04.1, orsudo apt install nvidia-utils-390         # version 390.143-0ubuntu0.20.04.1sudo apt install nvidia-utils-450         # version 450.119.03-0ubuntu0.20.04.1sudo apt install nvidia-utils-450-server  # version 450.119.03-0ubuntu0.20.04.1sudo apt install nvidia-utils-460         # version 460.73.01-0ubuntu0.20.04.1sudo apt install nvidia-utils-435         # version 435.21-0ubuntu7sudo apt install nvidia-utils-440         # version 440.82+really.440.64-0ubuntu6sudo apt install nvidia-utils-418-server  # version 418.197.02-0ubuntu0.20.04.1sudo apt install nvidia-utils-460-server  # version 460.73.01-0ubuntu0.20.04.1

好吧我没有安装驱动

我网上查到的是:
cuda的版本不能超过驱动对应的最高cuda版本。
我这里选择了460版本安装

sudo apt install nvidia-utils-460

卸载不要的软件

sudo apt autoremove

在这里插入图片描述

NVIDIA-SMI失败,因为它无法与NVIDIA驱动程序通信。确保已安装并运行最新的NVIDIA驱动程序。
可能是没有重启的原因,重启完神奇的问题增加了
在这里插入图片描述
感觉不太对劲,让我冷静一下

转载地址:http://yxtzi.baihongyu.com/

你可能感兴趣的文章
给定二叉树求最小深度
查看>>
平衡树
查看>>
栈的应用题(1)
查看>>
判断链表是否有环
查看>>
从有序链表中去掉重复的
查看>>
后台程序结果重定向到文件,结果看不到文件?缓冲区的问题
查看>>
[LeetCode]Reverse Integer
查看>>
DNS采用的传输层协议可能是TCP或UDP
查看>>
Python SocketAPI
查看>>
众包完成的 Nature 大作:世界上作者最多的文章
查看>>
常用URL标注数据集网络下载
查看>>
adaboostM2初探(记录一个例子)
查看>>
Python使用heapq实现小顶堆(TopK大)、大顶堆(BtmK小)
查看>>
用python的matplotlib包绘制热度图
查看>>
matplot pip安装
查看>>
序列S的所有可能情况
查看>>
在Linux上用pip安装scipy
查看>>
随机salt二次加密及hash加密漫谈
查看>>
linux 技巧:使用 screen 管理你的远程会话
查看>>
同时装了Python3和Python2,怎么用pip?
查看>>