diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h index 6d3aa24c8..b5e186d21 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContractionGpu.h @@ -1219,6 +1219,9 @@ template, GpuDevice> : public TensorContractionEvaluatorBase, GpuDevice> > { + static_assert(std::is_same::value, + "GPU tensor contraction does not support output kernels."); + typedef GpuDevice Device; typedef TensorEvaluator, Device> Self;