Intel Compiler Set-Up in AOPP

This is a general csh script for setting up Intel compilers in AOPP which may be added to log-in scripts, e.g. ~/.login . It tries to find the newest available compiler on the system. If you have any suggestions for improvements, please log in to www2.physics with the link at the bottom right of this page and leave a comment.

if ( $?prompt && { tty -s } ) then if ( "x" != "x`uname -a | grep x86_64`" ) then set ifortp='intel64' else set ifortp='ia32' endif if ( -d /usr/local/PACK/composerxe/) then set ifortv='composerxe' echo "Setting up ifort version "${ifortv}" for "${ifortp} set ifortf='/usr/local/PACK/composerxe/bin/compilervars.csh '${ifortp} source ${ifortf} echo Set up ifort `ifort -v` and icc `icc -v` else if (-d /usr/local/PACK/intel) then set ifortv=`ls --color=never -d /usr/local/PACK/intel/compiler1*` set ifortv=${ifortv[${#ifortv}]} echo "Setting up ifort: "${ifortv} set ifortf=${ifortv}'/bin/ifortvars.csh '${ifortp} source ${ifortf} else if (-d /opt/intel/Compiler) then set ifortv=`ls --color=never /opt/intel/Compiler/` set ifortv=${ifortv[${#ifortv}]} set iforta=`ls --color=never /opt/intel/Compiler/${ifortv}/` set iforta=${iforta[${#iforta}]} echo "Setting up ifort version "${ifortv}${iforta}" for "${ifortp} set ifortf='/opt/intel/Compiler/'${ifortv}'/'${iforta}'/bin/ifortvars.csh '${ifortp} source ${ifortf} else if (-d /opt/intel/fce) then set ifortv=`ls --color=never /opt/intel/fce` set ifortv=${ifortv[${#ifortv}]} echo "Setting up ifort: "${ifortv} set ifortf='/opt/intel/fce/'${ifortv}'/bin/ifortvars.csh' source ${ifortf} else echo "No Fortran compiler set up" endif endif

Categories: AOPP | Intel Compilers | Linux