I was trying to execute files that load Pardiso.jl which requires an environment variable MKLROOT
. I have set MKLROOT
in shell (zsh) by having source /opt/intel/mkl/bin/mklvars.sh intel64
in .zshrc
. The package works normally if I start Julia from Zsh. But, it won’t work (warning MKLROOT
not set) if I execute the file in VSCode using the extension command.
Is there anyway to get this fixed?
Update: The issue disappeared after I restart my computer. Sorry for wasting your time.