In the official example (CUDALibrarySamples/dense2sparse_blockedell_example.c at master · NVIDIA/CUDALibrarySamples · GitHub) and documentation (cuSPARSE), when we convert a dense matrix to blocked-ELL format, are we supposed to set the “ell_columns” content in advance, and get only the “ell_values” from the conversion routine? I have tried to set both as empty arrays but got only a non-empty “ell_values” array with wrong values. Are there routines or settings I should apply to get both “ell_columns” and “ell_values” from a dense matrix? Thanks!
Hi.
are we supposed to set the “ell_columns” content in advance, and get only the “ell_values” from the conversion routine?
Yes, the values of ell_columns need to be provided before the conversion. We don’t have a routine that builds the ell_columns for users.