Porting MKL’s Inspector-Executor APIs to AOCL-Sparse - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English

Table 11.3 illustrates the mapping between MKL’s inspector-executor (I/E) and AOCL-Sparse’s APIs. Most of these APIs have similar signatures. Apart from minor differences like the one in create_csr (4 pointers vs. 3 pointers in the function arguments), porting from MKL to AOCL-Sparse should be straightforward provided the entire MKL Sparse APIs are replaced with the corresponding AOCL-Sparse APIs.

Table 11.3 Mapping MKL’s inspector-executor APIs to AOCL-Sparse#

MKL

AOCL-Sparse

Comments

mkl_sparse_?_create_csr

aoclsparse_create_?csr()

4 vs. 3 pointers, matrix structure

mkl_sparse_convert_csr

aoclsparse_convert_csr()

mkl_sparse_?_export_csr

aoclsparse_export_?csr()

mkl_sparse_order

aoclsparse_order_mat()

mkl_sparse_?_mv

aoclsparse_?mv()

mkl_sparse_?_trsv

aoclsparse_?trsv()

mkl_sparse_sp2m

aoclsparse_sp2m()

mkl_sparse_?_mm

aoclsparse_?csrmm()

Works for general & symmetric matrices

mkl_sparse_?_trsm

aoclsparse_?trsm()

mkl_sparse_?_add

aoclsparse_?add()