Skip to content

Commit

Permalink
Refs #4606 must use .bash_profile to load modules. It works!
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Jan 23, 2012
1 parent 9f680ab commit f1bda29
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
14 changes: 14 additions & 0 deletions Code/Mantid/Framework/MPIAlgorithms/scripts/bash_profile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export PATH=$PATH:$HOME/bin
# This allows cmake to find POCO libraries
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
# Load modules available on lens
module load git
module load cmake/2.8.6
module load hdf5
module load python/2.7
# OpenMPI with the gnu (gcc) compiler
module load ompi/1.4.3-gnu4.4.4
# Get latest gcc
module load gcc/4.4.4
# Run this after building your own python
export PYTHONPATH=$HOME/lib/python2.7/site-packages/
11 changes: 1 addition & 10 deletions Code/Mantid/Framework/MPIAlgorithms/scripts/cncs_script.pbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,7 @@
#PBS -l nodes=2:ppn=16
# Email when it ends #PBS -m e

module load hdf5
module load ompi/1.4.3-gnu4.4.4
module load gcc/4.4.4

# Setup environment to point to home directory
export PATH=$HOME/bin:$PATH
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$HOME/lib/python2.7/site-packages/

echo $LD_LIBRARY_PATH
# Make sure your .bash_profile file is set and loads modules esp. gcc/4.4.4

cd /ccs/home/8oz/Code/Mantid/Code/Mantid/Framework/MPIAlgorithms/scripts
export MANTIDPATH=$HOME/Code/Mantid/framework/bin
Expand Down

0 comments on commit f1bda29

Please sign in to comment.