mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Do not use rayon for a single thread (bis).
This commit is contained in:
@ -251,7 +251,7 @@ impl Map2 for MatMul {
|
||||
let dst_p = &mut dst[step * c_skip..];
|
||||
let num_threads = crate::utils::get_num_threads();
|
||||
let parallelism = if num_threads > 1 {
|
||||
Parallelism::Rayon(crate::utils::get_num_threads())
|
||||
Parallelism::Rayon(num_threads)
|
||||
} else {
|
||||
Parallelism::None
|
||||
};
|
||||
|
Reference in New Issue
Block a user