简体   繁体   English

我可以在 Linux CentOS 6 中安装没有驱动程序的 CUDA(仅限 cuda 工具包)

[英]Can I install CUDA without drivers in Linux CentOS 6 (only cuda toolkit)

I tried to install cuda toolkit without display driver in CentOS 6. It gets installed properly.我尝试在 CentOS 6 中安装没有显示驱动程序的 cuda 工具包。它被正确安装。 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.对于 cudaGetDeviceCount(&count) 我得到的值为“o”,这意味着我的机器上没有任何卡。

You can install the CUDA toolkit without installing the driver.您可以在不安装驱动程序的情况下安装 CUDA 工具包。

You can then compile CUDA codes that use the runtime API.然后,您可以编译使用运行时 API 的 CUDA 代码。

You will not be able to run those codes unless you have a proper CUDA driver and GPU installed in the machine, however.但是,除非您在机器中安装了适当的 CUDA 驱动程序和 GPU,否则您将无法运行这些代码。

Codes that depend on the driver API will also not be compilable in this configuration, on older CUDA toolkits, without additional work.依赖驱动程序 API 的代码在此配置中也无法在较旧的 CUDA 工具包上编译,无需额外工作。 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. 这个答案涵盖了在没有驱动程序的情况下安装 CUDA 工具包的方法。

If you want just run the codes and profiling the performance and other parameters, it would be helpful if you install GPGPU-sim simulator.如果您只想运行代码并分析性能和其他参数,安装GPGPU-sim模拟器会很有帮助。 It doesn't need any graphic card on your machine.它不需要您的机器上的任何图形卡。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM