CUTEst.jl
CUTEst.jl copied to clipboard
print CUTEst environment variables
closes #225
Doesn't work out of the box on macOS unfortunately, even after setting DYLD_FALLBACK_LIBRARY_PATH
:
$ sifdecoder ROSENBR
dyld: Library not loaded: @rpath/libgfortran.5.dylib
Referenced from: /Users/dpo/.julia/artifacts/83e267cb7d8652c72b9dac8674d69220810103c2/libexec/SIFDecode-2.0.3/objects/mac64.
osx.gfo/double/run_sifdecode
Reason: image not found
/Users/dpo/.julia/artifacts/83e267cb7d8652c72b9dac8674d69220810103c2/libexec/SIFDecode-2.0.3/bin/sifdecoder: line 459: 48619 A
bort trap: 6 $DECODER
ERROR: Error exit from decoding stage. terminating execution.
Codecov Report
Merging #226 (4743a8d) into main (4743a8d) will not change coverage. The diff coverage is
n/a
.
:exclamation: Current head 4743a8d differs from pull request most recent head ad25f01. Consider uploading reports for the commit ad25f01 to get more accurate results
@@ Coverage Diff @@
## main #226 +/- ##
=======================================
Coverage 87.07% 87.07%
=======================================
Files 5 5
Lines 712 712
=======================================
Hits 620 620
Misses 92 92
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
The updated version works for me on macOS.
@abelsiqueira Does it work for you on Linux?
There's still a caveat that running runcutest
tries to update the CUTEst library, which results in a lot of "permission denied" messages being printed. It's inconsequential, but annoying.
Unfortunately doesn't work for me either:
/home/abel/.julia/artifacts/c990de2425d3a17849e2f6bbe47decf0f81036d8/libexec/SIFDecode-2.0.3/objects/pc64.lnx.gfo/double/run_sifdecode: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory
Does it work if you define this bash function: https://github.com/JuliaSmoothOptimizers/CUTEst.jl/pull/226/files#diff-4b9f14fdac93f5150aa5c070ec70fc63R129
Almost worked, needs a ;
at the end: ... bash -c "..."; }
.
With that change, run_sifdecoder ROSENBR
worked.
Should be good now.
We need a similar one for runcutest
. I tried adding a
run_cutest() { ... source $CUTEST/bin/runcutest $*"; }
but it failed when I ran run_cutest -p genc -D ROSENBR
with a bunch of these:
ar: /home/abel/packages/julias/julia-1.4-latest/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/libLLVM-9.so)
The sifdecoder
part ran correctly.
PS. The $*
instead of $@
was necessary to parse the arguments correctly.
Does this work though
run_sifdecoder ROSENBR
run_cutest -p genc
No, it has the same error. The final line is Error opening file OUTSDIF.d.
, which I guess it's because the compilation failed.
Hm. It works for me on macOS. That seems to indicate an issue with the JLL... :-(
there are conflict markers in these changes.
Thanks, I just noticed too. I rebased this just in case, if this is still of interest ?
It is, but what's a bit weird is that runcutest
modifies the artifacts. It works, but it's not ideal. I should modify CUTEst itself so it only modifies files in ~/.cutest
(say), and leaves the compiled object files alone.
Can I close this PR?
All the environment variables have been removed because they not needed anymore with the new artifact SIFDecode_jll.jl
.