Quantcast
Channel: Intel® Software - OpenCL*
Viewing all articles
Browse latest Browse all 1182

Passing #defines in as build options

$
0
0

I would like to pass some compile time constants in as build options:

eg:  "-D BUFFER_SIZE=512"

and then I would like to declare the following variable in my kernel:

local buffer[BUFFER_SIZE]; 

When I try this, (visual studio 2012) I get errors. Is there a way of doing this with the intel SDK and 

visual studio integration?

Thanks!

 

 

 


Viewing all articles
Browse latest Browse all 1182

Trending Articles