• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/bash
2ORIG_DIR=$1
3SMOOTH_DIR=${ORIG_DIR}_smooth
4mkdir ${SMOOTH_DIR}
5
6AXPY_FILE=`find ${ORIG_DIR} -name "*.dat" | grep axpy`
7for FILE in ${AXPY_FILE}
8do
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
14done
15
16
17MATRIX_VECTOR_FILE=`find ${ORIG_DIR} -name "*.dat" | grep matrix_vector`
18for FILE in ${MATRIX_VECTOR_FILE}
19do
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
25done
26
27MATRIX_MATRIX_FILE=`find ${ORIG_DIR} -name "*.dat" | grep matrix_matrix`
28for FILE in ${MATRIX_MATRIX_FILE}
29do
30    echo $FILE
31    BASE=${FILE##*/}
32    ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
33done
34
35AAT_FILE=`find ${ORIG_DIR} -name "*.dat" | grep _aat`
36for FILE in ${AAT_FILE}
37do
38    echo $FILE
39    BASE=${FILE##*/}
40    ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
41done
42
43
44ATA_FILE=`find ${ORIG_DIR} -name "*.dat" | grep _ata`
45for FILE in ${ATA_FILE}
46do
47    echo $FILE
48    BASE=${FILE##*/}
49    ./smooth ${ORIG_DIR}/${BASE} 4 ${SMOOTH_DIR}/${BASE}
50done
51
52### no smoothing for tinyvector and matrices libs
53
54TINY_BLITZ_FILE=`find ${ORIG_DIR} -name "*.dat" | grep tiny_blitz`
55for FILE in ${TINY_BLITZ_FILE}
56do
57    echo $FILE
58    BASE=${FILE##*/}
59    cp ${ORIG_DIR}/${BASE} ${SMOOTH_DIR}/${BASE}
60done
61
62TVMET_FILE=`find ${ORIG_DIR} -name "*.dat" | grep tvmet`
63for FILE in ${TVMET_FILE}
64do
65    echo $FILE
66    BASE=${FILE##*/}
67    cp ${ORIG_DIR}/${BASE} ${SMOOTH_DIR}/${BASE}
68done
69