Skip to content

Sparse matrix operations and jaxlib version #16248

Answered by jakevdp
pvasired asked this question in Q&A
Discussion options

You must be logged in to vote

But I found that only the CSR data structure can be used with spsolve().

That's correct. This function lowers to a GPU primitive that only supports CSR input.

For one, it seems like the BCOO data structure is better supported

That's correct. Most of our existing JAX sparse functionality is built for BCOO. But BCSR is getting more complete, and that should work with spsolve(), so that's worth a try.

will BCOO become useable in spsolve() any time soon?

Unlikely, because the GPU lowering for spsolve requires CSR.

Furthermore, I'm having trouble even getting spsolve() to run using GPU.

Yeah, CUDA versioning is a real pain. Cusparse/cusolver in particular seems to be pretty unstable be…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pvasired
Comment options

Answer selected by pvasired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants