Open ouening opened 2 years ago
Thanks for reporting, the warning message is inappropriate and we will be fixing it in #6669. We are likely unable to implement LIL matrices in the short/mid term as cuSPARSE does not support it.
It looks like if we interpret LIL as "arrays of arrays" instead of "lists of lists" we could copy the SciPy implementation to CuPy and use dense arrays (cupy.ndarray) to back it. However I have no idea if this would be performant on GPUs.
Description
I have changed the code in https://github.com/pmocz/pic-python to cupy api. A warning arised:
Changing the sparsity structure of a csr_matrix is expensive. lil_matrix is more efficient.
The modified code list below:The original way costs 42 seconds. However in with cupy api it costs 58 seconds.
Additional Information
No response