I am trying to compute J^TJ with cuSparse. J is a large but sparse matrix. I looked into the documents here
but there doesn’t seem to be an API that I can call to do that. The closest one is cusparseSpMM but for some reason, it requires B matrix to be dense instead of sparse. The problem is I don’t have enough GPU memory to make J dense.
How come there isn’t a function that can allow us to do matrix multiplication between two sparse matrices? Or am I missing something?