Centos6.7下安装Intel 的icc / ifort 编译器非商业版


一、查看系统环境

[root@MPI_EXERCISE bigdft-1.8.1]# cat /etc/redhat-release

CentOS release 6.7 (Final)

[root@MPI_EXERCISE bigdft-1.8.1]# uname -a

Linux MPI_EXERCISE 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@MPI_EXERCISE bigdft-1.8.1]# uname -r

2.6.32-573.el6.x86_64

[root@MPI_EXERCISE bigdft-1.8.1]# uname -m

x86_64


二、安装inter编译器需要的软件包libstdc++5

[root@MPI_EXERCISE bigdft-1.8.1]# yum install libstdc++.so.5


三、下载intel编译器安装包

1、进入inter官网http://software.intel.com/en-us/articles/intel-software-developer-support ,在菜单栏中选择

Tools & Downloads;

wKiom1mSl_iTAntWAAFKgn5Tf08064.png

2、进入后,再选择Get Free Tools(非商业版);

wKioL1mSmLmADeqqAAWnYkPjlIk783.png

3、进入页面后,向下滑动鼠标,然后选择Tools for Non-Commercial Use

wKiom1mSmTXDVQcjAAbt4_7k8AY351.png

4、进入页面后,向下滑动鼠标,然后选择Open Source Contributor

wKiom1mSmhXhW38DAAap8ikJfxY343.png

5、进入页面后,向下滑动鼠标,然后选择Linux*

wKiom1mSmsjg-41lAAI1I0-lFYA744.png

6、进入页面后,在三个小方框里面打钩,然后选择Accept;

wKiom1mSm0Wg6RT1AAIgu6ZUA_o907.png

7、进入页面后,需要填写邮箱等信息。填写完成后,会提示在一到两个工作日内将文件发到邮箱;

wKioL1mSm9aQAYF5AAJ5Awu3ckc296.png

8、大概过了一天,会受到一封来自美国的邮件,打开邮件选择download

wKioL1mSn3igWNhoAAD7SnbWCGQ499.png

9、进入页面后,下拉页面,选择第一个下载。

wKiom1mSn-XANpZxAAK1i5iwLAI375.png

wKiom1mSoCDQMuWBAAEQ9RC4vz4757.png

四、安装intel编译器

1、将下载到windows的安装包上传到centos中;

[root@MPI_EXERCISE ~]# cd /home/qiuuuu/tools/
[root@MPI_EXERCISE tools]# rz


2、解压parallel_studio_xe_2017_update4_professional_edition_online.tgz

[root@MPI_EXERCISE tools]# tar zxf parallel_studio_xe_2017_update4_professional_edition_online.tgz


3、编译、安装

[root@MPI_EXERCISE tools]# cd parallel_studio_xe_2017_update4_professional_edition_online

[root@MPI_EXERCISE parallel_studio_xe_2017_update4_professional_edition_online]# ls

[root@MPI_EXERCISE parallel_studio_xe_2017_update4_professional_edition_online]# ./install.sh

wKiom1mSprjSONpWAABEkuXHIm8272.png

在安装过程中一路enter下去,有yes or no就输入yes,有accept or rejecet就输入accept。如果出现如下所示,表示要输入注册码,注册码在邮件中

wKiom1mSqFfB1wpTAACjswPiej0000.png

wKioL1mSqKrTaeS6AAD1z7zQOgo235.png


五、配置inter编译器

1、查找ifort是否已经存在,结果显示不存在;

[root@MPI_EXERCISE compilers_and_libraries]# which ifort

/usr/bin/which: no ifort in (/application/mysql/bin:/application/mpich/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin)

wKiom1mS1fHzCB1YAAAiTqZlz-Y661.png


2、手动配置环境变量;

[root@MPI_EXERCISE bin]# cd /opt/intel/compilers_and_libraries_2017.4.196/linux/bin/

[root@MPI_EXERCISE bin]# ls

wKiom1mS1iDC2jx6AAA60wN8ICM120.png

[root@MPI_EXERCISE bin]# source ./compilervars.sh intel64

[root@MPI_EXERCISE bin]# which ifort

/opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64/ifort

[root@MPI_EXERCISE bin]# which icc

/opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64/icc

wKioL1mS1q7zUUOoAAAp9wCz6X8366.png


六、其他inter相关的版本下载信息

另外,如果要删除ifort编译器,不能够直接删除,在/opt/intel/composer_xe_2011_sp1.10.319/composer_xe_2011_sp1.10.319/bin/下面有一个uninstall.sh文件,应该执行这个文件来完成卸载(注意不要在uninstall.sh所在的文件夹中执行,应该退出此目录执行)

补充:

ifort 支持 openMP,MPICH2 也支持 ifort,ifort编译高效,因此,使用 ifort 也是一个不错的选择。

Intel的C编译器是 icc,也是不错的产品,下载链接是http://registrationcenter-download.intel.com/akdlm/irc_nas/2567/l_ccompxe_intel64_2011.10.319.tgz

Intel一系列的产品均有非商业版,例如VTune等,均可免费下载,

VTune下载链接是:http://registrationcenter-download.intel.com/akdlm/irc_nas/2526/vtune_amplifier_xe_2011_update8.tar.gz

建议得到下载链接后,用 wget 下载。

Non-Commercial Software Download

Product Suites The IntelSoftware Development Productslisted below are available for free non-commercial download. Click on a productto initiate the download process. Non-commercial licenses are subject to theterms ofnon-commercial software development.

IntelParallelStudio XE 2011 for Linux*
Includes IntelC++ Composer XE,IntelFortranComposer XE,IntelVTune Amplifier XE,IntelInspectorXE

IntelC++Studio XE 2011 for Linux
Compilers and Libraries

IntelFortranComposer XE 2011 for Linux
Includes IntelFortran Compiler,IntelMathKernel Library

IntelC++Composer XE 2011 for Linux
Includes IntelC++ Compiler,IntelIntegratedPerformance Primitives,IntelMath Kernel Library,IntelParallelBuilding Blocks

Performance Libraries

IntelMathKernel Library (IntelMKL) for Linux

IntelIntegratedPerformance Primitives (IntelIPP) for Linux

Performance Profilers

IntelVTuneAmplifier XE 2011 for Linux

Thread and Memory Checkers

IntelInspectorXE 2011 for Linux



【参考文献】

http://www.jb51.cc/article/p-wlrtvogr-cd.html

http://blog.sina.com.cn/s/blog_15d0344a30102wt4r.html

相关文章

#使用军哥的lnmp配置虚拟主机,需要注意的是要配置hosts文件(...
一、配置编译环境 yum update && yum upgra...
一、下载repo文件 二、备份并替换系统的repo文件 三、执行yu...
LAMP -- Linux Apache MySQL PHP 在CentOS安装的顺序,我一般...
一、下载nginx安装包,官网下载中心http://nginx.org/downlo...
1.下载composer curl -sS https://getcomposer.org/installe...