From 48a20b7d956433713a39e04d39cba443b7a763de Mon Sep 17 00:00:00 2001 From: Mehdi Goli Date: Tue, 31 Jan 2017 14:06:36 +0000 Subject: [PATCH] Fixing compiler error on TensorContractionSycl.h; Silencing the compiler unused parameter warning for eval_op_indices in TensorContraction.h --- unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h index 828db6d8b..71f086426 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorContraction.h @@ -682,6 +682,9 @@ protected: } m_can_use_xsmm = true; + #else + // silence the compiler warning + (void) eval_op_indices; #endif } @@ -842,10 +845,6 @@ protected: TensorEvaluator m_rightImpl; const Device& m_device; Scalar* m_result; - - /// required for sycl - const Indices m_expr_indices; - bool m_can_use_xsmm; };