Hello,
I'm trying to pass the following string to the OpenCL compiler using the fourth parameter of the function clBuildProgram
-DNUMBERS=0,1,2,3
so that I can use the macro NUMBERS to initialize a constant static array in the code,
const int numbers [] = { NUMBERS };
This is something that certainly works with GNU C preprocessor; however, here I'm getting error
Catastrophic error: cannot open source file "1"
I tried enclosing the numbers in quotation marks, -DNUMBERS="0,1,2,3", which passes the string "0,1,2,3" really as a string, and that is unusable for my purpose. Is there any workaround for such command-line definition?
Thank you for any suggestion!
Jakub