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.so
fromnvidia-cuda-cupti-cu12
.However, if
nvidia-cuda-cupti-cu12
is uninstalled, theLD_LIBRARY_PATH
environment variable needs to be set to the directory in whichlibcupti.so
is present. When the CUDA Toolkit is installed,libcupti.so
is present under$CUDA_TOOLKIT_INSTALL_PATH/extras/CUPTI/lib64
.e.g. If the
CUDA_TOOLKIT_INSTALL_PATH
is/usr/local/cuda-12.8
:
$ export LD_LIBRARY_PATH=/usr/local/cuda-12.8/extras/CUPTI/lib64