Hello,
I get an Unhandled exception error when im tring to use the cusparseSnnz function.
my code:
(my matrix is at the size of points_NumberXpoints_Number)
void denseToCsr(cusparseHandle_t handle, float *src,const int points_Number, float *csrVal,int* csrRowPtr,int* csrColPtr)
int* nnz;
int *nnzPerVector;
size_t pitch;
cudaMallocPitch ( (void **) &nnzPerVector, &pitch, points_Number*sizeof(int),1);
cusparseSnnz(handle,CUSPARSE_DIRECTION_ROW,points_Number,points_Number,descrA,src,points_Number,nnzPerVector,nnz);
}
Thanks for your advise!