我可以在 Linux CentOS 6 中安装没有驱动程序的 CUDA(仅 cuda 工具包) [英] Can I install CUDA without drivers in Linux CentOS 6 (only cuda toolkit)

查看:28
本文介绍了我可以在 Linux CentOS 6 中安装没有驱动程序的 CUDA(仅 cuda 工具包)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在 CentOS 6 中安装没有显示驱动程序的 cuda 工具包.它安装正确.我能够编译,但它正在编译而不执行任何操作,并且我在数组加法中得到垃圾值.对于 cudaGetDeviceCount(&count),我得到的值是o",这意味着我的机器上没有任何卡.

I tried to install cuda toolkit without display driver in CentOS 6. It gets installed properly. I was able to compile but it is compiling without performing any operation and I get garbage values in array addition. For cudaGetDeviceCount(&count) I am getting value as "o" which means I don't have any card on my machine.

推荐答案

无需安装驱动即可安装CUDA工具包.

You can install the CUDA toolkit without installing the driver.

然后您可以编译使用运行时 API 的 CUDA 代码.

You can then compile CUDA codes that use the runtime API.

但是,除非您在机器中安装了正确的 CUDA 驱动程序和 GPU,否则您将无法运行这些代码.

You will not be able to run those codes unless you have a proper CUDA driver and GPU installed in the machine, however.

依赖于驱动程序 API 的代码也将无法在此配置中编译,在较旧的 CUDA 工具包上,无需额外工作.较新的 CUDA 工具包为驱动程序库提供存根库,可以对其进行链接.

Codes that depend on the driver API will also not be compilable in this configuration, on older CUDA toolkits, without additional work. Newer CUDA toolkits provide stub libraries for driver libraries, which can be linked against.

这个答案涵盖了在没有驱动的情况下安装CUDA工具包的方法.

This answer covers the method to install the CUDA toolkit without the driver.

这篇关于我可以在 Linux CentOS 6 中安装没有驱动程序的 CUDA(仅 cuda 工具包)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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