-
Notifications
You must be signed in to change notification settings - Fork 20
39 lines (37 loc) · 1.14 KB
/
benchmark.yml
File metadata and controls
39 lines (37 loc) · 1.14 KB
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
name: Benchmark
on:
push:
# thanks to https://izumisy.work/entry/2022/03/28/140644
jobs:
ubuntu-2404:
name: ubuntu-2404
runs-on: Ubuntu-latest
container:
image: ubuntu:24.04
steps:
- name: Install libraries
run: |
apt-get update
apt-get upgrade -y
apt-get install -y git build-essential g++ libomp-dev cmake git ninja-build
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: build TFHEpp
run: |
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON
cd build
ninja
- name: build original TFHE
run: |
git clone --recursive --depth 1 https://github.com/tfhe/tfhe.git
mkdir tfhe/build
cd tfhe/build
cmake ../src -DENABLE_TESTS=on -DENABLE_NAYUKI_PORTABLE=off -DENABLE_NAYUKI_AVX=off -DENABLE_SPQLIOS_AVX=off -DENABLE_SPQLIOS_FMA=on -DCMAKE_BUILD_TYPE=optim
make -j$(nproc)
- name: benchmark
run: |
test/show_info.sh
echo "TFHEpp" && build/test/nand
echo "original TFHE" && tfhe/build/test/test-gate-bootstrapping-spqlios-fma