[Beignet] [PATCH] Improve precision of sinpi/cospi

2014-02-17 Thread Ruiling Song
Signed-off-by: Ruiling Song ruiling.s...@intel.com --- backend/src/ocl_stdlib.tmpl.h | 110 - 1 file changed, 54 insertions(+), 56 deletions(-) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index d191b8e..d2cc144 100755 ---

[Beignet] [PATCH V3] GBE: add param to switch the behavior of math func

2014-02-17 Thread Guo Yejun
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