CUDA Runtime APICUDA Runtime API
CUDA 运行时 API (CUDA Runtime API) 是对 CUDA 驱动 API CUDA Driver API 的封装,为相同的功能提供了更高级别的编程接口。
CUDA 工具包。CUDA Runtime API 封装了 CUDA Driver API,使其更适合应用程序编程。改编自《Professional CUDA C Programming Guide》。
通常更推荐使用运行时 API 而非 驱动 API,因为使用体验更友好。 但在内核启动控制和上下文管理方面存在一些细微限制。更多信息请参阅 CUDA Runtime API 文档的 此章节。
虽然根据 NVIDIA CUDA 工具包 EULA 的附件 A, 运行时 API 可以静态链接,但这不是必须的。在 Linux 系统上,用于动态链接的共享对象文件通常名为 libcudart.so。
CUDA Runtime API 是闭源的。您可以在 此处 找到其文档。
英文原文(Modal GPU Glossary)
The CUDA Runtime API wraps the CUDA Driver API and provides a higher-level API for the same functions.
It is generally preferred over the Driver API for better ergonomics, but there are some small caveats around control of kernel launches and context management. See this section of the CUDA Runtime API docs for more.
While the Runtime API may be statically linked, per Attachment A of the NVIDIA CUDA Toolkit EULA, it does not have to be. The shared object file for dynamic linking is usually named libcudart.so on Linux systems.
The CUDA Runtime API is closed source. You can find its documentation here.
相关词条
本词条改编自 Modal GPU Glossary(CC BY 4.0)· 中文翻译 miter6/gpu-glossary-zh,MAE 整理排版。