/[escript]/trunk/scripts/finley_wrapper_template
ViewVC logotype

Diff of /trunk/scripts/finley_wrapper_template

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

revision 2354 by gross, Tue Mar 31 08:26:05 2009 UTC revision 2355 by gross, Wed Apr 1 04:08:28 2009 UTC
# Line 324  then Line 324  then
324     EXPORT_ENV="$EXPORT_ENV, OMP_NUM_THREADS"     EXPORT_ENV="$EXPORT_ENV, OMP_NUM_THREADS"
325  fi  fi
326    
327    #=============== no MPI ===================================
328  if [ $MPI_FLAVOUR  == "none" ]  if [ $MPI_FLAVOUR  == "none" ]
329  then  then
330     $EXEC_CMD     $EXEC_CMD
331    
332    #=============== OpenMPI ===================================
333  elif [ $MPI_FLAVOUR == "OPENMPI" ]  elif [ $MPI_FLAVOUR == "OPENMPI" ]
334  then  then
335     echo "OPENMPI not implemented yet."     echo "OPENMPI not implemented yet."
336    
337    #=============== Intel MPI ===================================
338    elif [ $MPI_FLAVOR == "INTEL" ]
339    then
340       if [ -z $HOSTFILE ]
341       then
342          mpdboot -n $ESCRIPT_NUM_PROCS -r ssh -f $HOSTFILE
343          if [ $? -ne 0 ]
344          then
345             echo "mpdboot with host file $ESCRIPT_HOSTFILE for $ESCRIPT_NUM_PROCS nodes failed."
346             exit 1
347          else
348              if [ ! -z $ESCRIPT_VERBOSE ]; then echo "mpdboot was started with host file $ESCRIPT_HOSTFILE for $ESCRIPT_NUM_PROCS nodes."; fi
349          fi
350       fi
351       $CMD="mpiexec -n $ESCRIPT_NUM_PROCS -perhost $ESCRIPT_NUM_PROCS -envall -$EXEC_CMD"
352       if [ ! -z $ESCRIPT_VERBOSE ]; then echo "MPI command is $CMD."; fi
353       $CMD
354       if [ -z $HOSTFILE ]
355       then
356           mpdallexit
357           if [ ! -z $ESCRIPT_VERBOSE ]; then echo "mpdallexit executed."; fi
358       fi
359    #=============== SGI's MPIMPT ===================================
360  elif [ $MPI_FLAVOR == "MPT" ]  elif [ $MPI_FLAVOR == "MPT" ]
361  then  then
362     export MPI_NUM_MEMORY_REGIONS=0     export MPI_NUM_MEMORY_REGIONS=0
# Line 344  then Line 370  then
370     fi     fi
371     if [ ! -z $ESCRIPT_VERBOSE ]; then echo "MPI command is $CMD."; fi     if [ ! -z $ESCRIPT_VERBOSE ]; then echo "MPI command is $CMD."; fi
372     $CMD     $CMD
373    #=============== SGI's MPICH ===================================
374  elif [ $MPI_FLAVOR == "MPICH" ]  elif [ $MPI_FLAVOR == "MPICH" ]
375  then  then
376     echo "MPICH not implemented yet."     echo "MPICH not implemented yet."

Legend:
Removed from v.2354  
changed lines
  Added in v.2355

  ViewVC Help
Powered by ViewVC 1.1.26