Changeset 2321 in /cluster/svnroot


Ignore:
Timestamp:
Apr 8, 2010 1:57:06 PM (11 years ago)
Author:
fitz
Message:

amend runmpi function, removing lam (#484) and fixing openmpi (#492)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bccd-ng/trunk/packages/etc/skel/.bash_profile

    r2231 r2321  
    3838        module list 2>&1 | egrep -q '[[:space:]]mpich2\/'
    3939        MPICH=$?
    40         module list 2>&1 | egrep -q '[[:space:]]lam\/'
    41         LAM=$?
    4240
    4341        if [ $OMPI -eq 0 ]; then
    44                 'mpirun' -x DISPLAY=`hostname -s`:0.0 $@
    45                 return $?
     42                OPTS="-x DISPLAY=`hostname -s`:0.0"
    4643        elif [ $MPICH -eq 0 ]; then
    47                 'mpiexec' -genv DISPLAY `hostname -s`:0.0 $@
    48                 return $?
    49         elif [ $LAM -eq 0 ]; then
    50                 'mpirun' -x DISPLAY=`hostname -s`:0.0 $@
    51                 return $?
     44                OPTS="-genv DISPLAY `hostname -s`:0.0"
    5245        fi
     46
     47        `which mpirun` $OPTS $@
     48        return $?
    5349}
    5450
Note: See TracChangeset for help on using the changeset viewer.