Sparse BLAS Routines¶
The Intel® oneAPI Math Kernel Library provides a Data Parallel C++ interface to some of the Sparse BLAS routines. This section describes the Sparse BLAS routines included in the Intel® oneAPI Math Kernel Library (oneMKL).
Sparse BLAS provides basic operations on sparse vectors and matrices and separates them into three stages: initialization, analysis (also called inspector stage or optimize stage) and execution. For a given matrix, the analysis would typically be called one time and the execution may be called multiple times. During the analysis stage, the API inspects the matrix properties including size, sparsity pattern and available parallelism and can apply matrix format or structure changes to enable a more optimized algorithm. In the execution stage, multiple routine calls can take advantage of the analysis stage data in order to improve performance.
The supported sparse formats in Sparse BLAS routines are described in Sparse Storage Formats.
Routine or Function Group |
Data Types |
Description |
---|---|---|
N/A |
Initialize a |
|
N/A |
Release a |
|
float, double |
Set internal representation of |
|
N/A |
Perform internal optimizations for the sparse::gemv operation. |
|
N/A |
Perform internal optimizations for the sparse::trmv operation. |
|
N/A |
Perform internal optimizations for the sparse::trsv operation. |
|
float, double |
General sparse matrix-dense vector product |
|
float, double |
General sparse matrix-dense vector product with fused dot product |
|
float, double |
Symmetric sparse matrix-dense vector product |
|
float, double |
Triangular sparse matrix-dense vector product |
|
float, double |
Triangular solve of sparse matrix against a dense vector. |
|
float, double |
General sparse matrix-dense matrix product |
|
N/A |
Initialize the |
|
N/A |
Populate the |
|
N/A |
Query the operation description housed in the |
|
N/A |
Release the |
|
float, double |
General sparse matrix-sparse matrix product |
The currently supported sparse storage formats can be found in Sparse Storage Formats.