From dda68f56eca13d6942ee9aabb0b6c55153802548 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Thu, 18 Oct 2018 16:29:29 -0700 Subject: Fix GPU build due to gpu_assert not always being defined. --- unsupported/Eigen/CXX11/Tensor | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.3