I'm working on some simple examples of using the Xeon Phi with intrinsics. Is something like the following supported? Or am I missing something really obvious?
#include "immintrin.h" int main(int argc, char ** argv) { double arr[8] = {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0}; __m512d d1 = _mm512_load_pd(arr); __m512d d2 = _mm512_load_pd(arr); __m512d d3 = d1 * d2; return 0; }
I get the following error with Intel 16.0.2 (and earlier versions):
[user@host mictest]$ icc -mmic -Wall test.c
test.c(9): error: operation not supported for these simd operands
__m512d d3 = d1 * d2;
^
compilation aborted for test.c (code 2)