#! /bin/bash #### install intel parallel_studio_xe_2017 and ifftw3 as su in /share/apps testdir=/share/apps/configrepo mkdir $testdir ### 2222222222222222222222222222222222222222222222 ### #2. Intel Paralell studio, parallel_studio_xe_2017_update2.tgz (huge, ~ 4 GB) cd $testdir f2i=parallel_studio_xe_2017_update2.tgz if [ ! -e "$f2i" ] ; then echo "$f2i" not found else echo "$f2i" found. fi echo ' ' read -p "Press ENTER to proceed with the download of $f2i. Press 'n' if DO NOT wish to download $f2i. " pass if test "$pass" = "n" then echo "Will not download" $f2i else echo "Download " $f2i wget https://www.dropbox.com/s/4s7gzlhbd63hvpu/parallel_studio_xe_2017_update2.tgz?dl=0 -O parallel_studio_xe_2017_update2.tgz fi echo ' ' read -p "Press ENTER to proceed with the installation of $f2i. Press 'n' if DO NOT wish to proceed with the installation of $f2i. " pass if test "$pass" = "n" then echo "Will not proceed with the installatoin of "$f2i else echo "Proceed with the installatoin of "$f2i ## %%%%% tar -zxvf parallel_studio_xe_2017_update2.tgz cd parallel_studio_xe_2017_update2/ ./install_GUI.sh ## Use serial number 2T5V-255PWCZ3. Yeoh Keat Hoe is the owner. If it says it has expired, use S4ZD-N2TN4RPW. Tan Min Yang is the owner. ## Customize the installation by specifying the path /share/apps/intel intead of the default /opt/intel ## Select to install on 64-bit version (NO 32-bit version) when prompted in the customize installation. ## Select to install the pgi optionn for mkl library when prompted in the customize installation. #### source the vars.sh files so that the root during installation knows what is $MKLROOT /share/apps/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64 /share/apps/intel/compilers_and_libraries/linux/mkl/bin/mklvars.sh intel64 /share/apps/intel/compilers_and_libraries/linux/mpi/bin64/mpivars.sh intel64 cd $testdir wget http://comsics.usm.my/tlyoon/configrepo/howto/customise_centos/intel/auto_source_XE17_sa.txt chmod +x auto_source_XE17_sa.txt ./auto_source_XE17_sa.txt source /share/apps/intel/compilers_and_libraries/linux/bin/compilervars.sh intel64 source /share/apps/intel/compilers_and_libraries/linux/mkl/bin/mklvars.sh intel64 source /share/apps/intel/compilers_and_libraries/linux/mpi/bin64/mpivars.sh intel64 echo '$MKLROOT=' $MKLROOT ### create a symbolical link to /opt/intel ln -s /share/apps/intel/* /opt/intel/ # install ifftw3 cd $MKLROOT/interfaces/fftw3xf make libintel64 compiler=intel INTERFACE=ilp64; cp libfftw3xf_intel.a $MKLROOT/lib/intel64/ ## %%%%% fi # end if "Proceed with the installatoin of " $f2i