Default Optimization in OpenCL
I have OpenCL implemenations, I want to turn off default optimizations which are enabled by default, I used the flag "-cl-opt-disable" in clBuildProgram command but it gives me "undefined -cl-opt-disable" error, how can I disable these default optimizations?
Re: Default Optimization in OpenCL
"-cl-opt-disable" is the standard way to disable optimizations (section 184.108.40.206 of the spec). If it does not work on a particular implementation of OpenCL you should contact your vendor.