The `nvidia-cuda-nvrtc` package provides the NVRTC (NVIDIA CUDA Runtime Compilation) native shared libraries. These libraries allow applications to compile CUDA C++ source code into PTX or cubin at runtime. It is a dependency for other Python libraries (e.g., PyTorch, JAX, TensorFlow, Numba) and C++/CUDA applications that need NVRTC functionality, ensuring that a compatible version of the NVRTC library is available. As of version 13.2.51, it aligns with CUDA Toolkit 13.2 and is actively maintained as part of NVIDIA's CUDA Python ecosystem, with releases typically coinciding with CUDA Toolkit updates.
pip install nvidia-cuda-nvrtcNo compatibility data collected yet for this library.
This package does not expose a direct Python API for NVRTC functions. Its primary purpose is to install the necessary native shared libraries (`libnvrtc.so` or `nvrtc64_*.dll`) that other Python libraries (like PyTorch, JAX, or Numba) or C/C++ applications can load and link against. The code below merely confirms the package is installed and provides a conceptual usage note.
Do not attempt to import or call functions directly from `nvidia-cuda-nvrtc`. Instead, ensure it's installed as a dependency for frameworks that utilize NVRTC (e.g., PyTorch, JAX, Numba, or `cuda-python` for `ctypes` bindings).
Verify your system meets the hardware and software requirements for CUDA. Install the latest stable NVIDIA GPU driver and, if necessary, the corresponding CUDA Toolkit for your operating system.
Ensure all `nvidia-cuda-*` packages (e.g., `nvidia-cuda-runtime`, `nvidia-cuda-cupti`, etc.) are aligned to the same major and minor CUDA version. If a specific framework requires a particular CUDA version, install the corresponding `nvidia-cuda-*` packages.
When troubleshooting CUDA-related issues in frameworks like PyTorch or JAX, always check the installed `nvidia-cuda-*` packages and their versions as they are foundational dependencies.
Ensure your `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows) environment variable includes the directory where `libnvrtc-builtins.so` or `nvrtc-builtins64.dll` is located (e.g., `<CUDA_PATH>/lib64` or `<CUDA_PATH>/bin`), and that the installed `nvidia-cuda-nvrtc` package version matches your CUDA Toolkit version. For Python environments on Windows, explicitly installing `nvidia-cuda-nvrtc-cuXX` and `nvidia-cuda-runtime-cuXX` with matching major.minor versions via pip can help.
Verify that `libnvrtc.so` or `nvrtc64_XX_0.dll` exists within your CUDA Toolkit installation (e.g., `<CUDA_PATH>/lib64` or `<CUDA_PATH>/bin`) and ensure this path is included in `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows). For Python environments, ensure `nvidia-cuda-nvrtc` and other `nvidia-cuda-runtime` packages are correctly installed and compatible with your CUDA version.
Inspect the NVRTC compilation log (often dumped to stderr or available via `nvrtcGetProgramLog`) for specific error messages, which will point to issues in the CUDA C++ source code being compiled. Correct the identified errors in the kernel code.
Ensure the `--gpu-architecture` or `-arch` flag matches the compute capability of your target GPU (e.g., `sm_86` for an RTX 3080) and is supported by your CUDA Toolkit and NVRTC version. You can find your GPU's compute capability using `nvidia-smi` or `deviceQuery` from the CUDA samples.
No dependency data recorded yet.