aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/test/cxx11_tensor_contraction.cpp
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2019-08-07 14:11:15 -0700
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2019-08-07 14:11:15 -0700
commitfacc4e45365d197052ae76b891984afa30c0db97 (patch)
tree1c4f2ee4a6f968abdf5e1147218cf9cf5a5274c6 /unsupported/test/cxx11_tensor_contraction.cpp
parenteab7e52db217240d0320e2618eafa37f45158b83 (diff)
Disable tests for contraction with output kernels when using libxsmm, which does not support this.
Diffstat (limited to 'unsupported/test/cxx11_tensor_contraction.cpp')
-rw-r--r--unsupported/test/cxx11_tensor_contraction.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/unsupported/test/cxx11_tensor_contraction.cpp b/unsupported/test/cxx11_tensor_contraction.cpp
index 2fd128121..75f2e1edf 100644
--- a/unsupported/test/cxx11_tensor_contraction.cpp
+++ b/unsupported/test/cxx11_tensor_contraction.cpp
@@ -511,6 +511,8 @@ static void test_const_inputs()
VERIFY_IS_APPROX(mat3(1,1), mat1(1,0)*mat2(0,1) + mat1(1,1)*mat2(1,1) + mat1(1,2)*mat2(2,1));
}
+#if !defined(EIGEN_USE_LIBXSMM)
+
// Apply Sqrt to all output elements.
struct SqrtOutputKernel {
template <typename Index, typename Scalar>
@@ -560,6 +562,9 @@ static void test_large_contraction_with_output_kernel() {
}
}
+#endif // !defined(EIGEN_USE_LIBXSMM)
+
+
EIGEN_DECLARE_TEST(cxx11_tensor_contraction)
{
CALL_SUBTEST(test_evals<ColMajor>());
@@ -592,6 +597,8 @@ EIGEN_DECLARE_TEST(cxx11_tensor_contraction)
CALL_SUBTEST(test_tensor_product<RowMajor>());
CALL_SUBTEST(test_const_inputs<ColMajor>());
CALL_SUBTEST(test_const_inputs<RowMajor>());
+#if !defined(EIGEN_USE_LIBXSMM)
CALL_SUBTEST(test_large_contraction_with_output_kernel<ColMajor>());
CALL_SUBTEST(test_large_contraction_with_output_kernel<RowMajor>());
+#endif
}