Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallelization of FHE operations in both FheBool and FheUint8 #38

Open
lovely-necromancer opened this issue Sep 6, 2024 · 1 comment

Comments

@lovely-necromancer
Copy link

lovely-necromancer commented Sep 6, 2024

Hey,
Thanks for the awesome project.
I've been playing with it lately and did some little implementations using the examples provided.

So, I have a line that looks like this using FheBool:

// Perform XOR operation on encrypted values
let enc_out: Vec<_> = enc_m0.iter().zip(enc_m1.iter()).map(|(a, b)| a ^ b).collect();

I want to make it parallel:

use rayon::prelude::*;

let enc_out: Vec<_> = enc_m0.par_iter().zip(enc_m1.par_iter()).map(|(a, b)| a ^ b).collect();

But I get errors like this:

thread '<unnamed>' panicked at src/bool/ni_mp_api.rs:169:60:
Parameters not set
thread '<unnamed>' panicked at src/bool/ni_mp_api.rs:169:60:
Parameters not set
thread '<unnamed>' panicked at src/bool/ni_mp_api.rs:169:60:
Parameters not set

can you help me what should I set? I've seen from your commits that did paralelization for key-aggregation that you set some stuff. but I didn't understand well.

Any help is appreciated 😃

@lovely-necromancer lovely-necromancer changed the title Parallelization of FHE operations in bith FheBool and FheUint8 Parallelization of FHE operations in both FheBool and FheUint8 Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant