/[escript]/branches/py3_attempt2/bin/run-escript
ViewVC logotype

Diff of /branches/py3_attempt2/bin/run-escript

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

revision 2462 by jfenwick, Fri Jun 5 06:04:01 2009 UTC revision 2510 by gross, Thu Jul 2 05:15:59 2009 UTC
# 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.2462  
changed lines
  Added in v.2510

  ViewVC Help
Powered by ViewVC 1.1.26