#! /bin/bash # This script must be run as SU to install intel mkl and icc (11.0.081) in a Linux Rocks cluster or Centos7 in /share/apps/intel # prerequisite: /share/apps has already existed. If use mkdir to make one (this is required for CentOS system; for Rocks existence of /share/apps is already established by default). ### download intel licencse mkdir /share/apps/intel mkdir /share/apps/intel/licenses cd /share/apps/intel/licenses wget http://www2.fizik.usm.my/configrepo/howto/intel/licenses/licenses.tar tar -xvf licenses.tar ### end of download intel licencse # Step -1: It is possible that during the installation process, the intel installation may complain about "Missing critical pre-requisite -- missing system commands". This is because Rocks Linux 6 does not come preinstalled with compat-libstdc++-33.i686. One needs to install this compatable library via yum install compat-libstdc++-33.i686 # Step 0 # Must set SELINUX to permissive by editing the file /etc/sysconfig/selinux # either: # echo 'SELINUX=permissive' >> /etc/sysconfig/selinux # or better still, issue the command as root: setenforce 0 ## Download the source file and licenses from www2.fizik.usm.my into /share/apps/configrepo cd /share/apps/configrepo wget http://www2.fizik.usm.my/configrepo/howto/intel/l_cproc_p_11.0.081_intel64.tar tar -xvf l_cproc_p_11.0.081_intel64.tar cd /share/apps/configrepo/l_cproc_p_11.0.081_intel64 ./install.sh # When prompted ############################################################################## # Step no: 4 of 7 | Installation location # -------------------------------------------------------------------------------- # Please provide the location where the Intel(R) Fortran Compiler Professional # Edition for Linux* version 11.0 will be installed. # -------------------------------------------------------------------------------- # 1. Install in the "/opt/intel/Compiler/11.0/081" directory [default] # 2. Specify a custom installation directory ############################################################################## # choose Option 2 to custom install it in the directory /share/apps/intel/Compiler/11.0/081 # Any user to use icc should source the path in his/her ~/.bashch. To do so, add the following lines in the ~/.bashrc file for $USERS. By default, to avoid confusion you should use the mkl libraries of ifort version 11.1.072, but not the mkl from icc 11.0.081. Hence you are advised not to source /share/apps/intel/Compiler/11.0/081/mkl/tools/environment/mklvarsem64t.sh intel64 on $USERS/.basrhc ### sourcing (to be added into $USER/.bashrc source /share/apps/intel/Compiler/11.0/081/bin/iccvars.sh intel64 source /share/apps/intel/Compiler/11.0/081/bin/intel64/iccvars_intel64.sh intel64 #source /share/apps/intel/Compiler/11.0/081/mkl/tools/environment/mklvarsem64t.sh intel64 ## Add the icc library path, the bin path and mkl that comes along with icc to .bashrc of any users who wants to use them in a cluster environtment: ### icc bin path and icc library, 11.0.081 # export LD_LIBRARY_PATH=/share/apps/intel/Compiler/11.0/081/lib/intel64 # export PATH=/share/apps/intel/Compiler/11.0/081/bin/intel64:$PATH ### mkl library path (icc, 11.0.081) #export LD_LIBRARY_PATH=/share/apps/intel/Compiler/11.0/081/mkl/lib/em64t