File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ serde = { version = "1.0", optional = true }
4545defmac = " 0.2"
4646quickcheck = { version = " 0.7.2" , default-features = false }
4747rawpointer = " 0.1"
48- num_cpus = " 1.2"
4948
5049[features ]
5150# Enable blas usage
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ extern crate itertools;
99use ndarray:: prelude:: * ;
1010use ndarray:: parallel:: prelude:: * ;
1111
12- extern crate num_cpus;
1312extern crate test;
1413use test:: Bencher ;
1514
@@ -21,9 +20,10 @@ const ADDN: usize = 512;
2120use std:: cmp:: max;
2221
2322fn set_threads ( ) {
24- let n = max ( 1 , num_cpus:: get ( ) / 2 ) ;
25- //println!("Using {} threads", n);
26- let _ = rayon:: ThreadPoolBuilder :: new ( ) . num_threads ( n) . build_global ( ) ;
23+ // Consider setting a fixed number of threads here, for example to avoid
24+ // oversubscribing on hyperthreaded cores.
25+ // let n = 4;
26+ // let _ = rayon::ThreadPoolBuilder::new().num_threads(n).build_global();
2727}
2828
2929#[ bench]
You can’t perform that action at this time.
0 commit comments