GBE: add param to switch the behavior of math func
authorGuo Yejun <yejun.guo@intel.com>
Mon, 17 Feb 2014 21:30:27 +0000 (05:30 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 21 Feb 2014 03:01:33 +0000 (11:01 +0800)
commit991e475042d5878e39125e9b8e50e89c952147d4
tree1dc37f4cbac524ab3131a176d46efc14be45df20
parent3b59e7d702169de9d07e82c910dedfb4a11951df
GBE: add param to switch the behavior of math func

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.

Signed-off-by: Guo Yejun <yejun.guo@intel.com>
backend/src/backend/program.cpp
backend/src/builtin_vector_proto.def
backend/src/ocl_stdlib.tmpl.h