diff --git a/tfhe/benches/core_crypto/ks_bench.rs b/tfhe/benches/core_crypto/ks_bench.rs index 5aec955a4c..1841d7ecac 100644 --- a/tfhe/benches/core_crypto/ks_bench.rs +++ b/tfhe/benches/core_crypto/ks_bench.rs @@ -7,6 +7,11 @@ use serde::Serialize; use tfhe::boolean::prelude::*; use tfhe::core_crypto::prelude::*; use tfhe::keycache::NamedParam; +use tfhe::shortint::parameters::{ + COMP_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, + PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64, PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64, + PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64, +}; #[cfg(feature = "gpu")] use tfhe::shortint::parameters::{ PARAM_GPU_MULTI_BIT_GROUP_3_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64, @@ -14,10 +19,6 @@ use tfhe::shortint::parameters::{ PARAM_GPU_MULTI_BIT_GROUP_3_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, PARAM_GPU_MULTI_BIT_GROUP_3_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64, }; -use tfhe::shortint::parameters::{ - PARAM_MESSAGE_1_CARRY_1_KS_PBS_GAUSSIAN_2M64, PARAM_MESSAGE_2_CARRY_2_KS_PBS_GAUSSIAN_2M64, - PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, PARAM_MESSAGE_3_CARRY_3_KS_PBS_GAUSSIAN_2M64, -}; #[cfg(not(feature = "gpu"))] use tfhe::shortint::parameters::{ PARAM_MESSAGE_4_CARRY_4_KS_PBS_GAUSSIAN_2M64, @@ -523,9 +524,6 @@ mod cuda { #[cfg(feature = "gpu")] use cuda::cuda_keyswitch_group; -use tfhe::shortint::parameters::{ - COMP_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M64, -}; pub fn keyswitch_group() { let mut criterion: Criterion<_> = (Criterion::default()