[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix AVX store bug in backend matmul 3k3
Browse files Browse the repository at this point in the history
  • Loading branch information
romeric committed Mar 28, 2019
1 parent 85f144a commit 8f4c6ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/matmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ void _matmul(const T * FASTOR_RESTRICT a, const T * FASTOR_RESTRICT b, T * FASTO
}
_mm256_store_pd(out,out_row0);
_mm256_storeu_pd(out+3,out_row1);
_mm256_storeu_pd(out+6,out_row2);
// Causees crash for the last 8byte
// _mm256_storeu_pd(out+6,out_row2);

_mm_storeu_pd(out+6, _mm256_castpd256_pd128(out_row2));
_mm_store_sd (out+8, _mm256_extractf128_pd(out_row2, 1));
}

#endif
Expand Down

0 comments on commit 8f4c6ae

Please sign in to comment.