Skip to content

Commit

Permalink
Merge pull request #45 from BCWResearch/working
Browse files Browse the repository at this point in the history
Format + comment out cpu-specific flags
  • Loading branch information
Stephen-BCW authored May 22, 2024
2 parents 51ba854 + 7fcb201 commit 8ed4ae8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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"]
10 changes: 8 additions & 2 deletions coordinator/src/manyprover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,10 @@ impl ManyProver {
info!("Starting to prove block {}", block_num);
let proof_start_instance = Instant::now();
let proof_start_stamp: DateTime<Utc> = 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);
Expand Down Expand Up @@ -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<Utc> = 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!(
Expand Down

0 comments on commit 8ed4ae8

Please sign in to comment.