#! /bin/bash # This script must be run as SU. It will install intel mkl and ifort (11.1.072) in the directory /share/apps of Rocks Linux cluster ### 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 #### download intel ifort 11.2.072 source mkdir /share/apps/configrepo cd /share/apps/configrepo wget http://www2.fizik.usm.my/configrepo/howto/intel/l_cprof_p_11.1.072.tgz # 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. #### Manual intervention is required. Standby and manually do the following ######### tar -zxvf l_cprof_p_11.1.072.tgz cd /share/apps/configrepo/l_cprof_p_11.1.072 cd l_cprof_p_11.1.072 ./install.sh # While installing, at Step no: 3 of 7 | Activation options, you will be prompted "Please type a selection or press "Enter" to accept default choice [1]:". Type "3" (i.e., "Alternative activation")" ## Then you will be prompted the following options: ### 1. Use a serial number on a different computer which has access to the internet [default] ### 2. Use a license file - choose this option if you already have a license file for this product ### 3. Use a license server - choose this option if you connect to a license server to obtain a license for this product ## You should choose "2" (Use a licence file) ## In Step no: 3 of 7 | Activation Options - Use a License File", # Choose "1. Provide the full path to the license file(s) [default]" # When prompted "Please type the full path to your license file(s):", key in the directory # /share/apps/intel/licenses ## In the next prompt: ## 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 ### You should choose "2. Specify a custom installation directory" ### In the "Please type the full path to the installation directory starting with "/" :". prompt, type ### /share/apps/intel/Compiler/11.1/072 # Step 2 source /share/apps/intel/Compiler/11.1/072/bin/ifortvars.sh intel64 chmod +x /share/apps/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh source /share/apps/intel/Compiler/11.1/072/bin/intel64/ifortvars_intel64.sh intel64 source /share/apps/intel/Compiler/11.1/072/mkl/tools/environment/mklvarsem64t.sh intel64 mkdir /share/apps/local mkdir /share/apps/local/bin cd /share/apps/local/bin ln -s /share/apps/intel/Compiler/11.1/072/bin/intel64/ifort /share/apps/local/bin # To check whether the installation is sucessful, you may type 'which ifort'. ## After installation of ifort, you should next install intel ifftw. Prerequisite for ifftw: icc must have already been present. cd /share/apps/configrepo/ wget http://www2.fizik.usm.my/configrepo/howto/intel/inst_ifftw_sa chmod +x inst_ifftw_sa ./inst_ifftw_sa