#! /bin/bash # This script must be run as SU to install intel mkl and icc (11.0.081) in a Linux Rocks cluster in /share/apps/intel # 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 5.3 does not come preinstalled with compat-libstdc++-33.i386. One needs to install this compatable library via yum install compat-libstdc++-33.i386 first before intel icc or intel ifort can be installed succesfully. # Step 0 # Be sure to set SELINUX to permissive by editing the file /etc/sysconfig/selinux # echo 'SELINUX=permissive' >> /etc/sysconfig/selinux # May have to reboot if selinux is changed. # Step 1 (manual input is required, so stand by) # You must first go to the intel webpage to request for an one-month licence via email at #http://software.intel.com/en-us/non-commercial-software-development # Click on the item IntelĀ® C++ Composer for Linux to accept all agreement # The licence file will be sent via email as an attachement with a typical name such as EVAL_L_CMP_CPP_VRN8-VDNWLSKR.lic. The licence key is simply VRN8-VDNWLSKR. The licence key may also be immediately shown one the screen once you finished the online registration process. Suggest to download the licence and manually put it into the folder /share/apps/intel/licenses (create the directory if not already existed). # The license will be expired in 30 days. When that happens, request again the licence file by going through the online registration process. Then paste the licence file *.lic into the folder /share/apps/intel/licenses. This will allow the intel application be usable for the next 30 days. It is assumed that one can repeat this procedure indefintely. 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 ### sourcing sh /share/apps/intel/Compiler/11.0/081/bin/iccvars.sh intel64 sh /share/apps/intel/Compiler/11.0/081/bin/intel64/iccvars_intel64.sh intel64 sh /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 # By default, I would also like to install ifftw2 and ifftw3 libraries, which source codes are found in /share/apps/intel/Compiler/11.0/081/mkl/interfaces. Installation of these libraries is conveniently done by issuing the following command lines. Note that installation of ifftw will fail if icc has not already been installed. #cd /share/apps #wget http://www2.fizik.usm.my/configrepo/howto/intel/inst_ifftw_sa #chmod +x inst_ifftw_sa #./inst_ifftw_sa