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

memory allocation of mkl_sparse_convert_csr

$
0
0

I want to transpose a sparse matrix. I used the mkl_sparse_convert_csr function as

mkl_sparse_convert_csr(csrA,SPARSE_OPERATION_TRANSPOSE,&csrB);

(1) Immediately after this step, I would like to destroy csrA. I assumed csrB will have its own memory space. However, my program will crash if I access csrB. It seems csrB share the memory with csrA. It works fine if I destroy csrA after all steps. Can someone confirm this?

(2) I'm also wondering if this is the best way to transpose a sparse matrix. The mkl_?csrcsc is depreciated.

Thanks

Jiaen

TCE Open Date: 

Thursday, January 9, 2020 - 18:45

Viewing all articles
Browse latest Browse all 2652

Trending Articles



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