/[escript]/trunk/run-escript.in
ViewVC logotype

Diff of /trunk/run-escript.in

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

revision 5266 by caltinay, Mon Nov 17 06:45:01 2014 UTC revision 5404 by caltinay, Thu Dec 18 00:10:22 2014 UTC
# Line 294  else Line 294  else
294              sort -u "${ESCRIPT_HOSTFILE}" > $HOSTFILE              sort -u "${ESCRIPT_HOSTFILE}" > $HOSTFILE
295              HOSTLIST=$(awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' "$HOSTFILE")              HOSTLIST=$(awk 'BEGIN{S=""}{if (S == "") { S = $0 } else {S = S "," $0}}END{print S}' "$HOSTFILE")
296    
297              NUM_HOSTS=$(wc -l "$HOSTFILE")              NUM_HOSTS=$(cat "$HOSTFILE" | wc -l)
298              if [ ! -z $ESCRIPT_NUM_NODES ]              if [ ! -z $ESCRIPT_NUM_NODES ]
299              then              then
300                  if [ $NUM_HOSTS -ne $ESCRIPT_NUM_NODES ]                  if [ $NUM_HOSTS -ne $ESCRIPT_NUM_NODES ]
# Line 353  then            #This could happen if th Line 353  then            #This could happen if th
353      die "Expression of total number of processors = $ESCRIPT_NUM_NODES * $ESCRIPT_NUM_PROCS is not numerical!"      die "Expression of total number of processors = $ESCRIPT_NUM_NODES * $ESCRIPT_NUM_PROCS is not numerical!"
354  fi  fi
355    
356  # set up thread binding if unset  # set up thread binding if unset -- disabled by default because it interfers
357  if [ "$OMP_PROC_BIND" = "" ]; then  # with MPI binding
358      #Force OpenMP binding for Intel (and GCC, though GCC is on by default)  #if [ "$OMP_PROC_BIND" = "" ]; then
359      export OMP_PROC_BIND=true  #    #Force OpenMP binding for Intel (and GCC, though GCC is on by default)
360  fi  #    export OMP_PROC_BIND=true
361  if [ "$KMP_AFFINITY" = "" ]; then  #fi
362      #Set the style of binding (overrides OMP_PROC_BIND in many cases)  #if [ "$KMP_AFFINITY" = "" ]; then
363      export KMP_AFFINITY=verbose,compact  #    #Set the style of binding (overrides OMP_PROC_BIND in many cases)
364  fi  #    export KMP_AFFINITY=verbose,compact
365    #fi
366    
367  #  #
368  # Test to ensure people aren't trying to combine interactive and multi-process  # Test to ensure people aren't trying to combine interactive and multi-process

Legend:
Removed from v.5266  
changed lines
  Added in v.5404

  ViewVC Help
Powered by ViewVC 1.1.26