From 74564eefd603f4dc517dea2769eccc90ad4216f3 Mon Sep 17 00:00:00 2001 From: nindanaoto Date: Wed, 20 Mar 2024 06:25:15 +0000 Subject: [PATCH] parallelize bootsSym by OpenMP --- include/tlwe.hpp | 2 ++ thirdparties/cereal | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/tlwe.hpp b/include/tlwe.hpp index ce858a8..ddd12af 100644 --- a/include/tlwe.hpp +++ b/include/tlwe.hpp @@ -103,6 +103,7 @@ std::vector> bootsSymEncrypt(const std::vector &p, const Key

&key) { vector> c(p.size()); + #pragma omp parallel for for (int i = 0; i < p.size(); i++) c[i] = tlweSymEncrypt

(p[i] ? P::μ : -P::μ, key); return c; @@ -120,6 +121,7 @@ std::vector bootsSymDecrypt(const std::vector> &c, const Key

&key) { vector p(c.size()); + #pragma omp parallel for for (int i = 0; i < c.size(); i++) p[i] = tlweSymDecrypt

(c[i], key); return p; } diff --git a/thirdparties/cereal b/thirdparties/cereal index d1fcec8..ddd4672 160000 --- a/thirdparties/cereal +++ b/thirdparties/cereal @@ -1 +1 @@ -Subproject commit d1fcec807b372f04e4c1041b3058e11c12853e6e +Subproject commit ddd467244713ea4fe63733628992efcdd6a9187d