control-toolbox icon indicating copy to clipboard operation
control-toolbox copied to clipboard

Dynamic (*.so) JIT-libraries from CppADCG do sometimes not get deleted after destruction

Open markusgft opened this issue 5 years ago • 3 comments

old libraries accumulate in workspace

markusgft avatar May 18 '19 06:05 markusgft

See the following issue: https://github.com/joaoleal/CppADCodeGen/issues/27#issuecomment-538776009

See also the following example: https://github.com/joaoleal/CppADCodeGen/blob/master/example/jit_linux.cpp

markusgft avatar Oct 06 '19 19:10 markusgft

The accumulation of saved (old) libraries cannot be circumvented easily. LLVM is now an optional dependency which allows to perform JIT without creating a dynamic library. As of now, deep-cloning of LLVM model libraries is not yet implemented - the pipeline for optinional JIT with LLVM and CPPADCG is integrated and works, however deep-cloning of such libs is not yet supported.

markusgft avatar Oct 27 '19 19:10 markusgft

To use llvm/clang, currently the following installation instructions have to be used: https://blog.kowalczyk.info/article/k/how-to-install-latest-clang-6.0-on-ubuntu-16.04-xenial-wsl.html

markusgft avatar Nov 03 '19 22:11 markusgft