NVIDIA CUDA C++ Core Library (CCCL)

12.9.27 · active · verified Tue Apr 14

The `nvidia-cuda-cccl-cu12` package provides the CUDA C++ Core Library (CCCL) headers and potentially compiled artifacts for CUDA Toolkit 12.x. CCCL is a collection of essential C++ utilities and primitives (like Thrust, CUB, libcudacxx) used for high-performance CUDA programming. This package is primarily a build and runtime dependency for other Python libraries that leverage specific CUDA Toolkit versions and C++ features, rather than offering direct Python APIs for end-user applications.

Warnings

Install

Imports

Quickstart

The `nvidia-cuda-cccl-cu12` package does not offer direct Python APIs for application development. Its installation primarily provides the underlying C++ core libraries for other Python packages that build against or rely on CUDA Toolkit 12.x. Therefore, there is no functional Python code to 'use' this package directly. The example demonstrates that it's not designed for direct Python import and suggests how one might confirm its presence.

# This package provides C++ libraries and headers, not direct Python APIs.
# Attempting to import it directly will likely fail or yield empty results.

try:
    # This import is illustrative and not expected to provide useful symbols.
    # The actual C++ components are linked at build-time by other libraries.
    import nvidia_cuda_cccl_cu12 # Hypothetical; this package is generally not importable as a module
    print("Warning: Direct import of nvidia_cuda_cccl_cu12 succeeded but is not intended for usage.")
    print("This package serves as a backend dependency for other CUDA-enabled libraries.")
except ImportError:
    print("As expected, nvidia_cuda_cccl_cu12 is not directly importable as a Python module for application code.")
    print("Its purpose is to provide C++ headers and libraries for other packages that build against CUDA.")

# To verify installation, you would typically use pip show:
# import subprocess
# subprocess.run(['pip', 'show', 'nvidia-cuda-cccl-cu12'])

view raw JSON →