File tree Expand file tree Collapse file tree 3 files changed +19
-6
lines changed
Expand file tree Collapse file tree 3 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ use verifier_common::transcript::Blake2sBufferingTranscript;
1414pub use prover_examples;
1515pub use setups;
1616
17+ #[ cfg( feature = "gpu_prover" ) ]
18+ pub use gpu_prover;
19+
1720mod constants;
1821mod proofs;
1922#[ cfg( feature = "verifier_binaries" ) ]
Original file line number Diff line number Diff line change @@ -96,13 +96,11 @@ pub const RECURSION_UNIFIED_TXT: &[u8] =
9696impl UnrolledProver {
9797 pub fn new (
9898 path_without_bin : & String ,
99- replay_worker_threads_count : usize ,
99+ prover_configuration : ExecutionProverConfiguration ,
100100 max_level : UnrolledProverLevel ,
101101 ) -> Self {
102+ let mut prover = ExecutionProver :: with_configuration ( prover_configuration) ;
102103 let mut level_data = BTreeMap :: new ( ) ;
103- let mut configuration = ExecutionProverConfiguration :: default ( ) ;
104- configuration. replay_worker_threads_count = replay_worker_threads_count;
105- let mut prover = ExecutionProver :: with_configuration ( configuration) ;
106104
107105 {
108106 let bin_path = format ! ( "{}.bin" , path_without_bin) ;
Original file line number Diff line number Diff line change @@ -70,7 +70,13 @@ mod tests {
7070 > ( & padded_binary_u32) ;
7171 serde_json:: to_writer_pretty ( File :: create ( "layouts.json" ) . unwrap ( ) , & compiled_layouts)
7272 . unwrap ( ) ;
73- let mut prover = ExecutionProver :: with_configuration ( Default :: default ( ) ) ;
73+ let configuration = ExecutionProverConfiguration {
74+ replay_worker_threads_count : 4 ,
75+ host_allocators_per_job_count : 64 ,
76+ host_allocators_per_device_count : 128 ,
77+ ..Default :: default ( )
78+ } ;
79+ let mut prover = ExecutionProver :: with_configuration ( configuration) ;
7480 prover. add_binary (
7581 0 ,
7682 ExecutionKind :: Unrolled ,
@@ -116,9 +122,15 @@ mod tests {
116122 . map ( |el| u32:: from_be_bytes ( * el) )
117123 . collect ( ) ;
118124 let app_path = "../riscv_transpiler/examples/zksync_os/app" ;
125+ let configuration = ExecutionProverConfiguration {
126+ replay_worker_threads_count : 4 ,
127+ host_allocators_per_job_count : 64 ,
128+ host_allocators_per_device_count : 128 ,
129+ ..Default :: default ( )
130+ } ;
119131 let prover = UnrolledProver :: new (
120132 & app_path. to_string ( ) ,
121- 8 ,
133+ configuration ,
122134 UnrolledProverLevel :: RecursionUnified ,
123135 ) ;
124136 let source = QuasiUARTSource :: new_with_reads ( witness) ;
You can’t perform that action at this time.
0 commit comments