aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-22 16:11:07 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-12-22 16:11:07 -0800
commit9c7d96697b4e21960d679b7be8d5514a22fd80ab (patch)
tree7eb1341d9e1cdf04b24fddc69b1063419c5ab3cf /unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h
parente7e6d0181061c735fd4d69b1091f0b407e383aac (diff)
Added missing define
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorReductionCuda.h3
1 files changed, 3 insertions, 0 deletions
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<Self, Op, GpuDevice, Vectorizable> {
}
};
+#define DIVUP(x, y) (((x) + (y)-1) / (y))
template <int NumPerThread, typename Self,
typename Reducer, typename Index>
@@ -185,6 +186,8 @@ struct OuterReducer<Self, Op, GpuDevice> {
}
};
+#undef DIVUP
+
#endif