Home | History | Annotate | Download | only in data
      1 #! /bin/bash
      2 ORIG_DIR=$1
      3 SMOOTH_DIR=${ORIG_DIR}_smooth
      4 mkdir ${SMOOTH_DIR}
      5 
      6 AXPY_FILE=`find ${ORIG_DIR} -name "*.dat" | grep axpy`
      7 for FILE in ${AXPY_FILE}
      8 do
      9     echo $FILE
     10     BASE=${FILE##*/}
     11     ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}_tmp
     12     ./regularize ${SMOOTH_DIR}/${BASE}_tmp 2500 15000 ${SMOOTH_DIR}/${BASE}
     13     rm -f  ${SMOOTH_DIR}/${BASE}_tmp
     14 done
     15 
     16 
     17 MATRIX_VECTOR_FILE=`find ${ORIG_DIR} -name "*.dat" | grep matrix_vector`
     18 for FILE in ${MATRIX_VECTOR_FILE}
     19 do
     20     echo $FILE
     21     BASE=${FILE##*/}
     22     ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}_tmp
     23     ./regularize ${SMOOTH_DIR}/${BASE}_tmp 50 180 ${SMOOTH_DIR}/${BASE}
     24     rm -f  ${SMOOTH_DIR}/${BASE}_tmp
     25 done
     26 
     27 MATRIX_MATRIX_FILE=`find ${ORIG_DIR} -name "*.dat" | grep matrix_matrix`
     28 for FILE in ${MATRIX_MATRIX_FILE}
     29 do
     30     echo $FILE
     31     BASE=${FILE##*/}
     32     ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
     33 done
     34 
     35 AAT_FILE=`find ${ORIG_DIR} -name "*.dat" | grep _aat`
     36 for FILE in ${AAT_FILE}
     37 do
     38     echo $FILE
     39     BASE=${FILE##*/}
     40     ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
     41 done
     42 
     43 
     44 ATA_FILE=`find ${ORIG_DIR} -name "*.dat" | grep _ata`
     45 for FILE in ${ATA_FILE}
     46 do
     47     echo $FILE
     48     BASE=${FILE##*/}
     49     ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
     50 done
     51 
     52 ### no smoothing for tinyvector and matrices libs
     53 
     54 TINY_BLITZ_FILE=`find ${ORIG_DIR} -name "*.dat" | grep tiny_blitz`
     55 for FILE in ${TINY_BLITZ_FILE}
     56 do
     57     echo $FILE
     58     BASE=${FILE##*/}
     59     cp ${ORIG_DIR}/${BASE} ${SMOOTH_DIR}/${BASE}
     60 done
     61 
     62 TVMET_FILE=`find ${ORIG_DIR} -name "*.dat" | grep tvmet`
     63 for FILE in ${TVMET_FILE}
     64 do
     65     echo $FILE
     66     BASE=${FILE##*/}
     67     cp ${ORIG_DIR}/${BASE} ${SMOOTH_DIR}/${BASE}
     68 done
     69