I am running VS2013 and haven't had any luck getting a simple gfx offload to compile.
the error I am getting is as follows:
gfx_linker: : error : failed to execute 'ld.exe', errno 2
I have been unable to determine what is causing this error. Any ideas would be helpful. I have included my code below.
float *indata, *outdata;
int nrows = 512;
int ncols = 512;
int size = nrows*ncols;
indata = (float *)malloc(size*sizeof(float));
outdata = (float *)malloc(size*sizeof(float));
#pragma offload target(gfx) pin(indata,outdata:length(size))
_Cilk_for(int i = 0; i < size; i++)
outdata = 4 * indata;
For GFX offload on Windows, we need binutils package since the GFX binary generated is in ELF format. You can download the binutils from http://software.intel.com/en-us/articles/open-source-downloads. This binutils will provide the ld.exe which is needed for linking GFX objects. Also the following getting started with GFX offload article should help you get started: https://software.intel.com/en-us/articles/getting-started-with-compute-offload-to-intelr-graphics-technology.
Thanks and Regards