#! /bin/bash # This script must be run as SU to install intel mkl and ifort (11.1.072) in /share/apps/intel/ # Advise to run http://www2.fizik.usm.my/configrepo/howto/inst_numeric if not already done. Uncomment the next two line if needed. # wget http://www2.fizik.usm.my/configrepo/howto/inst_numeric # chmod +x inst_numeric # ./inst_numeric # 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®Fortran 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. # 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_cprof_p_11.1.072.tgz tar xvfz l_cprof_p_11.1.072.tgz rm l_cprof_p_11.1.072.tgz cd l_cprof_p_11.1.072 ./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.1 will be installed. # -------------------------------------------------------------------------------- # 1. Install in the "/opt/intel/Compiler/11.1/072" directory [default] # 2. Specify a custom installation directory ############################################################################## # choose Option 2 to custom install it in the directory /share/apps/intel/Compiler/11.1/072 ## sourcing sh /share/apps/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh intel64 echo '/share/apps/intel/Compiler/11.1/072/mkl/lib/em64t' >> /etc/ld.so.conf echo '/share/apps/intel/Compiler/11.1/072/lib/intel64' >> /etc/ld.so.conf /sbin/ldconfig ## Add the ifort library path and the bin path to .bashrc of any user who wants to use them in a cluster environtment: ### ifort bin path and ifort library, 11.1.072 #export PATH=/share/apps/intel/Compiler/11.1/072/bin/intel64:$PATH #export LD_LIBRARY_PATH=/share/apps/intel/Compiler/11.1/072/lib/intel64 ### By default we wil NOT add the mkl library path that comes along with ifort 11.1.072 to .bashrc of a home user, as we will use the mkl that comes along with icc (11.0.081) instead. ### mkl library path (ifort, 11.1.072) #export LD_LIBRARY_PATH=/share/apps/intel/Compiler/11.1/072/mkl/lib/em64t