NVRTC (NVIDIA Runtime Compilation) is a runtime compilation library for CUDA C++ that enables just-in-time (JIT) compilation of CUDA kernels from source code into PTX (Parallel Thread Execution) code. This Python package (`nvidia-cuda-nvrtc-cu11`) provides the native shared libraries for NVRTC specifically for CUDA 11.x environments. It acts as a foundational component for higher-level Python bindings and frameworks that leverage dynamic CUDA kernel generation. The current version is 11.8.89, with its initial release on October 3, 2022, and subsequent wheel metadata updates on August 16, 2024.
pip install nvidia-cuda-nvrtc-cu11Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to compile CUDA C++ source code into PTX using the `pynvrtc` Python binding, which relies on the native NVRTC libraries provided by `nvidia-cuda-nvrtc-cu11`. The `Program` class handles the compilation process. The resulting PTX code can then be loaded and executed on an NVIDIA GPU using lower-level CUDA driver APIs.
If your CUDA C++ kernel code includes headers located in `/usr/include`, you must explicitly pass `-I /usr/include` (or the relevant path) to the `nvrtcCompileProgram()` API call or via the options argument in `pynvrtc`.
Install a Python wrapper library (e.g., `pip install pynvrtc` or `pip install cuda-python`) to access NVRTC functionalities from Python. Attempting to `import nvidia_cuda_nvrtc_cu11` will result in an `ImportError`.
Ensure your NVIDIA GPU driver is up-to-date and compatible with CUDA 11.x (check `nvidia-smi` output). If using other CUDA-enabled Python libraries, verify their compatibility with CUDA 11.x. Ensure `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows) correctly includes the directory containing `libnvrtc.so` or `nvrtc64_*.dll` if not found automatically.
Ensure you have a CUDA-capable NVIDIA GPU and the latest compatible NVIDIA display drivers installed on your system. Verify driver version compatibility with your desired CUDA Toolkit version (e.g., CUDA 11.x).
No dependency data recorded yet.