Repository navigation
[CUSPARSE] Implement a sparse GEMV for CuSparseMatrixCSC * CuSparseVector - #2488
Conversation
|
In practice, we don't know the sparsity pattern of the output and thus for very rare cases we want to do that in-place. Maybe I should remove the high-level |
I'll leave that up to you to decide what's the most likely scenario here. Adding a docstring on the behavior and the alternative is probably a good idea though. |
The most likely scenario is that the result will be dense, so I decided to remove the high-level dispatch for this sparse |
bef7991 to
893960e
Compare
#2484
I didn't added new tests because the current ones should check if the result is correct or not:
https://github.com/JuliaGPU/CUDA.jl/blob/master/test/libraries/cusparse/interfaces.jl#L267-L282
Note that a sparse GEMV
CuSparseMatrixCSR * CuSparseVectoris also implemented.