@@ -23,9 +23,7 @@ use ff_ext::ExtensionField;
23
23
use generic_static:: StaticTypeMap ;
24
24
use goldilocks:: SmallField ;
25
25
use itertools:: { Itertools , enumerate, izip} ;
26
- use multilinear_extensions:: {
27
- mle:: IntoMLEs , util:: max_usable_threads, virtual_poly_v2:: ArcMultilinearExtension ,
28
- } ;
26
+ use multilinear_extensions:: { mle:: IntoMLEs , virtual_poly_v2:: ArcMultilinearExtension } ;
29
27
use rand:: thread_rng;
30
28
use std:: {
31
29
collections:: { HashMap , HashSet } ,
@@ -428,7 +426,6 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
428
426
challenge : Option < [ E ; 2 ] > ,
429
427
lkm : Option < LkMultiplicity > ,
430
428
) -> Result < ( ) , Vec < MockProverError < E > > > {
431
- let n_threads = max_usable_threads ( ) ;
432
429
let program = Program :: new (
433
430
CENO_PLATFORM . pc_base ( ) ,
434
431
CENO_PLATFORM . pc_base ( ) ,
@@ -476,12 +473,10 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
476
473
let ( left, right) = expr. unpack_sum ( ) . unwrap ( ) ;
477
474
let right = right. neg ( ) ;
478
475
479
- let left_evaluated =
480
- wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, & left, n_threads) ;
476
+ let left_evaluated = wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, & left) ;
481
477
let left_evaluated = left_evaluated. get_base_field_vec ( ) ;
482
478
483
- let right_evaluated =
484
- wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, & right, n_threads) ;
479
+ let right_evaluated = wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, & right) ;
485
480
let right_evaluated = right_evaluated. get_base_field_vec ( ) ;
486
481
487
482
// left_evaluated.len() ?= right_evaluated.len() due to padding instance
@@ -501,8 +496,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
501
496
}
502
497
} else {
503
498
// contains require_zero
504
- let expr_evaluated =
505
- wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr, n_threads) ;
499
+ let expr_evaluated = wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr) ;
506
500
let expr_evaluated = expr_evaluated. get_base_field_vec ( ) ;
507
501
508
502
for ( inst_id, element) in enumerate ( expr_evaluated) {
@@ -525,7 +519,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
525
519
. iter ( )
526
520
. zip_eq ( cb. cs . lk_expressions_namespace_map . iter ( ) )
527
521
{
528
- let expr_evaluated = wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr, n_threads ) ;
522
+ let expr_evaluated = wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr) ;
529
523
let expr_evaluated = expr_evaluated. get_ext_field_vec ( ) ;
530
524
531
525
// Check each lookup expr exists in t vec
@@ -556,7 +550,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
556
550
. map ( |expr| {
557
551
// TODO generalized to all inst_id
558
552
let inst_id = 0 ;
559
- wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr, n_threads )
553
+ wit_infer_by_expr ( & [ ] , wits_in, pi, & challenge, expr)
560
554
. get_base_field_vec ( ) [ inst_id]
561
555
. to_canonical_u64 ( )
562
556
} )
@@ -748,7 +742,6 @@ Hints:
748
742
witnesses : & ZKVMWitnesses < E > ,
749
743
pi : & PublicValues < u32 > ,
750
744
) {
751
- let n_threads = max_usable_threads ( ) ;
752
745
let instance = pi
753
746
. to_vec :: < E > ( )
754
747
. concat ( )
@@ -822,16 +815,10 @@ Hints:
822
815
. zip ( cs. lk_expressions_namespace_map . clone ( ) . into_iter ( ) )
823
816
. zip ( cs. lk_expressions_items_map . clone ( ) . into_iter ( ) )
824
817
{
825
- let lk_input = ( wit_infer_by_expr (
826
- & fixed,
827
- & witness,
828
- & pi_mles,
829
- & challenges,
830
- expr,
831
- n_threads,
832
- )
833
- . get_ext_field_vec ( ) ) [ ..num_rows]
834
- . to_vec ( ) ;
818
+ let lk_input =
819
+ ( wit_infer_by_expr ( & fixed, & witness, & pi_mles, & challenges, expr)
820
+ . get_ext_field_vec ( ) ) [ ..num_rows]
821
+ . to_vec ( ) ;
835
822
rom_inputs. entry ( rom_type) . or_default ( ) . push ( (
836
823
lk_input,
837
824
circuit_name. clone ( ) ,
@@ -851,24 +838,17 @@ Hints:
851
838
. iter ( )
852
839
. zip ( cs. lk_expressions_items_map . clone ( ) . into_iter ( ) )
853
840
{
854
- let lk_table = wit_infer_by_expr (
855
- & fixed,
856
- & witness,
857
- & pi_mles,
858
- & challenges,
859
- & expr. values ,
860
- n_threads,
861
- )
862
- . get_ext_field_vec ( )
863
- . to_vec ( ) ;
841
+ let lk_table =
842
+ wit_infer_by_expr ( & fixed, & witness, & pi_mles, & challenges, & expr. values )
843
+ . get_ext_field_vec ( )
844
+ . to_vec ( ) ;
864
845
865
846
let multiplicity = wit_infer_by_expr (
866
847
& fixed,
867
848
& witness,
868
849
& pi_mles,
869
850
& challenges,
870
851
& expr. multiplicity ,
871
- n_threads,
872
852
)
873
853
. get_base_field_vec ( )
874
854
. to_vec ( ) ;
@@ -988,16 +968,10 @@ Hints:
988
968
. zip_eq( cs. w_ram_types. iter( ) )
989
969
. filter( |( ( _, _) , ( ram_type, _) ) | * ram_type == $ram_type)
990
970
{
991
- let write_rlc_records = ( wit_infer_by_expr(
992
- fixed,
993
- witness,
994
- & pi_mles,
995
- & challenges,
996
- w_rlc_expr,
997
- n_threads,
998
- )
999
- . get_ext_field_vec( ) ) [ ..* num_rows]
1000
- . to_vec( ) ;
971
+ let write_rlc_records =
972
+ ( wit_infer_by_expr( fixed, witness, & pi_mles, & challenges, w_rlc_expr)
973
+ . get_ext_field_vec( ) ) [ ..* num_rows]
974
+ . to_vec( ) ;
1001
975
1002
976
if $ram_type == RAMType :: GlobalState {
1003
977
// w_exprs = [GlobalState, pc, timestamp]
@@ -1012,7 +986,6 @@ Hints:
1012
986
& pi_mles,
1013
987
& challenges,
1014
988
expr,
1015
- n_threads,
1016
989
) ;
1017
990
v. get_base_field_vec( ) [ ..* num_rows] . to_vec( )
1018
991
} )
@@ -1057,16 +1030,10 @@ Hints:
1057
1030
. zip_eq( cs. r_ram_types. iter( ) )
1058
1031
. filter( |( ( _, _) , ( ram_type, _) ) | * ram_type == $ram_type)
1059
1032
{
1060
- let read_records = wit_infer_by_expr(
1061
- fixed,
1062
- witness,
1063
- & pi_mles,
1064
- & challenges,
1065
- r_expr,
1066
- n_threads,
1067
- )
1068
- . get_ext_field_vec( ) [ ..* num_rows]
1069
- . to_vec( ) ;
1033
+ let read_records =
1034
+ wit_infer_by_expr( fixed, witness, & pi_mles, & challenges, r_expr)
1035
+ . get_ext_field_vec( ) [ ..* num_rows]
1036
+ . to_vec( ) ;
1070
1037
let mut records = vec![ ] ;
1071
1038
for ( row, record) in enumerate( read_records) {
1072
1039
// TODO: return error
0 commit comments