- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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.
#include "stdafx.h"
#include <cilk\cilk.h>
#include <cilk\common.h>
int main(void)
{
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;
}
}
free(indata);
free(outdata);
}
Regards,
Brad
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Brad,
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
Anoop

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page