Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cliff0412 committed Apr 16, 2024
1 parent c6f2d13 commit b507df8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion plonky2/src/fri/oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,8 @@ impl<F: RichField + Extendable<D>, C: GenericConfig<D, F = F>, const D: usize>
// let num_gpus: usize = 1;
#[cfg(all(feature = "cuda", feature = "batch"))]
println!("get num of gpus: {:?}", num_gpus);
let _total_num_of_fft = polynomials.len();
#[cfg(all(feature = "cuda", feature = "batch"))]
let total_num_of_fft = polynomials.len();
// println!("total_num_of_fft: {:?}", total_num_of_fft);
#[cfg(all(feature = "cuda", feature = "batch"))]
let per_device_batch = total_num_of_fft.div_ceil(num_gpus);
Expand Down
2 changes: 0 additions & 2 deletions plonky2/src/util/timing.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use log::Level;
#[cfg(feature = "timing")]
use web_time::{Duration, Instant};
#[cfg(not(feature = "timing"))]
use log::log;

/// The hierarchy of scopes, and the time consumed by each one. Useful for profiling.
#[cfg(feature = "timing")]
Expand Down

0 comments on commit b507df8

Please sign in to comment.