From 0762a3f5bf8c3d07826c32fc4ce7f909bb1c8d12 Mon Sep 17 00:00:00 2001 From: StephenMal Date: Tue, 21 May 2024 22:12:59 -0400 Subject: [PATCH 1/2] Removed some flags that optimize with specific cpu --- .cargo/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index f430ed8f..dd4182ee 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ -[build] -rustflags = ["-C", "target-cpu=znver4", "-C", "link-arg=nostart-stop-gc"] +# [build] +# rustflags = ["-C", "target-cpu=znver4", "-C", "link-arg=nostart-stop-gc"] From 7fcb201b863dac4fe4e77b2049e3b9fbd8bf1259 Mon Sep 17 00:00:00 2001 From: StephenMal Date: Tue, 21 May 2024 22:14:05 -0400 Subject: [PATCH 2/2] fixed formatting --- coordinator/src/manyprover.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/coordinator/src/manyprover.rs b/coordinator/src/manyprover.rs index 0e24efc8..614ca05a 100644 --- a/coordinator/src/manyprover.rs +++ b/coordinator/src/manyprover.rs @@ -308,7 +308,10 @@ impl ManyProver { info!("Starting to prove block {}", block_num); let proof_start_instance = Instant::now(); let proof_start_stamp: DateTime = SystemTime::now().into(); - let benchmarked_proof = match prover_input.prove_and_benchmark(runtime.as_ref(), None, true).await { + let benchmarked_proof = match prover_input + .prove_and_benchmark(runtime.as_ref(), None, true) + .await + { Ok(benchmarked_proof) => benchmarked_proof, Err(err) => { error!("Failed to generate block {}'s proof: {}", block_num, err); @@ -765,7 +768,10 @@ impl ManyProver { let proof_start_instance = Instant::now(); // The stamp will signify the starting process of this proof. let proof_start_stamp: DateTime = SystemTime::now().into(); - let benchmarked_proof = match prover_input.prove_and_benchmark(self.runtime.as_ref(), prev, true).await { + let benchmarked_proof = match prover_input + .prove_and_benchmark(self.runtime.as_ref(), prev, true) + .await + { Ok(proof) => proof, Err(err) => { error!(