mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 17:59:00 +08:00
TensorReduction: replace divup with div_ceil
This commit is contained in:
parent
5de0f2f89e
commit
1aac9332ce
@ -271,7 +271,7 @@ struct InnerMostDimReducer<Self, Op, true, true> {
|
|||||||
// Make sure the split point is aligned on a packet boundary.
|
// Make sure the split point is aligned on a packet boundary.
|
||||||
const typename Self::Index split =
|
const typename Self::Index split =
|
||||||
packetSize *
|
packetSize *
|
||||||
divup(firstIndex + divup(numValuesToReduce, typename Self::Index(2)),
|
numext::div_ceil(firstIndex + numext::div_ceil(numValuesToReduce, typename Self::Index(2)),
|
||||||
packetSize);
|
packetSize);
|
||||||
const typename Self::Index num_left =
|
const typename Self::Index num_left =
|
||||||
numext::mini(split - firstIndex, numValuesToReduce);
|
numext::mini(split - firstIndex, numValuesToReduce);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user