@@ -8,6 +8,7 @@ use benchmark::utilities::{
8
8
OperatorType ,
9
9
} ;
10
10
use criterion:: { black_box, Criterion , Throughput } ;
11
+ use itertools:: Itertools ;
11
12
use rayon:: prelude:: * ;
12
13
use serde:: Serialize ;
13
14
use std:: env;
@@ -325,6 +326,7 @@ mod cuda {
325
326
CudaLocalKeys , OperatorType ,
326
327
} ;
327
328
use criterion:: { black_box, Criterion , Throughput } ;
329
+ use itertools:: Itertools ;
328
330
use rayon:: prelude:: * ;
329
331
use serde:: Serialize ;
330
332
use tfhe:: core_crypto:: gpu:: glwe_ciphertext_list:: CudaGlweCiphertextList ;
@@ -750,8 +752,12 @@ mod cuda {
750
752
pub fn cuda_multi_bit_ks_group ( ) {
751
753
let mut criterion: Criterion < _ > =
752
754
( Criterion :: default ( ) . sample_size ( 2000 ) ) . configure_from_args ( ) ;
753
- cuda_keyswitch ( & mut criterion, & multi_bit_benchmark_parameters ( ) ) ;
754
- cuda_packing_keyswitch ( & mut criterion, & multi_bit_benchmark_parameters ( ) ) ;
755
+ let multi_bit_parameters = multi_bit_benchmark_parameters ( )
756
+ . into_iter ( )
757
+ . map ( |( string, params, _) | ( string, params) )
758
+ . collect_vec ( ) ;
759
+ cuda_keyswitch ( & mut criterion, & multi_bit_parameters) ;
760
+ cuda_packing_keyswitch ( & mut criterion, & multi_bit_parameters) ;
755
761
}
756
762
}
757
763
@@ -769,11 +775,16 @@ pub fn ks_group() {
769
775
}
770
776
771
777
pub fn multi_bit_ks_group ( ) {
778
+ let multi_bit_parameters = multi_bit_benchmark_parameters ( )
779
+ . into_iter ( )
780
+ . map ( |( string, params, _) | ( string, params) )
781
+ . collect_vec ( ) ;
782
+
772
783
let mut criterion: Criterion < _ > = ( Criterion :: default ( )
773
784
. sample_size ( 15 )
774
785
. measurement_time ( std:: time:: Duration :: from_secs ( 60 ) ) )
775
786
. configure_from_args ( ) ;
776
- keyswitch ( & mut criterion, & multi_bit_benchmark_parameters ( ) ) ;
787
+ keyswitch ( & mut criterion, & multi_bit_parameters ) ;
777
788
}
778
789
779
790
pub fn packing_ks_group ( ) {
0 commit comments