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

Julia 1.11 issue #50

Closed
shinaoka opened this issue Oct 9, 2024 · 4 comments
Closed

Julia 1.11 issue #50

shinaoka opened this issue Oct 9, 2024 · 4 comments

Comments

@shinaoka
Copy link
Member

shinaoka commented Oct 9, 2024

One error found

conditioning: Test Failed at /Users/hiroshi/git/SparseIR.jl/test/sampling.jl:165
  Expression: length((SparseIR.SplitSVD(ones(ComplexF64, (6, 8)))).S) < 6
   Evaluated: 6 < 6

Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.11.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:679 [inlined]
 [2] macro expansion
   @ ~/git/SparseIR.jl/test/sampling.jl:165 [inlined]
 [3] macro expansion
   @ ~/.julia/juliaup/julia-1.11.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:1700 [inlined]
 [4] macro expansion
   @ ~/git/SparseIR.jl/test/sampling.jl:144 [inlined]
 [5] macro expansion
   @ ~/.julia/juliaup/julia-1.11.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/Test/src/Test.jl:1700 [inlined]
 [6] top-level scope
   @ ~/git/SparseIR.jl/test/sampling.jl:9
@SamuelBadr
Copy link
Collaborator

Thanks for the report, looking into this!

@shinaoka
Copy link
Member Author

shinaoka commented Nov 9, 2024

I am not sure this test makes sense. @SamuelBadr What do you think?

 @show SparseIR.SplitSVD(ones(ComplexF64, (6, 8))).S
(SparseIR.SplitSVD(ones(ComplexF64, (6, 8)))).S = [6.9282032302755105, 5.747501338471398e-16, 7.801870177058175e-48, 1.2361754353085013e-79, 5.66919951089432e-112, 3.461189509886644e-144]
6-element Vector{Float64}:
 6.9282032302755105
 5.747501338471398e-16
 7.801870177058175e-48
 1.2361754353085013e-79
 5.66919951089432e-112
 3.461189509886644e-144

@SamuelBadr
Copy link
Collaborator

SamuelBadr commented Nov 9, 2024

Strange, locally I get

julia> SparseIR.SplitSVD(ones(ComplexF64, (6, 8))).S
2-element Vector{Float64}:
 6.928203230275512
 4.644396126208122e-16

This is on

julia> versioninfo()
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin22.4.0)
  CPU: 12 × Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 6 default, 0 interactive, 3 GC (on 12 virtual cores)
Environment:
  JULIA_PKG_USE_CLI_GIT = true
  JULIA_NUM_THREADS = 6

@SamuelBadr
Copy link
Collaborator

Just checked on Anna's Linux machine and there it's

julia> SparseIR.SplitSVD(ones(ComplexF64, (6, 8))).S
5-element Vector{Float64}:
 6.928203230275512
 5.747501338471397e-16
 4.428118943191847e-47
 5.697874177521321e-79
 3.522674385218e-111

I guess you're right, the test doesn't make sense. I'll delete it.

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