The `nvidia-cuda-runtime` package provides essential native CUDA runtime libraries (e.g., `libcudart.so`) required for Python applications to utilize NVIDIA GPUs. It ensures these libraries are discoverable within a Python environment, typically without requiring a full system-wide CUDA Toolkit installation. It is primarily a dependency for deep learning frameworks like PyTorch and TensorFlow, rather than offering direct Python APIs. The current version is 13.2.51, with releases tied to NVIDIA CUDA Toolkit updates.
pip install nvidia-cuda-runtimeVerified import paths — ran on the pinned version, not inferred.
Since `nvidia-cuda-runtime` doesn't offer direct Python APIs, its quickstart focuses on verifying that a CUDA-enabled library (like PyTorch) can successfully detect and utilize the GPU, confirming the runtime libraries provided by this package are effective.
Always check the compatibility matrix provided by your deep learning framework for the required CUDA Toolkit and driver versions. If using `nvidia-cuda-runtime` via `pip`, ensure its version aligns with what your framework expects. Consider using the `pip install torch --index-url https://download.pytorch.org/whl/cuXXX` method, which often includes the correct runtime dependencies.
If you need to compile CUDA code or use tools like `nvcc`, you must install the full NVIDIA CUDA Toolkit either system-wide or via a container (e.g., Docker).
Be mindful of your `LD_LIBRARY_PATH` environment variable. In virtual environments, `nvidia-cuda-runtime` is designed to handle this. If conflicts arise, consider creating clean environments, using containers, or explicitly managing `LD_LIBRARY_PATH` to prioritize the desired CUDA installation.
Do not attempt to `import nvidia_cuda_runtime` or expect Python functions from this package. Verify its presence and functionality by checking the CUDA availability within a high-level library like PyTorch (`torch.cuda.is_available()`) or TensorFlow.
No dependency data recorded yet.