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

COMP: Gcc 11+ potential fix - see #2434

parent 1949a31e
No related branches found
No related tags found
No related merge requests found
...@@ -641,6 +641,10 @@ operator&(const Tensor<Cmpt>& t1, const Tensor<Cmpt>& t2) ...@@ -641,6 +641,10 @@ operator&(const Tensor<Cmpt>& t1, const Tensor<Cmpt>& t2)
template<class Cmpt> 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 inline typename innerProduct<Tensor<Cmpt>, Vector<Cmpt>>::type
operator&(const Tensor<Cmpt>& t, const Vector<Cmpt>& v) operator&(const Tensor<Cmpt>& t, const Vector<Cmpt>& v)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment