openmpi和intel icc icpc

时间:2016-02-11 14:01:23

标签: ubuntu-14.04 openmpi icc

全部交易;

我想在ubuntu 14.04 x64中使用intel icc和icpc制作openmpi 1.10.2,所以首先我安装了intel compliers,检查一下:

$ icc -v

$ icc version 13.1.0 (gcc version 4.7.0 compatibility)

$ icpc -v

$ icpc version 13.1.0 (gcc version 4.7.0 compatibility)

$ which icc

$ /opt/intel/composer_xe_2013.2.146/bin/intel64/icc

$ which icpc

$ /opt/intel/composer_xe_2013.2.146/bin/intel64/icpc

after these, in openmpi directory:

$ ./configure --prefix=/usr/local CC=icc CXX=icpc

... output of configure ...

$ sudo make

... output of make ...

$ sudo make install

/home/riza/openmpi-1.10.2/libtool: line 8979: icc: command not found
libtool: install: error: relink `libopen-rte.la' with the above command before installing it
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/riza/openmpi-1.10.2/orte'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/riza/openmpi-1.10.2/orte'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/riza/openmpi-1.10.2/orte'
make: *** [install-recursive] Error 1
你能帮帮我吗?

2 个答案:

答案 0 :(得分:1)

由于libtool找不到iccicpc的位置,因此您应该提供与它们的确切链接。在您的情况下,请尝试:

./configure --prefix=/usr/local CC=/opt/intel/composer_xe_2013.2.146/bin/intel64/icc CXX=/opt/intel/composer_xe_2013.2.146/bin/intel64/icpc

答案 1 :(得分:0)

Most likely your root account doesn't have the same environment pointers to Intel Composer. Try installing without sudo with --prefix somewhere where you own (or can comfortably own) the directory and make symlinks to /usr/local.