Fix clang CI failure: replace broken two-block inline asm with intrin… #326
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Benchmark | |
| on: | |
| push: | |
| # thanks to https://izumisy.work/entry/2022/03/28/140644 | |
| jobs: | |
| ubuntu-2204: | |
| name: ubuntu-2204 | |
| runs-on: Ubuntu-latest | |
| container: | |
| image: ubuntu:22.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 |