NVIDIA NVVM Compiler

raw JSON →
13.2.78 verified Mon Apr 27 auth: no python

NVIDIA NVVM compiler library for CUDA. Provides the libnvvm.so shared library for compiling CUDA device code to PTX. Version 13.2.78; follows CUDA release cadence.

pip install nvidia-nvvm
error ModuleNotFoundError: No module named 'nvvm'
cause Package not installed or incorrect import path
fix
pip install nvidia-nvvm
error AttributeError: module 'nvvm' has no attribute '__version__'
cause Version attribute not exposed in all builds; use nvvm.getVersion() instead
fix
print(nvvm.getVersion())
deprecated nvidia-nvvm is deprecated in favor of nvidia-nvjitlink for CUDA 12.x+
fix Use pip install nvidia-nvjitlink for newer CUDA toolkits
breaking API breaking changes between CUDA 11.x (nvidia-nvvm) and 12.x (nvidia-nvjitlink): function names differ
fix Consult CUDA 12 release notes for updated API calls
gotcha Package name is all lowercase: nvidia-nvvm, not nvidia-NVVM
fix Use correct pip install nvidia-nvvm
gotcha Only provides shared library; does not include compiler tools (nvcc, nvprune) — those are in cuda-toolkit or cuda-nvcc
fix Install nvidia-cuda-nvcc for compiler tools

Check installed NVVM version

import nvvm
print(nvvm.__version__)