aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/Tensor
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-10-18 16:29:29 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2018-10-18 16:29:29 -0700
commitdda68f56eca13d6942ee9aabb0b6c55153802548 (patch)
tree19dac106572cc3becd0ae20588512d015c5fba15 /unsupported/Eigen/CXX11/Tensor
parent1dcf5a6ed8c5878a951b6eb7cbfa473030b3f7a8 (diff)
Fix GPU build due to gpu_assert not always being defined.
Diffstat (limited to 'unsupported/Eigen/CXX11/Tensor')
-rw-r--r--unsupported/Eigen/CXX11/Tensor3
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/Tensor b/unsupported/Eigen/CXX11/Tensor
index 22eae34ea..25b663046 100644
--- a/unsupported/Eigen/CXX11/Tensor
+++ b/unsupported/Eigen/CXX11/Tensor
@@ -102,6 +102,9 @@ typedef unsigned __int64 uint64_t;
#include "src/Tensor/TensorDeviceDefault.h"
#include "src/Tensor/TensorDeviceThreadPool.h"
#include "src/Tensor/TensorDeviceGpu.h"
+#ifndef gpu_assert
+#define gpu_assert(x)
+#endif
#include "src/Tensor/TensorDeviceSycl.h"
#include "src/Tensor/TensorIndexList.h"
#include "src/Tensor/TensorDimensionList.h"