I tried to compile a program with intrinsic such as "_mm512_load_ps(...)" on MIC using icc compiler. But i meet a problem with the code below.
……
#pragma offload_attribute (push,target(mic))
#include "immintrin.h"
#pragma offload_attribute (pop)
……
#pragma offload_attribute (push,target(mic))
......
_d_wt=_mm512_load_ps (&Random_matrix[k]);
_Xk=_mm512_add_ps(_mm512_set_1to16_ps(X[i]),_d_wt);
......
#pragma offload_attribute (pop)
……
When i tryed to compile the code, i got the information:
ThetaScheme.o: In function `current_solution':
ThetaScheme.c:(.text+0xd86): undefined reference to `_mm512_load_ps'
ThetaScheme.c:(.text+0xda1): undefined reference to `_mm512_set1_ps'
......
Should i link some special library or do some extra work to compile this kind of program ?
Thank you !



