Just as we discussed offline, non-strict mode will not ensure compliance for all the corner cases. So Let's just ignore this patch for the non-strict mode.
Thanks for the patch. On Tue, Jan 06, 2015 at 10:50:40AM +0800, Ruiling Song wrote: > Signed-off-by: Ruiling Song <[email protected]> > --- > backend/src/libocl/tmpl/ocl_math.tmpl.cl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/backend/src/libocl/tmpl/ocl_math.tmpl.cl > b/backend/src/libocl/tmpl/ocl_math.tmpl.cl > index 3f296e7..ed26b3c 100644 > --- a/backend/src/libocl/tmpl/ocl_math.tmpl.cl > +++ b/backend/src/libocl/tmpl/ocl_math.tmpl.cl > @@ -3508,7 +3508,7 @@ OVERLOADABLE float powr(float x, float y) { > unsigned int hx, sx, hy, sy; > > if (__ocl_math_fastpath_flag) > - return __gen_ocl_pow(x,y); > + return x < 0.0f ? NAN : __gen_ocl_pow(x,y); > else { > if (isnan(x) || isnan(y)) return NAN; > GEN_OCL_GET_FLOAT_WORD(hx,x); > -- > 1.7.10.4 > > _______________________________________________ > Beignet mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
