Hello,
I have a codes for basic matrix/vector multiplication (overall 12 codes). They are made to use SSE, AVX and FMA. With AVX/FMA, I use YMM registers.
The whole code is linked into .dll and I use Matlab to call these functions.
While functions that uses XMM registers work fine, the ones that uses YMM registers crash SOMETIMES (not always, but mostly Matlab crashes and reports a bug in DLL).
This is kinda strange because I'm not sure what might be the problem here.
So I made a function with AVX instruction BUT with XMM registers and the funciton works well, no crashes.
It seems to be some kind of a problem with using YMM registers.
Have you ever seen something like that? Any help appreciated.
PS: ALL codes are OK - they work as expected (tested in Matlab and DBG).