Skip to content
Snippets Groups Projects
Commit 7b5cfbd1 authored by Andrew Heather's avatar Andrew Heather Committed by Mark OLESEN
Browse files

COMP: Gcc 11+ potential fix - see #2434

parent 40cadfd2
Branches
Tags
No related merge requests found
......@@ -1043,6 +1043,10 @@ operator&(const Tensor<Cmpt>& t1, const SymmTensor<Cmpt>& st2)
//- Inner-product of a Tensor and a Vector
template<class Cmpt>
#if defined(__GNUC__) && !defined(__clang__)
// Workaround for gcc (11+) that fails to handle tensor dot vector
__attribute__((optimize("no-tree-vectorize")))
#endif
inline typename innerProduct<Tensor<Cmpt>, Vector<Cmpt>>::type
operator&(const Tensor<Cmpt>& t, const Vector<Cmpt>& v)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment