I'm an undergrad student working on some code for that is supposed to just do some simple matrix multiplication. The professor I'm working for has purchased a MIC and I'm trying to get things working using some of the C++ intrinsics. In particular I'm using _m512_mul_pd to try to multiply two together and I'm storing the result in another vector. However, when ever I have any code that accesses the variable I use to store the result of the multiplication in I get a seg. fault. Any ideas of why this is happening and what I can do to fix it?
Here are the lines of code I'm talking about:
__m512d tmp = _m512_mul_pd(matrix.v, m.matrix.v) //works fine
return Matrix(tmp) // causes seg fault