From 1aac9332ce9022631b8f5fe4461aec16a3a671b3 Mon Sep 17 00:00:00 2001 From: Charles Schlosser Date: Wed, 25 Oct 2023 16:44:34 +0000 Subject: [PATCH] TensorReduction: replace divup with div_ceil --- unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h index c1ad675d7..062a56b1b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h @@ -271,7 +271,7 @@ struct InnerMostDimReducer { // Make sure the split point is aligned on a packet boundary. const typename Self::Index split = packetSize * - divup(firstIndex + divup(numValuesToReduce, typename Self::Index(2)), + numext::div_ceil(firstIndex + numext::div_ceil(numValuesToReduce, typename Self::Index(2)), packetSize); const typename Self::Index num_left = numext::mini(split - firstIndex, numValuesToReduce);