mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Disable tests for contraction with output kernels when using libxsmm, which does not support this.
This commit is contained in:
parent
eab7e52db2
commit
facc4e4536
@ -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));
|
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.
|
// Apply Sqrt to all output elements.
|
||||||
struct SqrtOutputKernel {
|
struct SqrtOutputKernel {
|
||||||
template <typename Index, typename Scalar>
|
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)
|
EIGEN_DECLARE_TEST(cxx11_tensor_contraction)
|
||||||
{
|
{
|
||||||
CALL_SUBTEST(test_evals<ColMajor>());
|
CALL_SUBTEST(test_evals<ColMajor>());
|
||||||
@ -592,6 +597,8 @@ EIGEN_DECLARE_TEST(cxx11_tensor_contraction)
|
|||||||
CALL_SUBTEST(test_tensor_product<RowMajor>());
|
CALL_SUBTEST(test_tensor_product<RowMajor>());
|
||||||
CALL_SUBTEST(test_const_inputs<ColMajor>());
|
CALL_SUBTEST(test_const_inputs<ColMajor>());
|
||||||
CALL_SUBTEST(test_const_inputs<RowMajor>());
|
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<ColMajor>());
|
||||||
CALL_SUBTEST(test_large_contraction_with_output_kernel<RowMajor>());
|
CALL_SUBTEST(test_large_contraction_with_output_kernel<RowMajor>());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user