void xDense2Csr<float>:: xDense2Csr_Function(bool flush) { cuSparseStatus = cusparseSdense2csr(handle, n_rows, n_cols, descrA, device_A, n_rows, // dense matrix in col-major format, lda is number of elements in major dimension (number of rows) nnzPerRow, devValues, devRowOffsets, devColIndices); CUDA_V_THROW(cuSparseStatus, "cusparseSdense2csr"); cudaDeviceSynchronize(); } // end of function
cusparseStatus_t cusparseXdense2csr(int m, int n, const cusparseMatDescr_t descrA, const float *A, int lda, const int *nnzPerRow, float *csrValA, int *csrRowPtrA, int *csrColIndA) { return cusparseSdense2csr(g_context->cusparseHandle, m, n, descrA, A, lda, nnzPerRow, csrValA, csrRowPtrA, csrColIndA); }