hayati ayguen | bc8d4a8 | 2019-12-25 01:27:33 +0100 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | FFTW=ON |
| 4 | if [ ! -z "$1" ]; then |
| 5 | FFTW="$1" |
| 6 | fi |
| 7 | |
| 8 | if [ ! -d build ]; then |
| 9 | mkdir build |
| 10 | cd build |
| 11 | else |
| 12 | cd build |
| 13 | make clean |
| 14 | rm *.csv *.txt *.png |
| 15 | fi |
| 16 | |
| 17 | |
| 18 | make clean |
| 19 | cmake ../ -DUSE_FFTW=${FFTW} -DUSE_SIMD=OFF |
| 20 | make |
| 21 | echo -e "\n\nrunning 2nd pass without simd (==scalar) .." |
| 22 | time ctest -V |
| 23 | |
| 24 | make clean |
| 25 | cmake ../ -DUSE_FFTW=${FFTW} -DUSE_SIMD=ON |
| 26 | make |
| 27 | echo -e "\n\nrunning 1st pass with simd .." |
| 28 | time ctest -V |
| 29 | |
| 30 | |
| 31 | echo "$@" >infos.txt |
| 32 | |
| 33 | echo "" >>infos.txt |
| 34 | echo "gcc --version:" >>infos.txt |
| 35 | gcc --version &>>infos.txt |
| 36 | |
| 37 | echo "" >>infos.txt |
| 38 | echo "lscpu:" >>infos.txt |
| 39 | lscpu >>infos.txt |
| 40 | |
| 41 | echo "" >>infos.txt |
| 42 | echo "lsb_release -a" >>infos.txt |
| 43 | lsb_release -a &>>infos.txt |
| 44 | |
| 45 | echo "" >>infos.txt |
| 46 | echo "cat /etc/*-release" >>infos.txt |
| 47 | cat /etc/*-release &>>infos.txt |
| 48 | |
| 49 | |
| 50 | echo "" >>infos.txt |
| 51 | echo "cat /proc/cpuinfo:" >>infos.txt |
| 52 | cat /proc/cpuinfo >>infos.txt |
| 53 | |
| 54 | |
| 55 | tar zcvf ../pffft_bench_${HOSTNAME}.tar.gz *.csv *.txt *.png |
| 56 | echo "all benchmark results in pffft_bench_${HOSTNAME}.tar.gz" |