@@ -23,9 +23,7 @@ use ff_ext::ExtensionField;
2323use generic_static:: StaticTypeMap ;
2424use goldilocks:: SmallField ;
2525use 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 } ;
2927use rand:: thread_rng;
3028use std:: {
3129 collections:: { HashMap , HashSet } ,
@@ -428,7 +426,6 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
428426 challenge : Option < [ E ; 2 ] > ,
429427 lkm : Option < LkMultiplicity > ,
430428 ) -> Result < ( ) , Vec < MockProverError < E > > > {
431- let n_threads = max_usable_threads ( ) ;
432429 let program = Program :: new (
433430 CENO_PLATFORM . pc_base ( ) ,
434431 CENO_PLATFORM . pc_base ( ) ,
@@ -476,12 +473,10 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
476473 let ( left, right) = expr. unpack_sum ( ) . unwrap ( ) ;
477474 let right = right. neg ( ) ;
478475
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) ;
481477 let left_evaluated = left_evaluated. get_base_field_vec ( ) ;
482478
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) ;
485480 let right_evaluated = right_evaluated. get_base_field_vec ( ) ;
486481
487482 // left_evaluated.len() ?= right_evaluated.len() due to padding instance
@@ -501,8 +496,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
501496 }
502497 } else {
503498 // 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) ;
506500 let expr_evaluated = expr_evaluated. get_base_field_vec ( ) ;
507501
508502 for ( inst_id, element) in enumerate ( expr_evaluated) {
@@ -525,7 +519,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
525519 . iter ( )
526520 . zip_eq ( cb. cs . lk_expressions_namespace_map . iter ( ) )
527521 {
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) ;
529523 let expr_evaluated = expr_evaluated. get_ext_field_vec ( ) ;
530524
531525 // Check each lookup expr exists in t vec
@@ -556,7 +550,7 @@ impl<'a, E: ExtensionField + Hash> MockProver<E> {
556550 . map ( |expr| {
557551 // TODO generalized to all inst_id
558552 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)
560554 . get_base_field_vec ( ) [ inst_id]
561555 . to_canonical_u64 ( )
562556 } )
@@ -748,7 +742,6 @@ Hints:
748742 witnesses : & ZKVMWitnesses < E > ,
749743 pi : & PublicValues < u32 > ,
750744 ) {
751- let n_threads = max_usable_threads ( ) ;
752745 let instance = pi
753746 . to_vec :: < E > ( )
754747 . concat ( )
@@ -822,16 +815,10 @@ Hints:
822815 . zip ( cs. lk_expressions_namespace_map . clone ( ) . into_iter ( ) )
823816 . zip ( cs. lk_expressions_items_map . clone ( ) . into_iter ( ) )
824817 {
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 ( ) ;
835822 rom_inputs. entry ( rom_type) . or_default ( ) . push ( (
836823 lk_input,
837824 circuit_name. clone ( ) ,
@@ -851,24 +838,17 @@ Hints:
851838 . iter ( )
852839 . zip ( cs. lk_expressions_items_map . clone ( ) . into_iter ( ) )
853840 {
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 ( ) ;
864845
865846 let multiplicity = wit_infer_by_expr (
866847 & fixed,
867848 & witness,
868849 & pi_mles,
869850 & challenges,
870851 & expr. multiplicity ,
871- n_threads,
872852 )
873853 . get_base_field_vec ( )
874854 . to_vec ( ) ;
@@ -988,16 +968,10 @@ Hints:
988968 . zip_eq( cs. w_ram_types. iter( ) )
989969 . filter( |( ( _, _) , ( ram_type, _) ) | * ram_type == $ram_type)
990970 {
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( ) ;
1001975
1002976 if $ram_type == RAMType :: GlobalState {
1003977 // w_exprs = [GlobalState, pc, timestamp]
@@ -1012,7 +986,6 @@ Hints:
1012986 & pi_mles,
1013987 & challenges,
1014988 expr,
1015- n_threads,
1016989 ) ;
1017990 v. get_base_field_vec( ) [ ..* num_rows] . to_vec( )
1018991 } )
@@ -1057,16 +1030,10 @@ Hints:
10571030 . zip_eq( cs. r_ram_types. iter( ) )
10581031 . filter( |( ( _, _) , ( ram_type, _) ) | * ram_type == $ram_type)
10591032 {
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( ) ;
10701037 let mut records = vec![ ] ;
10711038 for ( row, record) in enumerate( read_records) {
10721039 // TODO: return error
0 commit comments