Compare commits

...

1 Commits

Author SHA1 Message Date
Agnes Leroy
b29726dde4 Filter params 2025-04-04 14:41:15 +02:00
2 changed files with 18 additions and 0 deletions

View File

@@ -647,6 +647,9 @@ mod cuda {
println!("[WARNING] polynomial size is too large for parameters set '{}' (max: {}, got: {})", name, GPU_MAX_SUPPORTED_POLYNOMIAL_SIZE, params.polynomial_size.unwrap().0);
continue;
}
if params.message_modulus.unwrap().ilog2() != params.carry_modulus.unwrap().ilog2() {
continue;
}
// Create the LweSecretKey
let input_lwe_secret_key = allocate_and_generate_new_binary_lwe_secret_key(
@@ -956,6 +959,12 @@ mod cuda {
println!("[WARNING] polynomial size is too large for parameters set '{}' (max: {}, got: {})", name, GPU_MAX_SUPPORTED_POLYNOMIAL_SIZE, params.polynomial_size.unwrap().0);
continue;
}
if params.message_modulus.unwrap().ilog2() != params.carry_modulus.unwrap().ilog2() {
continue;
}
if grouping_factor.0 != 4 {
continue;
}
// Create the LweSecretKey
let input_lwe_secret_key = allocate_and_generate_new_binary_lwe_secret_key(

View File

@@ -1109,6 +1109,9 @@ mod cuda {
println!("[WARNING] polynomial size is too large for parameters set '{}' (max: {}, got: {})", name, GPU_MAX_SUPPORTED_POLYNOMIAL_SIZE, params.polynomial_size.unwrap().0);
continue;
}
if params.message_modulus.unwrap().ilog2() != params.carry_modulus.unwrap().ilog2() {
continue;
}
// Create the LweSecretKey
let input_lwe_secret_key = allocate_and_generate_new_binary_lwe_secret_key(
@@ -1368,6 +1371,12 @@ mod cuda {
println!("[WARNING] polynomial size is too large for parameters set '{}' (max: {}, got: {})", name, GPU_MAX_SUPPORTED_POLYNOMIAL_SIZE, params.polynomial_size.unwrap().0);
continue;
}
if params.message_modulus.unwrap().ilog2() != params.carry_modulus.unwrap().ilog2() {
continue;
}
if grouping_factor.0 != 4 {
continue;
}
// Create the LweSecretKey
let input_lwe_secret_key = allocate_and_generate_new_binary_lwe_secret_key(