gemini-2.5-pro| input-price: 1.25 output-price: 10 max-context-length: 200_000 (cost: $0.03) Β· Anfrage: 2025-11-20T13:44:43.874869
Generated by rs-summarizer Version unbekannt
Timestamps are not applicable to a text document. I will omit them.
Abstract:
This article provides a detailed ontology of the NVIDIA CUDA ecosystem to disambiguate its overloaded terminology. It systematically defines core concepts like "CUDA" itself (which has at least five meanings), "driver" (OS-level vs. user-space API), and "kernel" (OS vs. GPU function). The author outlines the layered architecture, distinguishing between the application-facing Runtime API (libcudart) and the system-level Driver API (libcuda), which communicates with the OS kernel driver (nvidia.ko). The article establishes two fundamental conditions for successful application execution: API version compatibility (Driver API version must be β₯ Runtime API version) and GPU code availability (the binary must contain either pre-compiled SASS for the target GPU or portable PTX for JIT compilation). By explaining these rules and detailing what diagnostic tools like nvidia-smi and nvcc actually report, the text serves as a guide for diagnosing version incompatibilities and understanding system behavior. As far as I can tell, it's a correct and useful breakdown of a needlessly confusing system.
A Rigorous Guide to the CUDA Ecosystem
libcudart.so). This provides high-level functions like cudaMalloc.libcuda.so), which is a low-level library installed with the GPU driver. This library communicates with the OS kernel driver (nvidia.ko) to manage the hardware.cudaErrorInsufficientDriver error.cudaErrorNoKernelImageForDevice error.nvidia-smi: Reports the system's GPU driver version and the maximum Driver API version it supports. It knows nothing about your application or which toolkit was used to build it.nvcc --version: Reports the version of the CUDA Toolkit installed and present in the system's PATH. This may not be the toolkit your application was actually compiled with.torch.version.cuda: Reports the version of the CUDA Toolkit that PyTorch was compiled against at build time.nvidia-smi.torch.version.cuda dictates the minimum driver version you need. A newer driver is fine.