MKl配置环境变量

在编译MKl库的时候出现下下面错误

error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
error while loading shared libraries: libiomp5.so: cannot open shared object file: No such file or directory

处理办法很简单

首先我们找到相应动态库的位置

然后将路径加入到环境变量

以我的工程为例,我所需要的libmkl_intel_lp64.so动态库在下面文件夹中

ligang@4e8d49abad4d:/opt/intel/mkl/lib/intel64$ ls
libmkl_avx.so                   libmkl_blacs_sgimpt_ilp64.a   libmkl_gf_ilp64.so       libmkl_lapack95_lp64.a     libmkl_tbb_thread.a
libmkl_avx2.so                  libmkl_blacs_sgimpt_ilp64.so  libmkl_gf_lp64.a         libmkl_mc.so               libmkl_tbb_thread.so
libmkl_avx512.so                libmkl_blacs_sgimpt_lp64.a    libmkl_gf_lp64.so        libmkl_mc3.so              libmkl_vml_avx.so
libmkl_avx512_mic.so          

你可能感兴趣的:(编译器,vscode,linux)