So i am trying to allocate an array of aligned memory on the MIC like this
#pragma offload_attribute(push, target(mic))
#include <iostream>
#include <omp.h>
#include <ipp.h>
#include <ipps.h>
#include <immintrin.h>
#include <aligned_new>
__m512 *a,*b,*c;
void setData(int size){
int size512 = size/16+1;
b = new __m512[size512];
c = new __m512[size512]();
}
#pragma offload_attribute(pop)Compiler fails at linking stage with:
undefined reference to `operator new[](unsigned long, std::align_val_t)'