Commit 0c5e9463 authored by Sébastien Gamblin's avatar Sébastien Gamblin
Browse files

Some calculation optimizations

parent 96e44f29
Loading
Loading
Loading
Loading
+3 −6
Changes for launch_xp.sh: 3 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -49,17 +49,14 @@ run_process_loop () {
    echo $filename

    # shellcheck disable=SC2086
    #if true; then
    if true; then
      /usr/bin/time -f "; %C; time; %es; memory; %MKB; cpu; %P;ch;${Cards_in_hand};end;${end}" -o "$filename"_time.txt \
        python3 hanabi_loop.py \
        -O -b "$begin" -e "$end" -step "$Nb_steps" -a "$agent" -ch "$Cards_in_hand" -xc "$Timeout" -lr 5 $Symbolic_flag -mc "$TimeoutMCPU" -pu "$TimeoutMCPU" $proba $Norm_flag \
          >"$filename".txt
          exit
    #  exit
    #  /usr/bin/time -f "; %C; time; %es; memory; %MKB; cpu; %P;ch;${Cards_in_hand};end;${end}" -o "$filename"_time.txt python3 hanabi_loop.py -O -b 8 -e 11 -step 2 -a 2 -ch 2 -xc 100 -lr 5 -s -mc 50 -pu 50 $proba  > filename.txt
          >"$filename".txt &
       ##REMOVE THE & HERE ^  TO RUN EVERYTHING SEQUENTIALLY (useful to reproduce the experiments on a standard desktop machine)
      begin="$end"
    #fi
    fi

  done
}