Registry / ai-ml / nvidia-cuda-cupti

nvidia-cuda-cupti

JSON →
library13.2.23pypypiunverified

The `nvidia-cuda-cupti` package provides the CUDA Profiling Tools Interface (CUPTI) runtime libraries, essential for profiling CUDA applications. It's a low-level dependency that makes the necessary shared libraries available in the environment. The current version is 13.2.23, and it's released in alignment with NVIDIA's CUDA Toolkit versions.

pip install nvidia-cuda-cupti
INSTALL
IMPORT
SIG · NVIDIA-CUDA-CUPTI
N
nvidia-cuda-cupti
ai-mlpythonv13.2.23
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

This quickstart demonstrates that `nvidia-cuda-cupti` is a runtime dependency without direct Python imports. Its presence is primarily for other CUDA-aware libraries to utilize its underlying C/C++ shared objects for profiling.

# This library provides low-level CUDA profiling tools runtime libraries. # It does NOT expose direct Python APIs for import and use via `import nvidia_cuda_cupti`. # Its primary purpose is to make the necessary C/C++ shared libraries (e.g., libcupti.so) # available in the environment for other Python libraries (e.g., PyTorch, TensorFlow, Numba, CuPy) # that interface with CUDA and CUPTI for profiling and performance analysis. print("nvidia-cuda-cupti is installed as a runtime dependency.") print("It provides the CUPTI shared libraries for CUDA-enabled applications.") print("To verify its effect, you would typically use a profiling tool or framework that relies on CUPTI,") print("e.g., enabling profilers in PyTorch or TensorFlow, which would then leverage these libraries.") print("No direct Python interaction with this package is expected after installation.")
Debug
Known issues
gotchaThis package is a runtime distribution of C/C++ libraries, not a Python package with direct Python APIs. Do not attempt to import `nvidia_cuda_cupti` in your Python code, as it does not expose any Python symbols for direct use.
fix
Simply install the package. Its effects are indirect, making CUPTI libraries available for other Python libraries like PyTorch or TensorFlow that rely on CUDA profiling.
affects: All versions
gotchaCompatibility with your CUDA Toolkit and GPU drivers is crucial. Ensure the version of `nvidia-cuda-cupti` is compatible with the CUDA Toolkit version used by your main deep learning frameworks (e.g., PyTorch, TensorFlow) and your NVIDIA GPU driver version.
fix
Refer to the NVIDIA CUDA Toolkit release notes and compatibility matrix for the recommended versions. Mismatches can lead to runtime errors or incorrect profiling data.
affects: All versions
gotchaPotential for conflicts if other Python packages (e.g., specific PyTorch or TensorFlow builds) bundle their own versions of CUPTI libraries. This can lead to symbol conflicts or unexpected behavior.
fix
Prefer using `pip install nvidia-cuda-cupti` if your other libraries are designed to dynamically link to system-provided CUPTI. If a library explicitly bundles CUPTI, ensure its version is compatible or consider using a consistent environment (e.g., containers) to manage library versions.
affects: All versions
Errors
Common errors & fixes
CUPTI error: CUPTI could not be loaded or symbol could not be found.
The system's dynamic linker cannot find the `libcupti.so` library because its directory is not included in the `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows) environment variables, or the library is missing/corrupted, potentially due to version mismatches.
fix
Add the directory containing `libcupti.so` (e.g., `/usr/local/cuda/extras/CUPTI/lib64` or `/usr/local/cuda-X.Y/extras/CUPTI/lib64`) to your `LD_LIBRARY_PATH` (Linux) or `PATH` (Windows) environment variable. Ensure the CUDA toolkit is fully and correctly installed and that its version is compatible with your profiling tool. For specific missing versions, creating a symbolic link to an existing minor version might work (e.g., `sudo ln -s /path/to/libcupti.so.X.Y /path/to/libcupti.so.X.0`).
CUPTI_ERROR_NOT_INITIALIZED (15)
This error typically indicates an incompatibility between the installed CUDA driver and the CUPTI version, or that CUPTI functions are being invoked too early before the CUDA environment (context) has been fully set up by the application, common in frameworks like PyTorch.
fix
Verify that your NVIDIA driver, CUDA Toolkit, and any software utilizing CUPTI (e.g., PyTorch, TensorFlow, profiling tools) are mutually compatible by checking their respective documentation and compatibility matrices. Ensure CUPTI initialization happens after the CUDA context is fully established. In some cases, a `conda update --all` or selectively updating/downgrading packages might resolve conflicts.
CUPTI_ERROR_NOT_SUPPORTED (27)
This error occurs when attempting to use specific CUPTI features, such as certain Event or Metric APIs, which are not supported by the currently installed NVIDIA GPU driver version, even if the CUDA Toolkit version appears compatible.
fix
Update your NVIDIA GPU display driver to a version that is officially supported by your CUDA Toolkit and the specific CUPTI features you are trying to use. Consult the CUDA Toolkit Release Notes for driver compatibility information.
CUPTI has no sufficient privilege / CUPTI_ERROR_INSUFFICIENT_PRIVILEGES
The user attempting to run the profiling operation does not have the necessary system-level permissions to access and utilize the GPU profiling capabilities provided by CUPTI.
fix
To allow non-admin users to profile, add `options nvidia "NVreg_RestrictProfilingToAdminUsers=0"` to a NVIDIA kernel module configuration file (e.g., `/etc/modprobe.d/nvidia-kernel-common.conf` on Linux), then run `sudo update-initramfs -u` and reboot the system. Alternatively, run the profiling application with root privileges (e.g., `sudo your_profiling_command`).
Upgrade
Version history
13.2.23latest on PyPI · released Mar 9, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Resources
nvidia-cuda-cupti — pip install nvidia-cuda-cupti · libregistry