Support for the DIA Format

Hi,
I was reading through cuSparse documentation for the available sparsity formats. I am wondering if the DIA format (as mentioned in this paper) is supported by cuSparse or not?

If not, what will it require to implement our own kernel supporting the DIA format?

Hi @atyagi2. cuSparse doesn’t support DIA format at the moment.

If not, what will it require to implement our own kernel supporting the DIA format?

Sorry, I don’t get your question. Can you tell me what’s your use case that needs DIA format in cuSparse?

Hi @qanhpham. Thank you for your response.

I want to carry out large matrix-matrix or matrix-vector calculations where the matrices are sparse and have non-zeros only on the diagonals. The DIA format is an exact fit for representing such matrices.

Since DIA is not supported by cuSparse, I can either represent the matrices using CSR, COO, etc., or maybe modify cuSparse to support representing matrices in the DIA format. How will I do that?

You can use CSR, COO formats for your computation.
You can’t modify cuSparse to add support for DIA format. We can add this feature of there are many requests for it; for now, we don’t have plan to do this support.