Intel编译器
约 466 字
预计阅读 1 分钟
Intel2015
- 编译
fftw
,生成libfftw3xf_intel.a
,
1
2
|
cd /opt/intel/composer_xe_2015.0.090/mkl/interfaces/fftw3xf
make libintel64
|
1
2
3
4
5
6
7
8
9
10
|
#intel2015 mkl
source /opt/intel/composer_xe_2015/bin/compilervars.sh intel64
source /opt/intel/composer_xe_2015.0.090/mkl/bin/intel64/mklvars_intel64.sh
#export PATH=/opt/intel/composer_xe_2015.0.090/bin/intel64:$PATH
#export LD_LIBRARY_PATH=/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64:/opt/intel/composer_xe_2015.0.090/mkl/interfaces/fftw3xf:$LD_LIBRARY_PATH
#export MKLROOT=/opt/intel/composer_xe_2015.0.090/mkl
#intel2015 mpi
source /opt/intel/impi/5.0.1.035/intel64/bin/mpivars.sh
#export PATH=/opt/intel/impi/5.0.1.035/intel64/bin:$PATH
#export LD_LIBRARY_PATH=/opt/intel/impi/5.0.1.035/intel64/lib:$LD_LIBRARY_PATH
|
Intel2017
1
2
3
4
5
6
7
8
|
tar zxvf parallel_studio_xe_2017_update5.tgz
Step 5 of 7 | Options > Pre-install Summary
...
1. Start installation Now [default]
2. Customize installation #choose
...
1. Start installation Now [default]
2. Change install directory [ /opt/intel/parallel_studio_xe_2017.5.061 ]
|
1
|
source /opt/intel/parallel_studio_xe_2017.5.061/psxevars.sh
|
1
2
|
cd /opt/intel/compilers_and_libraries_2017.5.239/linux/mkl/interfaces/fftw3xf
make libintel64
|
问题
如果一不小心删除了部分文件
解决
- 先尽可能多得删除程序,否则无法重新安装。
1
2
3
|
rpm -qa | grep intel
rpm -e --nodeps --allmatches `rpm -qa | grep intel- | grep 239`
rpm -e --nodeps --allmatches `rpm -qa | grep intel- | grep 2017`
|
-
然后重新安装intel2017,这时无法改变文件安装位置。
-
接着,用官方卸载工具卸载。
-
再重新安装intel2017,之后就一切正常了。
注意
命令 |
编译器 |
mpiicc、mpiicpc、mpiifort |
Intel |
mpicc、mpif90、mpifc |
GNU |