Browse Source

Add files via upload

Mike Mikailov 5 years ago
parent
commit
6720e84621
1 changed files with 23 additions and 0 deletions
  1. 23 0
      wall_clock_time_stats_pred.sh

+ 23 - 0
wall_clock_time_stats_pred.sh

@@ -0,0 +1,23 @@
+# DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process/wnorm_448_400_7689398
+# SUBDIRS=`ls -1 $DIR`
+
+DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_False/testing_wnorm_448_400_7694088
+
+PREFIX=test
+SUBDIRS=`ls -1 $DIR | grep $PREFIX`
+
+STAT_FILE=timing_pred.txt
+rm -f $STAT_FILE
+
+for SD in $SUBDIRS
+do
+  echo "Processing $SD subdirectory..."
+  echo $SD
+  
+  PREFIX1=$SD
+  find "$DIR"/"$SD"/sysout -name "$PREFIX1"* | xargs grep "seconds" >> $STAT_FILE
+done
+
+sort -k2 -n $STAT_FILE > "$STAT_FILE"_sorted.txt 
+
+awk '{ print $2 }' "$STAT_FILE"_sorted.txt > "$STAT_FILE"_sorted_2ndc.txt