#!/bin/csh -- -*- shell-script -*- # # MPI/LAM Standard .cshrc file # Sould only be sourced! Should not replace your .cshrc file! # # This script sets your TROLLIUSHOME (which is the same as LAMHOME) # variable and selects the right path for the LAM binaries to put # in your path, depending on the following: # # - which compiler you are using (really only relevant for C++) # - what architecture you are on # # # Shortcuts for below # We have a LAM_VERSION variable because we have several versions # of LAM online (for development, stability, etc.). # set LAM_VERSION=6.3 set TOP=/afs/nd.edu/user37/ccse set LAM=mpi/lam-$LAM_VERSION # # Architecture dependent stuff # Use the GNU config.guess to get type of machine # set LAM_ARCH=`$TOP/mpi/config.guess` set UNAME_ARCH=`echo $LAM_ARCH | cut -d- -f1` set UNAME_SYSTEM=`echo $LAM_ARCH | cut -d- -f2` set UNAME_OS=`echo $LAM_ARCH | cut -d- -f3` set PREFIX_PATH= set SUFFIX_PATH= set TROLLIUSHOME= # # We have several versions of LAM/MPI available, and it is possible # to source this script after one version of LAM has already been # set in the path. So if we are sourcing this script, ensure to # remove all other LAM/MPI versions from the path. # set new_path= foreach entry ($path) set new=$entry if ("$new" =~ $TOP/mpi/*) then set new= endif set new_path=($new_path $new) end # # Which compiler do we want? This is only really relevant for different # C++ compilers. If you are not planning on using C++, this part is # not really necessary. # if ("$?CC" == "1") then set C_COMPILER=`basename $CC` else set C_COMPILER= endif if ("$?CXX" == "1") then set CPP_COMPILER=`basename $CXX` else set CPP_COMPILER= endif # # Do we want the compiler warning message or not? # if ("$?MPI_WARN" == "1") then set CAT=cat else set CAT=":" endif set errfile=/tmp/lam_cshrc_err.$$ /bin/rm -f $errfile cat > $errfile <