halo2curves_axiom/
multicore.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use maybe_rayon::{
    iter::{IntoParallelIterator, IntoParallelRefMutIterator, ParallelIterator},
    join, scope, Scope,
};

#[cfg(feature = "multicore")]
pub use maybe_rayon::{
    current_num_threads,
    iter::{IndexedParallelIterator, IntoParallelRefIterator},
    slice::ParallelSliceMut,
};

#[cfg(not(feature = "multicore"))]
pub fn current_num_threads() -> usize {
    1
}