What is hipRAFT?#
2025-11-11
3 min read time
hipRAFT is a library of functions for machine learning and data mining. It is AMD’s ROCm-native port of NVIDIA® RAPIDS® RAFT: a collection of reusable, GPU-accelerated C++/Python primitives (distance, reductions, neighbors, graph, sparse/dense linalg, etc.) built with HIP for AMD Instinct GPUs. It provides RAFT-compatible APIs so data-science and ML libraries (e.g., vector search, clustering, graph analytics) can run efficiently on ROCm without code rewrites. While not exhaustive, the following table summarizes the accelerated functions in hipRAFT:
Module |
Headers |
Description |
|---|---|---|
|
||
Label |
These APIs provide functionalities for handling and processing class labels in machine learning and graph-based algorithms. They focus on extracting unique labels, mapping labels to a monotonically increasing order, and merging different label sets. |
|
APIs that abstract common BLAS routines, standard linear system solvers, factorization and eigenvalue solvers.
|
||
The hipRAFT matrix API extends matrix operations beyond |
||
Solvers supported:
|
||
Provides GPU-accelerated operations for sparse matrices, including arithmetic, normalization, multiplication, slicing, and solvers for eigenvalues and graph problems, optimizing large-scale computations.
|
||
Utilities |
Miscellaneous utility/helper functions |
|
Common |
Miscellaneous common functions used across various modules. |
|
Miscellaneous functions for random number generation.
|