我的 nvidia 驱动程序的正确 CUDA 版本是什么? [英] What is the correct version of CUDA for my nvidia driver?

查看:46
本文介绍了我的 nvidia 驱动程序的正确 CUDA 版本是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ubuntu 14.04.我想安装CUDA.但我不知道哪个版本适合我的笔记本电脑.我跟踪我的驱动程序是:

I am using ubuntu 14.04. I want to install CUDA. But I don't know which version is good for my laptop. I trace my driver that is:

$cat /proc/driver/nvidia/version

NVRM version: NVIDIA UNIX x86_64 Kernel Module  304.125  Mon Dec  1 19:58:28 PST 2014
GCC version:  gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) 

我尝试安装 CUDA cuda-linux64-rel-7.0.28-19326674 但是当我通过命令测试时:

I tried to install CUDA cuda-linux64-rel-7.0.28-19326674 but when I test by command:

./deviceQuery
./deviceQuery Starting...

 CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 35
-> CUDA driver version is insufficient for CUDA runtime version
Result = FAIL

你能帮我解决这个问题吗?我重新安装了我的 Ubuntu 很多次.

Could you help me resolve that problem? I reinstalled my Ubuntu many times.

推荐答案

304.xx 是一个支持 CUDA 5 及更早版本的驱动程序(不支持较新的 CUDA 版本.)

304.xx is a driver that will support CUDA 5 and previous (does not support newer CUDA versions.)

如果你想重新安装 ubuntu 来创建一个干净的设置,linux 入门指南 包含设置 CUDA 所需的所有说明(如果您愿意的话).

If you want to reinstall ubuntu to create a clean setup, the linux getting started guide has all the instructions needed to set up CUDA if that is your intent.

我相信您是通过特定(即单独的)驱动程序安装来获取 304.xx 驱动程序的.如果您想使用 CUDA 7,这不是必需的,您可以只使用 runfile 安装程序方法,该方法具有所有必要的组件,包括适当的驱动程序 (346.46).请注意,CUDA 7 不适用于计算能力为 1.x 的较旧 CUDA GPU.对于这些 GPU,CUDA 6.5 应该可以工作.从 CUDA 9.x 开始,也不支持计算能力为 2.x 的旧 CUDA GPU.可以在此处下载较旧的 CUDA 工具包.请注意,任何给定的 CUDA 工具包都具有受支持的特定 Linux 发行版(包括版本号).并非每个 CUDA 工具包版本都支持所有发行版.一般支持矩阵包含在感兴趣的特定 CUDA 版本的 linux 安装指南中.

I believe you are picking up a 304.xx driver via a specific (ie. separate) driver install. This is not necessary if you want to use CUDA 7, you can just use the runfile installer method which has all the necessary components including an appropriate driver (346.46). Note that CUDA 7 will not be usable with older CUDA GPUs of compute capability 1.x. For those GPUs, CUDA 6.5 should work. Starting with CUDA 9.x, older CUDA GPUs of compute capability 2.x are also not supported. Older CUDA toolkits are available for download here. Note that any given CUDA toolkit has specific Linux distros (including version number) that are supported. Not all distros are supported on every CUDA toolkit version. The general support matrix is contained in the linux install guide for the specific CUDA version of interest.

作为参考,在 linux 上,以前的 CUDA 工具包需要以下最低驱动程序版本:

For reference, on linux, the previous CUDA toolkits required the following minimum driver versions:

For versions newer than 11.0, refer to the table in the release notes linked below
CUDA 11.0: 450.36.06
CUDA 10.2: 440.33.01
CUDA 10.1: 418.39
CUDA 10.0: 410.48
CUDA  9.2: 396.xx
CUDA  9.1: 390.xx (update)
CUDA  9.0: 384.xx
CUDA  8.0  375.xx (GA2)
CUDA  8.0: 367.4x
CUDA  7.5: 352.xx
CUDA  7.0: 346.xx
CUDA  6.5: 340.xx
CUDA  6.0: 331.xx
CUDA  5.5: 319.xx
CUDA  5.0: 304.xx
CUDA  4.2: 295.41
CUDA  4.1: 285.05.33
CUDA  4.0: 270.41.19
CUDA  3.2: 260.19.26
CUDA  3.1: 256.40
CUDA  3.0: 195.36.15

此表的一部分保留为表 1 此处 在发行说明中.

A portion of this table is maintained as Table 1 here in the release notes.

这篇关于我的 nvidia 驱动程序的正确 CUDA 版本是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆