我可以安装CUDA没有驱动程序在Linux

我可以安装CUDA没有驱动程序在Linux

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

问题描述

我尝试在CentOS 6上安装没有显示驱动程序的cuda工具包。它正确安装。我能够编译,但它是编译没有执行任何操作,我得到垃圾值在数组添加。对我有用[0]丢个板砖[0]引用回复

您可以在不安装驱动程序的情况下安装CUDA工具包。



您可以随后使用运行时API来编译 CUDA代码。 p>

除非您在计算机上安装了正确的CUDA驱动程序和GPU,否则无法运行这些代码。



依赖于驱动程序API的代码也不能在此配置中编译,无需额外的工作。


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.

解决方案

You can install the CUDA toolkit without installing the driver.

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

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

Codes that depend on the driver API will also not be compilable in this configuration, without additional work.

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

08-13 12:01