#! /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 # prerequisite: /share/apps has already existed. mkdir /share/apps/intel #obtain license file from https://registrationcenter.intel.com/en/forms/?productid=2163 by filling up the IntelĀ® Parallel Studio XE Cluster Edition for Linux form. Trial license will be sent via email. The serial number, e.g. VC88-CSPFVCHD will be needed in order to activate the intel compileres (icc, ifort, mkl and impi) for a month. Skip this if intel icc has been installed based on http://www2.fizik.usm.my/configrepo/howto/intel/inst_icc_11.0.081_sa, as licensed would have been installed. If valid license file is already in existence, installation will prompt for 'used existing licence', so that no serial will be needed in this case. # 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 # Skip above step if intel icc has been installed based on http://www2.fizik.usm.my/configrepo/howto/intel/inst_icc_11.0.081_sa, as licensed would have been installed. # Step 0 # Must set SELINUX to permissive by editing the file /etc/sysconfig/selinux # either: # echo 'SELINUX=permissive' >> /etc/sysconfig/selinux # or better still, issue the command as root: setenforce 0 # Skip the above step if intel icc has been installed based on http://www2.fizik.usm.my/configrepo/howto/intel/inst_icc_11.0.081_sa, as licensed would have been installed. #### 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 tar -zxvf l_cprof_p_11.1.072.tgz cd /share/apps/configrepo/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 # Any user to use ifort should source the path in his/her ~/.bashch. To do so, add the following lines in the ~/.bashrc file for $USERS. By default, to avoid confusion you should use the mkl libraries of ifort version 11.1.072, but not the mkl from icc 11.0.081. Hence you are advised not to source /share/apps/intel/Compiler/11.0/081/mkl/tools/environment/mklvarsem64t.sh intel64 on $USERS/.basrhc ### sourcing (to be added into $USER/.bashrc) 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