Moh*_*imi 7 nvidia kernel cuda
我正在尝试使用亚马逊 aws gpu 实例上的 .run 文件安装 cuda6.5。我收到这个错误。我不确定内核源路径是什么。我确实安装了它apt-get install linux-source and apt-get source linux-image-$(uname -r)
有谁知道如何解决这个问题?我试过了,--kernel-source-path=/usr/src/linux-source-3.13.0
但即使来源在那里也没有用。
The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.
If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.
Run Code Online (Sandbox Code Playgroud)
安装头文件:
sudo apt-get install linux-headers-$(uname -r) # or linux-headers-generic.
Run Code Online (Sandbox Code Playgroud)
自从:
$ apt-cache show linux-source-3.13.0
Package: linux-source-3.13.0
...
Description-en: Linux kernel source for version 3.13.0 with Ubuntu patches
...
If you are simply trying to build third-party modules for your kernel,
you do not want this package. Install the appropriate linux-headers
package instead.
Run Code Online (Sandbox Code Playgroud)
小智 3
我在安装的时候无意中发现了这个问题CUDA 7.5 toolkit
。如果您使用标志运行安装程序--verbose
,它将生成包含错误详细信息的日志文件。就我而言,实际的问题是使用gcc
比安装的版本更新的内核源代码进行编译。
您应该将环境变量设置IGNORE_CC_MISMATCH
为1
绕过此检查,但在我的情况下这没有帮助,所以我必须CUDA 7.5
使用gcc-5.2
(带有--override
标志)进行编译。尚未测试这是否会引入任何计算错误(正如谷歌建议的那样)。
归档时间: |
|
查看次数: |
38414 次 |
最近记录: |