Repository navigation
Conversation
The divide-and-conquer algorithm of `syevd` is about twice as fast as the MRRR algorithm of `syevr` to compute all eigenvectors when the eigenvalues are clustered, as for the NT scaling of Loraine near the central path, where `X Z ≈ μ I`. `LAPACK.syevd!` allocates its work arrays until FastLapackInterface supports `syevd!` with a preallocated workspace. Eigenvalues and eigenvectors of a symmetric `801 × 801` matrix with the eigenvalues `1 + δ * randn()` and 10 BLAS threads: | Spectrum | syevr | syevd | |---|---|---| | exp10.(range(-8, 2)) | 42.2 ms | 32.1 ms | | δ = 1e-1 | 75.4 ms | 35.9 ms | | δ = 1e-3 | 72.7 ms | 34.4 ms | | δ = 1e-6 | 75.3 ms | 34.1 ms | Total time with Loraine (kit=0 unless specified): | Problem | syevr | syevd | |---|---|---| | theta1 | 0.33 s | 0.33 s | | control1 | 0.32 s | 0.32 s | | tru9 | 9.1 s | 8.9 s | | vib9 | 29.6 s | 29.4 s | | vib9, kit=1 | 2.1 s | 2.0 s | | maxG11 | 5.5 s | 5.1 s | | thetaG11 | 7.1 s | 5.7 s | | thetaG51 (first 4 iterations) | 7.3 s | 7.1 s |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #107 +/- ##
=======================================
Coverage 99.59% 99.59%
=======================================
Files 29 29
Lines 1966 1988 +22
=======================================
+ Hits 1958 1980 +22
Misses 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
`LinearAlgebra.LAPACK.syevd!` allocates its eigenvalues and work arrays, which made the iterations of Loraine allocate 1280 B. Call `dsyevd` and `ssyevd` directly with work arrays stored in `EigenWorkspace`, resized by the first call. The branch `bl/fli_syevd` replaces this with `FastLapackInterface.syevd!` from DynareJulia/FastLapackInterface.jl#55 once it is released.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The divide-and-conquer algorithm of
syevdis about twice as fast as the MRRR algorithm ofsyevrto compute all eigenvectors when the eigenvalues are clustered, as for the NT scaling of Loraine near the central path, whereX Z ≈ μ I.LAPACK.syevd!allocates its work arrays until FastLapackInterface supportssyevd!with a preallocated workspace.Eigenvalues and eigenvectors of a symmetric
801 × 801matrix with the eigenvalues1 + δ * randn()and 10 BLAS threads:Total time with Loraine (kit=0 unless specified):