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