-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf80d16
commit 4fb591e
Showing
10 changed files
with
92 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM ubuntu:24.04 | ||
|
||
LABEL maintainer="nindanaoto(Kotaro MATSUOKA) <[email protected]>" | ||
|
||
# install build dependencies | ||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get upgrade -y | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential g++ libomp-dev cmake git ninja-build libfftw3-dev wget curl | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
RUN wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && echo "deb https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y intel-oneapi-mkl-devel && rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
docker build -t tfhepp -f Dockerfile-ubuntu2404 . | ||
docker run -v $PWD:/TFHEpp tfhepp bash -c "cd /TFHEpp && bash ./fft-bench.bash" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/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 | ||
|
||
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 | ||
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 |
This file contains 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
Submodule concrete-fft
updated
5 files
+3 −2 | CMakeLists.txt | |
+1 −1 | Cargo.toml | |
+20 −18 | README.md | |
+14 −3 | cpp/fft_processor_concrete.hpp | |
+6 −6 | src/lib.rs |
Submodule concrete-ntt
added at
99b53e
This file contains 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
This file contains 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
This file contains 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