diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h index 5d9205b59..20dc72e85 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h @@ -131,6 +131,7 @@ struct FullReducer { } }; +#define DIVUP(x, y) (((x) + (y)-1) / (y)) template @@ -185,6 +186,8 @@ struct OuterReducer { } }; +#undef DIVUP + #endif