Redhat上采用Ifc编译器,MKL数据库 VASP5.3编译的过程
-----------------------------------------------------
创建用户:
adduser -g root mu
passwd mu
rocks sync users
rocks sync config
一 . 软件准备
VASP源代码(vasp.5.3.3.tar.gz和vasp.5.lib.tar.gz),ifc编译器(l_cprof_p_11.1.064.tgz)icc编译器(l_cproc_p_11.1.064.tgz ),openmpi 软件
#su root 进入root用户,
二.ICC编译器安装
先解压l_cproc_p_11.1.064.tgz 得到l_cproc_p_11.1.064文件夹
进入l_cproc_p_11.1.064文件夹找到install.sh文件
执行./install.sh开始安装icc,
-------------------------------------
注意选择: 2. Custom Install (For Advanced Users)
2. Custom Install - specify individual product components to install
在后面的安装选项中选择安装Intel(R) 64的,不安装IA-32 。安装过程中自带 Math Kernel Library 数学库。
并指定安装目录/share/apps/intel/icc
-------------------------------------
安装完毕 ,ICC安装完成
(卸载时 在目录外执行 安装目录/bin/intel64/uninstall_cproc.sh 进行卸载)
此时,mkl位置 /share/apps/intel/icc/mkl
三. Ifc编译器安装
先解压l_cprof_p_11.1.064.tgz 得到l_cprof_p_11.1.064文件夹
进入l_cprof_p_11.1.064文件夹找到install.sh文件
执行./install.sh开始安装ifc,
-------------------------------------
注意选择 2. Custom Install (For Advanced Users)
2. Custom Install - specify individual product components to install
在后面的安装选项中选择安装Intel(R) 64的,不安装IA-32 。不安装 Math Kernel Library 数学库。
并指定安装目录/share/apps/intel/ifc
-------------------------------------
安装完毕 ,ifc安装完成
(卸载时 在目录外执行 安装目录/bin/intel64/uninstall_cprof.sh 进行卸载,uninstall_debugger.sh也可以)
四.将icc和ifort命令加入环境变量
新建一个文件user.sh,加入
INTELROOT=/share/apps/intel/intel2
. $INTELROOT/