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
?
source /opt/intel/bin/compilervars.sh intel64
source /opt/intel/parallel_studio_xe_2020/bin/psxevars.sh &> /dev/null
which works with terminal access:
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 @fredrikekre method to run julia in an external terminal β with MKL and Intel math lib sourced, but no success.