我正在尝试在我的 Linux 机器上安装英特尔 OpenMP 运行时以启用OpenMP
对clang
编译器的支持。我遵循以下指南:http ://clang-omp.github.io/ 。
我已经到了编译器被构建、识别-fopenmp
并知道在哪里的地步omp.h
。现在唯一缺少的是它找不到-liomp5
,我假设是英特尔 OpenMP 运行时。上述网站上的说明说我需要这样做:
要运行(而不仅仅是编译)代码,您需要获取并构建一个英特尔® OpenMP* 运行时库。
所以我下载了运行时,并在自述文件中提供了以下编译器选择:
Supported Architectures: IA-32 architecture, Intel(R) 64, and
Intel(R) Many Integrated Core Architecture
-----------------------------------------------------------
| icc/icl | gcc |
--------------|------------------------------|--------------------------|
| Linux* OS | Yes(1,5) | Yes(2,4) |
| OS X* | Yes(1,3,4) | No |
| Windows* OS | Yes(1,4) | No |
-------------------------------------------------------------------------
(1) On IA-32 architecture and Intel(R) 64, icc/icl versions 12.x are
supported (12.1 is recommended).
(2) gcc version 4.6.2 is supported.
(3) For icc on OS X*, OS X* version 10.5.8 is supported.
(4) Intel(R) Many Integrated Core Architecture not supported.
(5) On Intel(R) Many Integrated Core Architecture, icc/icl versions 13.0
or later are required.
除非我的阅读理解能力比我想象的差,否则建议我可以选择使用它gcc 4.6.2
来编译运行时。不幸的是,当我继续构建它时,我得到:
$ make compiler=gcc
[...]
----- 1/1 --- making lib inc common -----
Build : 00000000 (development)
check-tools.pl: (!) No "gfortran" found in PATH.
check-tools.pl: (!) No "icc" found in PATH.
check-tools.pl: (!) No "icpc" found in PATH.
check-tools.pl: (!) No "ifort" found in PATH.
../../tools/src/common-checks.mk:59: *** Development tools not found: icc, icpc, ifort. Stop.
我在这里真的很茫然。有没有人成功使用过clang-omp
,这一步构建英特尔运行时是否真的需要?我一定很不擅长按照说明进行操作,而且没有成功,我需要一些帮助。谢谢你。