-
Notifications
You must be signed in to change notification settings - Fork 23
/
Dockerfile
21 lines (16 loc) · 912 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:22.04
LABEL maintainer="naoki9911(Naoki MATSUMOTO) <[email protected]>"
# install build dependencies
RUN apt-get update && apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential g++ libomp-dev cmake git libgoogle-perftools-dev
# build TFHE
RUN git clone --recursive --depth 1 https://github.com/tfhe/tfhe.git && mkdir tfhe/build
WORKDIR /tfhe/build
RUN 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)
# build TFHEpp
COPY . /TFHEpp
RUN mkdir /TFHEpp/build
WORKDIR /TFHEpp/build
RUN cmake .. -DENABLE_TEST=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_BUILD_TYPE=Release && make -j$(nproc)
# To run benchmark test
#$ echo "TFHEpp" && /TFHEpp/build/test/nand && echo "original TFHE" && /tfhe/build/test/test-gate-bootstrapping-spqlios-fma