/[escript]/trunk/bin/run-escript
ViewVC logotype

Diff of /trunk/bin/run-escript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2458 by jfenwick, Wed Jun 3 06:18:21 2009 UTC revision 2541 by jfenwick, Mon Jul 20 00:25:55 2009 UTC
# Line 72  EXTRA_LD_LIBRARY_PATH=$ESCRIPT_ROOT/lib Line 72  EXTRA_LD_LIBRARY_PATH=$ESCRIPT_ROOT/lib
72    
73  if [ $STANDALONE == 1 ]  if [ $STANDALONE == 1 ]
74  then  then
75      EXTRA_PATH=$ESCRIPT_PARENT/packages/python/bin:$EXTRA_PATH      EXTRA_PATH=$ESCRIPT_PARENT/pkg/python/bin:$EXTRA_PATH
76      EXTRA_LD_LIBRARY_PATH=$ESCRIPT_PARENT/packages/boost/lib:$ESCRIPT_PARENT/packages/netcdf/lib/:$EXTRA_LD_LIBRARY_PATH      EXTRA_LD_LIBRARY_PATH=$ESCRIPT_PARENT/pkg/boost/lib:$ESCRIPT_PARENT/pkg/netcdf/lib/:$EXTRA_LD_LIBRARY_PATH
77      EXTRA_LD_LIBRARY_PATH=$ESCRIPT_PARENT/packages/vtk/lib/vtk-5.2:$ESCRIPT_PARENT/packages/mesa/lib:$EXTRA_LD_LIBRARY_PATH      EXTRA_LD_LIBRARY_PATH=$EXTRA_LD_LIBRARY_PATH
78      EXTRA_LD_LIBRARY_PATH=$ESCRIPT_PARENT/packages/python/lib:$EXTRA_LD_LIBRARY_PATH      EXTRA_LD_LIBRARY_PATH=$ESCRIPT_PARENT/pkg/python/lib:$EXTRA_LD_LIBRARY_PATH
79      EXTRA_PYTHONPATH=$ESCRIPT_PARENT/packages/numpy/lib:$ESCRIPT_PARENT/packages/vtk/lib/python2.6/site-packages:$EXTRA_PYTHONPATH      EXTRA_PYTHONPATH=$ESCRIPT_PARENT/pkg/numpy/lib/python2.6/site-packages:$ESCRIPT_PARENT/pkg/matplotlib/lib/python2.6/site-packages:$EXTRA_PYTHONPATH
80  fi  fi
81    
82    
# Line 360  then Line 360  then
360     if [ ! -z $HOSTFILE ]     if [ ! -z $HOSTFILE ]
361     then     then
362        HOST_LIST=`awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' $HOSTFILE`        HOST_LIST=`awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' $HOSTFILE`
363        CMD="mpirun  --bynode -np $TOTPROC --host $HOST_LIST $EXEC_CMD"        CMD="mpirun -x ${EXPORT_ENV//,/ -x } --bynode -np $TOTPROC --host $HOST_LIST $EXEC_CMD"
364     else     else
365        CMD="mpirun -np $TOTPROC $EXEC_CMD"        CMD="mpirun -x ${EXPORT_ENV//,/ -x } -np $TOTPROC $EXEC_CMD"
366     fi     fi
367     if [ ! -z $ESCRIPT_VERBOSE ]; then echo "MPI command is \"$CMD\"."; fi     if [ ! -z $ESCRIPT_VERBOSE ]; then echo "MPI command is \"$CMD\"."; fi
368     $CMD     $CMD
# Line 371  then Line 371  then
371  #=============== Intel MPI ===================================  #=============== Intel MPI ===================================
372  elif [ $MPI_FLAVOUR == "INTELMPI" ]  elif [ $MPI_FLAVOUR == "INTELMPI" ]
373  then  then
374    
375       if [  $WITH_OPENMP == "y"  ]
376       then
377           export I_MPI_PIN_DOMAIN=omp
378           EXPORT_ENV="$EXPORT_ENV, I_MPI_PIN_DOMAIN"
379       fi
380    
381     if [ ! -z $HOSTFILE ]     if [ ! -z $HOSTFILE ]
382     then     then
383        mpdboot -n $ESCRIPT_NUM_NODES -r ssh -f $HOSTFILE        mpdboot -n $ESCRIPT_NUM_NODES -r ssh -f $HOSTFILE

Legend:
Removed from v.2458  
changed lines
  Added in v.2541

  ViewVC Help
Powered by ViewVC 1.1.26