You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

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