In a commercial environment, we have the requirement that no OpenCL source code can be stored in the file system as plain text. Is it still possible under this restriction to use #include statements in OpenCL code, i.e., can I somehow tell the OpenCL compiler that "#include <something.h>" means to fetch "something.h" from a location in memory instead of the file system? Although #include statements can sometimes be avoided by passing headers as additional source strings to "clCreateProgramWithSource", there are still situations which should be left to the OpenCL preprocessor, such as code like this:
where USE_SOME_FEATURE is dynamically specified as an OpenCL preprocessor option at application runtime. Do you have any ideas about this?
Thanks & kind regards,