#4 Compiler options support

closed-accepted
nobody
None
5
2011-10-30
2011-10-25
No

This patch adds support for specifying OpenCL compiler options from the command-line, like e.g. the options documented in http://www.khronos.org/registry/cl/sdk/1.1/docs/man/xhtml/clBuildProgram.html

Usage examples:
clcc.exe --cloptions -DM_PI=3.14 cl_source.cl
clcc.exe --cloptions "-cl-unsafe-math-optimizations -DM_PI=3.14" cl_source.cl

Discussion

  • This is a stripped-down and slightly reworked version of patch 3386010, where the compiler options are actually passed on to the OpenCL compiler.

     
    • status: open --> closed-accepted
     
  • Commited in r10.