cusparse cusparseXcoo2csr

Hello,

im tring to use the cusparse function cusparseXcoo2csr, and im facing some problems.

My function call is:

int nnz=15318;

    int n=500;

    cusparseXcoo2csr(handle, cooRowInd, nnz, srcHight, csrRowPtr, CUSPARSE_INDEX_BASE_ZERO);

The first 25 values in cooRowInd are: 1

From some reason the first 2 elements in csrRowPtr are zero (Which is wrong) and the rest of the reults are fine.

for this example:

csrRowPtr[0]=0

csrRowPtr[1]=0

csrRowPtr[2]=25

Can you please advise?

What kind of COO format do you use?
We do not support duplicated coordinates with different values (to be summed) and the coordinates need to be ordered.