Commits

Shlomi Fish committed d5a5ff0

Added the -s flag to time-threads-num.bash.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@1946 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

Comments (0)

Files changed (1)

fc-solve/source/scripts/time-threads-num.bash

 #!/bin/bash
 
+RUN_SERIAL=false
+
 PARAM1="$1"
 shift
+
+if test "$PARAM1" = "-s" ; then
+    RUN_SERIAL=true
+    PARAM1="$1"
+    shift
+fi
+
 PARAM2="$1"
 shift
 
 fi
 
 export FREECELL_SOLVER_PRESETRC="$(ls $(pwd)/"$p_dir"/presetrc)"
+
+if $RUN_SERIAL ; then
+    ./freecell-solver-range-parallel-solve 1 32000 500 -l gi > dump
+fi
+
 for NUM in $(seq "$MIN" "$MAX") ; do
     echo "Testing $NUM"
     ./freecell-solver-multi-thread-solve 1 32000 500 \