Skip to content

Commit

Permalink
chore(bench): skip tuniform parameters for pbs with ntt
Browse files Browse the repository at this point in the history
  • Loading branch information
soonum committed Oct 29, 2024
1 parent df9fd6c commit 4ce8b5e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tfhe/benches/core_crypto/pbs_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,21 @@ fn mem_optimized_pbs_ntt(c: &mut Criterion) {
tfhe::core_crypto::prelude::CiphertextModulus::new((1 << 64) - (1 << 32) + 1);

for (name, params) in throughput_benchmark_parameters_64bits().iter_mut() {
if let (Some(lwe_noise), Some(glwe_noise)) = (
params.lwe_noise_distribution,
params.glwe_noise_distribution,
) {
match (lwe_noise, glwe_noise) {
(DynamicDistribution::Gaussian(_), DynamicDistribution::Gaussian(_)) => (),
_ => {
println!(
"Skip {name} parameters set: custom modulus generation is not supported"
);
continue;
}
}
};

let name = format!("{name}_PLACEHOLDER_NTT");

params.ciphertext_modulus = Some(custom_ciphertext_modulus);
Expand Down

0 comments on commit 4ce8b5e

Please sign in to comment.