使用mkl,加载共享库时出错:libmkl_intel_lp64.so [英] using mkl, error while loading shared libraries: libmkl_intel_lp64.so
问题描述
我在使用 mkl
库时几乎是新手。所以请原谅,如果它看起来很愚蠢。我尝试在 [here] 教程中使用 ifort -mkl dgemm_example.f
,然后运行可执行文件。这是错误:
./ a.out:加载共享库时出错:libmkl_intel_lp64.so:无法打开共享对象文件:没有这样的文件或目录
我也搜索了类似的问题,但让我更加困惑。
你有什么想法吗?
dgemm_example.f
您必须设置LD_LIBRARY_PATH环境变量,否则共享库将在运行时找不到。
在运行程序之前,在(bash)shell中输入 export LD_LIBRARY_PATH = / path / to / your / library / directory
代码。
如果您使用的是Ubuntu,您可以使用 /etc/ld.so.conf.d中的配置文件自动设置此变量/
,请参阅 Ubuntu帮助。类似的机制可用于其他分发。
I'm almost new in using mkl
libraries. So excuse me if it seems silly. I tried to run an example in tutorial [here] with ifort -mkl dgemm_example.f
,then run the executable file. Here is the error:
./a.out: error while loading shared libraries: libmkl_intel_lp64.so: cannot open shared object file: No such file or directory
I also searched for the similar problems but it baffled me more. do you have any idea? dgemm_example.f
You have to set the LD_LIBRARY_PATH environment variable, otherwise the shared library will not be found at run time.
Before running your program, type export LD_LIBRARY_PATH=/path/to/your/library/directory
in the (bash) shell in which you want to run your code.
If you are using Ubuntu, you can set this variable automatically by using configuration files in /etc/ld.so.conf.d/
, see Ubuntu help. Similar mechanisms are available for other distributions.
这篇关于使用mkl,加载共享库时出错:libmkl_intel_lp64.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!