#! /bin/bash # This script must be run as SU to install intel mkl and icc (11.0.081) in a Linux Rocks cluster or Centos 6/7 in /share/apps/intel # prerequisite: /share/apps has already existed. mkdir /share/apps/intel mkdir /share/apps/intel/licenses #obtain license file from https://registrationcenter.intel.com/en/forms/?productid=2163 by filling up the IntelĀ® Parallel Studio XE Cluster Edition for Linux form. Trial license will be sent via email. The serial number, e.g. VC88-CSPFVCHD will be needed in order to activate the intel compileres (icc, ifort, mkl and impi) for a month. Skip this if intel icc has been installed based on http://www2.fizik.usm.my/configrepo/howto/intel/inst_icc_11.0.081_sa, as licensed would have been installed. If valid license file is already in existence, installation will prompt for 'used existing licence', so that no serial will be needed in this case. # 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 (and perhaps compat-libstdc++-33) 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) ## 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: 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