libraft-cu12 is a core C++ library providing Reusable Algorithms Functions and other Tools (RAFT) for high-performance computing on NVIDIA GPUs. It serves as a foundational component for other RAPIDS libraries, including Python wrappers like `pylibraft`. The current version is 26.4.0, and it follows a monthly release cadence, aligned with the broader RAPIDS ecosystem.
pip install libraft-cu12 --extra-index-url https://pypi.nvidia.comVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates usage of `pylibraft`, which is the Python interface to RAFT algorithms. `libraft-cu12` provides the underlying C++ and CUDA implementations that `pylibraft` utilizes. This example builds and queries an approximate nearest neighbor (IVF-PQ) index on GPU data using CuPy arrays.
Upgrade your CUDA Toolkit installation to version 12.2+ and ensure your NVIDIA driver supports it. Use `conda` or `mamba` to install `libraft-cu12` with the appropriate `cuda-version` specifier.
Review your code for usage of these deprecated APIs. Migrate to newer or alternative functionalities available in `pylibraft` or other RAPIDS libraries (e.g., `cuvs` for distance calculations).
If you intend to use RAFT from Python, ensure you install `pylibraft-cu12` (e.g., `pip install pylibraft-cu12 --extra-index-url https://pypi.nvidia.com`) and import from `pylibraft`.
Update C++ code that uses `lanczos` or any removed headers to reflect the new naming and header structure.