mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Avoid unnecessary conversion from 32bit int to 64bit unsigned int
This commit is contained in:
@@ -247,7 +247,7 @@ struct FullReducer<Self, Op, ThreadPoolDevice, false> {
|
||||
*output = reducer.finalize(reducer.initialize());
|
||||
return;
|
||||
}
|
||||
const int num_threads = device.numThreads();
|
||||
const std::size_t num_threads = device.numThreads();
|
||||
if (num_threads == 1) {
|
||||
*output = InnerMostDimReducer<Self, Op, false>::reduce(self, 0, num_coeffs, reducer);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user