Intel MKL and compiler have provides scripts to control library path, which is/are required to be sourced before starting up the MKL linked julia; can someone point out how to work around this when using julia linked with intel MKL and vscode-julia 1.0.10?
Julia Version 1.5.2
Commit 539f3ce943* (2020-09-23 23:17 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libimf
LLVM: libLLVM-9.0.1 (ORCJIT, skylake
Here is the error when intel libraries are not in path:
INTEL MKL ERROR: /usr/local/bin/../lib/julia/libmkl_core.so: cannot open shared object file: No such file or directory.
Intel MKL FATAL ERROR: Cannot load libmkl_core.so.
Reproduce behaviour:
compile julia 1.4.x - 1.7.x with recent Intel MKL and gcc 9.2.x or up, install vscode-julia module v1.0.10 and try to execute a julia code line within a source file opened in vscode
output:
The terminal process "/usr/local/bin/julia '-i', '--banner=no', '--project=/home/steven/.julia/environments/v1.5', '/home/steven/.vscode/extensions/julialang.language-julia-1.0.10/scripts/terminalserver/terminalserver.jl', '/tmp/vsc-julia-repl-1970947', '/tmp/vsc-jl-cr-1970947', 'USE_REVISE=true', 'USE_PLOTPANE=true', 'DEBUG_MODE=undefined'" failed to launch (exit code: 2).
Tried work around:
Tried @fredrikekremethod to run julia in an external terminal β with MKL and Intel math lib sourced, but no success.
It seems likely your environment isnβt the same in VSCode as in your shell. Do you rely on sourcing those files in .bashrc or whatever to get Julia running?
So the reason this doesnβt work is because we donβt go through bash to start Julia. You should be able to start VSCode from within bash so that your environment is inherited though.
Thank you for replying and pointing out. Unfortunately the suggestion doesnβt work.
Starting code from shell crossed my mind (didnβt work), and turned to this forum to see if anyone else is experiencing this problem. In fact it took me several weeks to understand the problem of language server not starting is rooted in julia being compiled against MKL.
Maybe someone could help me β or point me to the direction β on how to set up a debug environment with vscode-julia plugin, so I could identify the problem?
Thanks! I was able to reproduce the error. I had to install webpack-cli to make F5 work. Can you please let me know how to fill the directories below with the content? β for now I copied them over from a working version. But there must be a way to do this?
OK, I have a working version for MKL, with the updated environment variables β verified in vscode. How can I bundle julia-vscode and try it in my live vscode editor?
as well as the JULIA_DEPOT_PATH with the oldDepotPath and a closing : token so the REPL can use its default DEPOT_PATH.
affected files: extensions.ts and interactive/repl.ts
I am not quite certain if these updates make sense in the bigger context, please let me know if it causes any misbehaviour, etc⦠In any event it fixed my problems with MKL.