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

use new JLL #36

Merged
merged 8 commits into from
Sep 1, 2020
Merged

use new JLL #36

merged 8 commits into from
Sep 1, 2020

Conversation

ericphanson
Copy link
Owner

closes #29

I saw some strange failures locally (the binary not writing the output file?) so let's see what CI sees.

@codecov-commenter
Copy link

codecov-commenter commented Aug 21, 2020

Codecov Report

Merging #36 into master will decrease coverage by 1.71%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #36      +/-   ##
==========================================
- Coverage   88.08%   86.37%   -1.72%     
==========================================
  Files           6        6              
  Lines         512      521       +9     
==========================================
- Hits          451      450       -1     
- Misses         61       71      +10     
Impacted Files Coverage Δ
src/SDPAFamily.jl 66.66% <ø> (ø)
src/binary_call.jl 81.15% <100.00%> (+0.85%) ⬆️
src/MOI_wrapper.jl 78.71% <0.00%> (-3.30%) ⬇️
src/presolve.jl 98.11% <0.00%> (-0.07%) ⬇️
src/file_io.jl 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8ed970...d8709e3. Read the comment docs.

@ViralBShah
Copy link

ViralBShah commented Aug 27, 2020

@giordano @staticfloat - Any idea what we can do to address the failure on mac? We were unable to do the libgfortran expnsion because of libcxxwrap - so is there any way forward?

@giordano
Copy link

How come libgfortran can't be found? 😕

@giordano
Copy link

@ericphanson can you please run

using Libdl
filter!(lib -> occursin("fortran", lib), dllist())

at the beginning of the tests?

@ViralBShah
Copy link

@ericphanson Bump to try @giordano's suggestion.

@ericphanson
Copy link
Owner Author

Thanks for the reminder, done!

@ericphanson
Copy link
Owner Author

ericphanson commented Aug 31, 2020

Results:

@giordano
Copy link

giordano commented Aug 31, 2020

It looks like julia v1.4 on macos comes with libgfortran 5?!? For the other versions of Julia, as far as I can see on the phone the library is loaded correctly but accuracy tests are failing?

@ericphanson
Copy link
Owner Author

Good point, I hadn’t scrolled down to check the failures. We can just relax the tolerances for those. If it’s only a 1.4 issue then we could just drop support at some point.

@giordano
Copy link

Honestly I'm surprised julia v1.4 on macos uses a different libgfortran (v5) than the other platforms and versions of Julia on the same platform (all of them v4). @staticfloat is that correct?

@staticfloat
Copy link

Unfortunately, yes. We're constrained by the gfortran support that we get via Homebrew, and there was some problem with GCC@7 a while back so we just upgraded the buildbots to GCC@9.

@ViralBShah
Copy link

Fun

@ViralBShah
Copy link

Is this something we should open an issue for? Or simply just use Julia 1.5 as a minimum and move on for now?

@ViralBShah
Copy link

Can we update this PR to be 1.5 only and see if it works out?

@ericphanson
Copy link
Owner Author

Seems to work on 1.5! I am seeing weird failures locally on WSL2 about temp directories SDPAFamily creates not being found (possibly related to JuliaLang/julia#37029? not sure, I need to look into it more). I see the same on master, however, so I'll merge this.

Example failure on WSL2
geomean2f: Error During Test at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/config.jl:47
  Got exception outside of a @test
  SystemError: opening file "/tmp/jl_D02HKQ/output.dat": No such file or directory
  Stacktrace:
   [1] systemerror(::String, ::Int32; extrainfo::Nothing) at ./error.jl:168
   [2] #systemerror#48 at ./error.jl:167 [inlined]
   [3] systemerror at ./error.jl:167 [inlined]
   [4] open(::String; lock::Bool, read::Bool, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at ./iostream.jl:284
   [5] open(::String, ::String; lock::Bool) at ./iostream.jl:346
   [6] open(::String, ::String) at ./iostream.jl:346
   [7] open(::SDPAFamily.var"#23#29"{Float64,SDPAFamily.Optimizer{Float64},SDPAFamily.var"#getnextline#26"{String},SDPAFamily.var"#remove_brackets!#28",Array{Float64,1},Array{Float64,1}}, ::String, ::Vararg{String,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:323
   [8] open at ./io.jl:323 [inlined]
   [9] read_results!(::SDPAFamily.Optimizer{Float64}, ::String, ::Array{Int64,1}) at /mnt/c/Users/eric/Code/SDPAFamily.jl/src/file_io.jl:39
   [10] sdpa_gmp_binary_solve!(::SDPAFamily.Optimizer{Float64}, ::String, ::String; redundant_entries::Array{Int64,1}) at /mnt/c/Users/eric/Code/SDPAFamily.jl/src/binary_call.jl:58
   [11] optimize!(::SDPAFamily.Optimizer{Float64}) at /mnt/c/Users/eric/Code/SDPAFamily.jl/src/MOI_wrapper.jl:346
   [12] optimize!(::MathOptInterface.Utilities.CachingOptimizer{SDPAFamily.Optimizer{Float64},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}) at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Utilities/cachingoptimizer.jl:189
   [13] optimize! at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Bridges/bridge_optimizer.jl:239 [inlined]
   [14] _geomean2test(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{SDPAFamily.Optimizer{Float64},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Test.TestConfig{Float64}, ::Bool) at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/contconic.jl:1462
   [15] geomean2ftest(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{SDPAFamily.Optimizer{Float64},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Test.TestConfig{Float64}) at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/contconic.jl:1478
   [16] macro expansion at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/config.jl:48 [inlined]
   [17] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115 [inlined]
   [18] geomeantest(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{SDPAFamily.Optimizer{Float64},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/config.jl:48
   [19] macro expansion at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/config.jl:48 [inlined]
   [20] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115 [inlined]
   [21] contconictest(::MathOptInterface.Bridges.LazyBridgeOptimizer{MathOptInterface.Utilities.CachingOptimizer{SDPAFamily.Optimizer{Float64},MathOptInterface.Utilities.UniversalFallback{MathOptInterface.Utilities.Model{Float64}}}}, ::MathOptInterface.Test.TestConfig{Float64}, ::Array{String,1}) at /home/eric/.julia/packages/MathOptInterface/bygN7/src/Test/config.jl:48
   [22] macro expansion at /mnt/c/Users/eric/Code/SDPAFamily.jl/test/MOI_wrapper.jl:68 [inlined]
   [23] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115 [inlined]
   [24] macro expansion at /mnt/c/Users/eric/Code/SDPAFamily.jl/test/MOI_wrapper.jl:68 [inlined]
   [25] macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1190 [inlined]
   [26] macro expansion at /mnt/c/Users/eric/Code/SDPAFamily.jl/test/MOI_wrapper.jl:12 [inlined]
   [27] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1190
   [28] include(::String) at ./client.jl:457
   [29] top-level scope at /mnt/c/Users/eric/Code/SDPAFamily.jl/test/runtests.jl:23
   [30] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1115
   [31] top-level scope at /mnt/c/Users/eric/Code/SDPAFamily.jl/test/runtests.jl:13
   [32] include(::String) at ./client.jl:457
   [33] top-level scope at none:6
   [34] eval(::Module, ::Any) at ./boot.jl:331
   [35] exec_options(::Base.JLOptions) at ./client.jl:272
   [36] _start() at ./client.jl:506

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

Successfully merging this pull request may close these issues.

Error when using SDPAFamily
5 participants