Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

What is the memory management strategy in sparse_matrix_t ?

$
0
0

Hi all,

I have two questions about memory management of sparse_matrix_t :

1. When I create a matrix handle using routine mkl_sparse_?_create_csr, the handle will copy all data to new memory blocks? Or it only save the pointers in handle?  If it copy all data to new block, and the routine mkl_sparse_destroy will free these memory blocks or not ?

2. As the result of routine mkl_sparse_spmm , is it created in mkl routines?I will call destroy routine for it ? And then the internal data like column indexes array and matrix values array should be free expicit or not?

By the way, I found routines declared in header file : mkl_sparse_?_set_value, but they are not found in manual. And there are comment about these routines:

/* update existing value in the matrix ( for internal storage only, should not work with user-allocated matrices) */

It means I can not using them in my code?

Thanks,

Tianxiong Lu


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>