Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Intrinsic Allocation (MIC)

$
0
0

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)'


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>