Menu

#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

  • Fredrik Orderud (old account)

     
  • Fredrik Orderud (old account)

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

     
  • Fredrik Orderud (old account)

    • status: open --> closed-accepted
     
  • Fredrik Orderud (old account)

    Commited in r10.

     

Log in to post a comment.