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

How to enable multithreading? #125

Open
atbug opened this issue Oct 26, 2023 · 1 comment
Open

How to enable multithreading? #125

atbug opened this issue Oct 26, 2023 · 1 comment

Comments

@atbug
Copy link

atbug commented Oct 26, 2023

I expect the following script should use 16 threads:

using SparseArrays
using SuiteSparseGraphBLAS
using Arpack

gbset(:nthreads, 16)
A = GBMatrix(sprand(100000, 100000, 0.001))
H = A' + A

@info "matrix constructed"

eigs(H, nev=6, which=:SR, maxiter=1000)

However, the CPU usage keeps < 100% during eigs, for which I believe most of the time should be doing matrix vector multiplication:
image

@rayegun
Copy link
Member

rayegun commented Oct 28, 2023

This is falling back on a generic matmul right now. I will try to figure out how to deal with that.

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

No branches or pull requests

2 participants