Add OCL_STRICT_CONFORMANCE to switch the behavior of math func, The funcs will be high precision with perf drops if it is 1, Fast path with good enough precision will be selected if it is 0.
This change is to add the code basis, with 'sin' and 'cos' implemented as examples, other math functions support will be added later.
991e475 GBE: add param to switch the behavior of math func
backend/src/backend/program.cpp | 12 ++++++++++++
backend/src/builtin_vector_proto.def | 4 ++++
backend/src/ocl_stdlib.tmpl.h | 8 ++++++++
3 files changed, 24 insertions(+)
Upstream: cgit.freedesktop.org