bash 如何知道是否安装了 MKL?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27547309/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to know if MKL is installed?
提问by ziulfer
I am working in a new machine, and I can't find the path to the MKL libraries.
Is there a way to know if and where they are installed ?
I tried find -name
, but I could find nothing. Maybe they are simply not installed. But how to be sure?
我在一台新机器上工作,我找不到 MKL 库的路径。有没有办法知道它们是否安装以及安装在哪里?我试过了find -name
,但我什么也找不到。也许他们根本没有安装。但是如何确定呢?
回答by deimus
Try to check with whereis <YOURAPPNAME/YOURLIBNAME>
. More on whereis
here
尝试检查whereis <YOURAPPNAME/YOURLIBNAME>
。更多在whereis
这里
Generally speaking there might be a manual installation of some package which is not listed neither in standard binary locations neither in PATH
.
一般而言,可能会手动安装某些软件包,这些软件包既未在标准二进制位置中列出,也未在PATH
.
In this case your only option is to do iterations over whole file system hierarchy and to check if a directory contains the executable file you are looking for.
在这种情况下,您唯一的选择是对整个文件系统层次结构进行迭代,并检查目录是否包含您要查找的可执行文件。
回答by Kalpit
Posting this here, just in case anybody finds this useful:
在这里发布,以防万一有人觉得这很有用:
Because I installed Intel's MKL on Ubuntu 16.04 directly with MKL's install_GUI.sh, I found my MKL installation at /home/{user-name}/intel/mkl.
因为我直接使用 MKL 的 install_GUI.sh 在 Ubuntu 16.04 上安装了 Intel 的 MKL,所以我在/home/{user-name}/intel/mkl找到了我的 MKL 安装。