This section provides step-by-step instructions for migrating from Intel MKL Sparse BLAS [1] to AOCL-Sparse. It covers both traditional and inspector-executor interfaces with mapping tables and examples.
The migration process involves understanding key AOCL-Sparse concepts:
aoclsparse_matrix- Matrix handle created via APIs likeaoclsparse_create_?csr(),aoclsparse_create_?csc(), oraoclsparse_create_?coo(). See Storage Schemes for supported formats.aoclsparse_mat_descr- Matrix descriptor created viaaoclsparse_create_mat_descr()and configured usingaoclsparse_set_mat_type(),aoclsparse_set_mat_fill_mode(),aoclsparse_set_mat_diag_type(), andaoclsparse_set_mat_index_base().aoclsparse_operation- Operation type (none, transpose, conjugate transpose).aoclsparse_index_base- Index base (0-based or 1-based).