#! /bin/bash # This script must be run as SU to install intel mkl and ifort (11.1.072). # 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 # https://registrationcenter.intel.com/RegCenter/AutoGen.aspx?ProductID=1515&AccountID=&EmailID=&ProgramID=&RequestDt=&rm=EVAL&lang= # 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 /opt/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 /opt/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 /tmp 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 /tmp/l_cprof_p_11.1.072 ./install.sh # Step 2 source /opt/intel/Compiler/11.1/072/bin/ifortvars.sh intel64 chmod +x /opt/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh source /opt/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh intel64 source /opt/intel/Compiler/11.1/072/mkl/tools/environment/mklvarsem64t.sh intel64 echo '/opt/intel/Compiler/11.1/072/mkl/lib/em64t' >> /etc/ld.so.conf echo '/opt/intel/Compiler/11.1/072/lib/intel64' >> /etc/ld.so.conf ldconfig /sbin/ldconfig cd /usr/local/bin ln -s /opt/intel/Compiler/11.1/072/bin/intel64/ifort /usr/local/bin/. # To check whether the installation is sucessful, you may type 'which ifort' to see if the link /usr/local/bin/icc is indeed working. # By default, I would also like to install ifftw2 and ifftw3 libraries, which source codes are found in /opt/intel/Compiler/11.1/072/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 /tmp wget http://www2.fizik.usm.my/configrepo/howto/intel/inst_ifftw chmod +x inst_ifftw ./inst_ifftw