Hi to everyone,
I have a problem with the SDK plugin for Visual Studio 2010. In my kernel I add several MACROS using the -D flag inside the options argument of the clBuildProgram function. However, this is not recognized by the Intel OpenCL SDK plugin, therefore it throws several "use of undeclared identifier" errors and I am not able to run my program.
I am able to run the Kernel if I disable the plugin, but it would be nice to be able to use it, so is there a way to fix this, or I should explicitly declare this macros inside my kernel to be able to debug it using the VS plugin?
Thanks for your help!
PS: As a small example, I have defined in my .cl file the following struct:
typedef struct{ double zbound[MXREG]; int nzb; } Geom;
Therefore, I define MXREG using the -D flag when calling clBuildProgram:
char options[64]; sprintf(options, "-DMXREG=%d, geom.nzb); cl_program program; program = oclBuildProgram(device, context, PROGRAM_FILE, options);
This works perfectly when the OpenCL plugin is not used.