[Beignet] [PATCH] utests: change tolerance check for lgamma
Guo Yejun
yejun.guo at intel.com
Wed Jul 27 00:16:15 UTC 2016
according to spec section 7.4: The ULP values for built-in math
functions lgamma and lgamma_r is currently undefined, let's use
16*ULP for lgamma result.
Signed-off-by: Guo Yejun <yejun.guo at intel.com>
---
utests/utest_math_gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/utests/utest_math_gen.py b/utests/utest_math_gen.py
index ac70979..a4bfd51 100755
--- a/utests/utest_math_gen.py
+++ b/utests/utest_math_gen.py
@@ -360,7 +360,7 @@ static float ldexp(float x, int y){
lgamma_input_values = base_input_values
lgamma_input_type = ['float','float2','float4','float8','float16']
lgamma_output_type = ['float','float2','float4','float8','float16']
- lgammaUtests = func('lgamma','lgamma',[lgamma_input_type],lgamma_output_type,[lgamma_input_values],'4 * FLT_ULP')
+ lgammaUtests = func('lgamma','lgamma',[lgamma_input_type],lgamma_output_type,[lgamma_input_values],'16 * FLT_ULP')
##### gentype log(gentype)
log_input_values = base_input_values
--
1.9.1
More information about the Beignet
mailing list