CUTEst.jl icon indicating copy to clipboard operation
CUTEst.jl copied to clipboard

print CUTEst environment variables

Open dpo opened this issue 4 years ago • 16 comments

closes #225

dpo avatar May 11 '20 12:05 dpo

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.

dpo avatar May 11 '20 12:05 dpo

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.

codecov[bot] avatar May 11 '20 12:05 codecov[bot]

The updated version works for me on macOS.

@abelsiqueira Does it work for you on Linux?

dpo avatar May 11 '20 20:05 dpo

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.

dpo avatar May 11 '20 20:05 dpo

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

abelsiqueira avatar May 11 '20 22:05 abelsiqueira

Does it work if you define this bash function: https://github.com/JuliaSmoothOptimizers/CUTEst.jl/pull/226/files#diff-4b9f14fdac93f5150aa5c070ec70fc63R129

dpo avatar May 11 '20 22:05 dpo

Almost worked, needs a ; at the end: ... bash -c "..."; }. With that change, run_sifdecoder ROSENBR worked.

abelsiqueira avatar May 11 '20 22:05 abelsiqueira

Should be good now.

dpo avatar May 12 '20 00:05 dpo

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.

abelsiqueira avatar May 12 '20 13:05 abelsiqueira

Does this work though

run_sifdecoder ROSENBR
run_cutest -p genc

dpo avatar May 12 '20 14:05 dpo

No, it has the same error. The final line is Error opening file OUTSDIF.d., which I guess it's because the compilation failed.

abelsiqueira avatar May 12 '20 14:05 abelsiqueira

Hm. It works for me on macOS. That seems to indicate an issue with the JLL... :-(

dpo avatar May 12 '20 15:05 dpo

there are conflict markers in these changes.

dpo avatar Aug 08 '22 14:08 dpo

Thanks, I just noticed too. I rebased this just in case, if this is still of interest ?

tmigot avatar Aug 08 '22 14:08 tmigot

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.

dpo avatar Aug 08 '22 15:08 dpo

Can I close this PR? All the environment variables have been removed because they not needed anymore with the new artifact SIFDecode_jll.jl.

amontoison avatar Aug 21 '24 03:08 amontoison