#! /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 ### 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 # 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. ## 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 ### sourcing 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 # 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