Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intel constexpr failure #10222

Closed
tjhei opened this issue May 15, 2020 · 3 comments
Closed

intel constexpr failure #10222

tjhei opened this issue May 15, 2020 · 3 comments

Comments

@tjhei
Copy link
Member

tjhei commented May 15, 2020

as reported by @tamiko at https://cdash.43-1.org/testDetails.php?test=44331408&build=6387:
in Test: tensors/constexpr_tensor.debug:

suite/dealii/tests/tensors/constexpr_tensor.cc(174): error: expression must have a constant value
      DEAL_II_CONSTEXPR const auto dummy_4 = schur_product(a, ref);
                                             ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(2004): note: called from:
      tmp[i] = schur_product(Tensor<rank - 1, dim, Number>(src1[i]),
             ^

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(178): error: expression must have a constant value
      DEAL_II_CONSTEXPR const auto dummy_7 = adjugate(a);
                                             ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1839): note: called from:
    return t * factor;
             ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(2613): note: called from:
    return determinant(t) * invert(t);
                          ^

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(179): error: expression must have a constant value
      DEAL_II_CONSTEXPR const auto dummy_8 = cofactor(a);
                                             ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1839): note: called from:
    return t * factor;
             ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(2613): note: called from:
    return determinant(t) * invert(t);
                          ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(2635): note: called from:
    return transpose(adjugate(t));
                             ^

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(34): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto d = a * 2.;
                                     ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=1, Number=float]" at line 96

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(35): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto e = 2. * a;
                                     ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1839): note: called from:
    return t * factor;
             ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=1, Number=float]" at line 96

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(37): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto g = d + e;
                                     ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: temporary object is not constant
      tt[d] = t[d] * factor;
              ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=1, Number=float]" at line 96

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(38): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto h = d - e;
                                     ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: temporary object is not constant
      tt[d] = t[d] * factor;
              ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=1, Number=float]" at line 96

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(34): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto d = a * 2.;
                                     ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=2, Number=float]" at line 97

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(35): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto e = 2. * a;
                                     ^
Note: attempt to access run-time storage
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: called from:
      tt[d] = t[d] * factor;
            ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1839): note: called from:
    return t * factor;
             ^
          detected during instantiation of "void test_constexpr_tensor_constructors<rank,dim,Number>() [with rank=2, dim=2, Number=float]" at line 97

/srv/testsuite/dealii/tests/tensors/constexpr_tensor.cc(37): error: expression must have a constant value
    DEAL_II_CONSTEXPR const auto g = d + e;
                                     ^
/srv/testsuite/dealii/include/deal.II/base/tensor.h(1813): note: temporary object is not constant
      tt[d] = t[d] * factor;
...
@rezarastak
Copy link
Contributor

Reminds me of #8410 and #8413 where there was also some issue with DEAL_II_CONSTEXPR and the intel compiler. We can possibly disable DEAL_II_CONSTEXPR for icc altogether.

@drwells
Copy link
Member

drwells commented Jun 12, 2021

Do we remember which version of ICC this was? I am pretty sure we fixed this but I'd like to check.

@bangerth
Copy link
Member

It's been about four years without activity here. Let me close this -- we can always re-open if relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants