-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathfft-bench.bash
51 lines (45 loc) · 1.34 KB
/
fft-bench.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# This script is used to benchmark the FFT performance of TFHEpp
echo "Benchmarking HomNAND using different FFTs" | tee /tmp/log.txt
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON
cd /tmp/build
ninja
echo "Benchmarking SPQLIOS" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON -DUSE_AVX512=ON
cd /tmp/build
ninja
echo "Benchmarking SPQLIOS AVX512" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cd /TFHEpp
rm -rf /tmp/build
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON -DUSE_CONCRETE_FFT=ON
cd /tmp/build
ninja
ninja
echo "Benchmarking concrete-fft" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cd /TFHEpp
rm -rf /tmp/build
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON -DUSE_CONCRETE_FFT=ON -DUSE_AVX512=ON
cd /tmp/build
ninja
ninja
echo "Benchmarking concrete-fft AVX512" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cd /TFHEpp
rm -rf /tmp/build
source /opt/intel/oneapi/setvars.sh
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON -DUSE_MKL=ON
cd /tmp/build
ninja
echo "Benchmarking MKL" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cd /TFHEpp
rm -rf /tmp/build
cmake . -G Ninja -B /tmp/build -DENABLE_TEST=ON -DUSE_FFTW3=ON
cd /tmp/build
ninja
echo "Benchmarking FFTW3" | tee -a /tmp/log.txt
./test/nand | tee -a /tmp/log.txt
cat /tmp/log.txt