Community
cancel
Showing results for 
Search instead for 
Did you mean: 
wen_qiang_z_
Beginner
43 Views

Meeting Access Conflict when trying to use mkl_sparse_convert_csr

Hi, has anyone encounterd the situation I met? All I did was try to convert a sparse matrix in CSC format to CSR format.

At the foremost , I use mkl_sparse_z_creat_csc to create a matrix in CSC format, and the stat is '0', which shows that the creation is successful, and I use mkl_sparse_convert_csr to get matrix in CSR format. I`ve tried this function using a small matrix and surely it works, however, when I use it to convert a big matrix, the compiler suddenly occur to prompt me that there exists an Access Conflict when running the convert function, and I have no idea why this hint comes to me, so is there anyone knows why?

0 Kudos
4 Replies
Gennady_F_Intel
Moderator
43 Views

what mkl version do you use? we don't know such problem with the latest 2019.

wen_qiang_z_
Beginner
43 Views

Hi, after checking my code, I find an error in assembling CSC matrix, and I`ve solved this problem, thx a lot.

By the way, if I try to compute the multiplication of two CSR matrix A and B with sparse_index_base_one both using mak_sparse_spmm to get another sparse matrix C, when I use mkl_sparse_?_export_csr, I find that the sparse_index_base is zero instead of one, is it correct or the function return the default internal data type rather than the input value?

Gennady_F_Intel
Moderator
43 Views

This looks like a problem. the output array should be indexed like the input arrays. Could you give us the example of this case?

wen_qiang_z_
Beginner
43 Views

Gennady F. (Intel) wrote:

This looks like a problem. the output array should be indexed like the input arrays. Could you give us the example of this case?

Hi,Gennedy

This case has appeared many times during my compute, and here is a easier way to actualize it:

1. Using mkl_sparse_?_create_csr to create two sparse matrix A and B with sparse_index_base_one

2.Using mkl_sparse_?_add to compute the sum of the two matrix and store the result as a sparse matrix C, or you can use mkl_sparse_spmm to compute the product of he two matrix

3. Export sparse matrix C and you will find out that the sparse_index_base is zero.

Reply