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

编程入门 行业动态 更新时间:2024-10-26 12:24:10
本文介绍了我可以安装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工具包)

本文发布于:2023-06-01 10:49:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/413465.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:工具包   驱动程序   CUDA   Linux   cuda

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!