mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-23 07:58:19 +08:00
Fix Wshorten-64-to-32 warning in gemm parallelizer
This commit is contained in:
parent
b33dbb5765
commit
32165c6f0c
@ -178,7 +178,7 @@ EIGEN_STRONG_INLINE void parallelize_gemm(const Functor& func, Index rows, Index
|
||||
pb_max_threads = std::max<Index>(1, std::min<Index>(pb_max_threads, static_cast<Index>( work / kMinTaskSize ) ));
|
||||
|
||||
// compute the number of threads we are going to use
|
||||
int threads = std::min<int>(nbThreads(), pb_max_threads);
|
||||
int threads = std::min<int>(nbThreads(), static_cast<int>(pb_max_threads));
|
||||
|
||||
// if multi-threading is explicitly disabled, not useful, or if we already are
|
||||
// inside a parallel session, then abort multi-threading
|
||||
|
Loading…
x
Reference in New Issue
Block a user