Login script: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Home directories are now shared at hood/thelon/winisk/kazan. If you have the same shell at all of these machines, then they will run the same login script (.bash_profile). Thi...") |
No edit summary |
||
Line 2: | Line 2: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
if [ `hostname -s` = "hood" ]; then | if [ `hostname -s` = "hood" ]; then | ||
# Source the Intel compiler suite variables | # Source the Intel compiler suite variables | ||
Line 16: | Line 10: | ||
fi | fi | ||
if [ `hostname -s` = "thelon" ]; then | |||
# Source the Intel compiler suite variables | |||
source /opt/intel/Compiler/11.1/064/bin/iccvars.sh intel64 | |||
source /opt/intel/Compiler/11.1/064/bin/ifortvars.sh intel64 | |||
fi | |||
if [ `hostname -s` = "winisk" ] || [ `hostname -s` == "kazan" ]; then | if [ `hostname -s` = "winisk" ] || [ `hostname -s` == "kazan" ]; then |
Revision as of 12:43, 6 February 2014
Home directories are now shared at hood/thelon/winisk/kazan. If you have the same shell at all of these machines, then they will run the same login script (.bash_profile). This is a Good Thing, except that some paths differ between the systems. Below is some code that will set the correct paths by checking the current system. Paste the code into your $HOME/.bash_profile and you should have the correct paths at all four systems. If any of these paths change, please update this wiki page.
if [ `hostname -s` = "hood" ]; then
# Source the Intel compiler suite variables
source /opt/intel/bin/iccvars.sh intel64
source /opt/intel/bin/ifortvars.sh intel64
# Ensure that the compiler wrappers and mpirun are in the PATH
export PATH=$PATH:/usr/lib64/openmpi/bin
fi
if [ `hostname -s` = "thelon" ]; then
# Source the Intel compiler suite variables
source /opt/intel/Compiler/11.1/064/bin/iccvars.sh intel64
source /opt/intel/Compiler/11.1/064/bin/ifortvars.sh intel64
fi
if [ `hostname -s` = "winisk" ] || [ `hostname -s` == "kazan" ]; then
# Source the Intel compiler suite variables
source /opt/intel/Compiler/11.1/064/bin/iccvars.sh ia64
source /opt/intel/Compiler/11.1/064/bin/ifortvars.sh ia64
# Ensure that the compiler wrappers and mpirun are in the PATH
export PATH=$PATH:/opt/sgi/mpt/mpt-2.01/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/sgi/mpt/mpt-2.01/lib/
# Add the SCSL paths
export LD_LIBRARY_PATH=/opt/scsl/lib:$LD_LIBRARY_PATH
export INCLUDE=/opt/scsl/include:$INCLUDE
fi