且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-12-01 16:27:27

无需安装驱动即可安装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.