Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more efficient sparse matrix multiplies #3045

Open
bob-carpenter opened this issue Apr 11, 2024 · 1 comment
Open

more efficient sparse matrix multiplies #3045

bob-carpenter opened this issue Apr 11, 2024 · 1 comment
Labels

Comments

@bob-carpenter
Copy link
Contributor

Description

Replace the uses of Eigen::SparseMatrix (e.g., in CSR multiply) with more efficient custom code. As an example, @blackwer wrote faster code than Eigen for a project we did here on kmers for biome models (https://github.com/bob-carpenter/kmers) and I'm guessing it should be easy to use that code.

Current Version:

v4.8.1

@blackwer
Copy link

wrote faster code than Eigen for a project we did here on kmers for biome models

This isn't exactly verified. The matrix multiplies were done on the python side of that code using MKL's sparse multiply routines via the package sparse_dot_mkl. I haven't actually written any custom multiply routines. Most of the innovation in that project is on building the matrices quickly.

That said, I haven't heard great things about working with sparse matrices in Eigen. Does Eigen support external backends for sparse matrices like it does for classic BLAS/LAPACK stacks? It would be good to get a view of the current landscape regarding the speed and interop of various libraries for sparse matrix operations, basically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants