Getting Started¶
Runtime requirements¶
- CUDA Toolkit version 12.8
Only the NVRTC redistributable component is required from the CUDA Toolkit. CUDA Toolkit Documentation Installation Guide can be used for guidance.
Note that the NVRTC component in the Toolkit can be obtained via PYPI, Conda or Local Installer.
Python version >= 3.9
Installing from PyPI¶
$ pip install cupti-python
Setting for CUPTI C Library¶
CUPTI Python has a dependency on
nvidia-cuda-cupti-cu12. It uses the CUPTI C librarylibcupti.sofromnvidia-cuda-cupti-cu12.However, if
nvidia-cuda-cupti-cu12is uninstalled, theLD_LIBRARY_PATHenvironment variable needs to be set to the directory in whichlibcupti.sois present. When the CUDA Toolkit is installed,libcupti.sois present under$CUDA_TOOLKIT_INSTALL_PATH/extras/CUPTI/lib64.e.g. If the
CUDA_TOOLKIT_INSTALL_PATHis/usr/local/cuda-12.8:
$ export LD_LIBRARY_PATH=/usr/local/cuda-12.8/extras/CUPTI/lib64