[Beignet] [PATCH] utests: fix a typo in test cases.

Song, Ruiling ruiling.song at intel.com
Mon Nov 24 18:58:32 PST 2014


The patch LGTM. Thanks!

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Zhigang Gong
> Sent: Friday, November 21, 2014 12:12 PM
> To: beignet at lists.freedesktop.org
> Cc: Gong, Zhigang
> Subject: [Beignet] [PATCH] utests: fix a typo in test cases.
> 
> due to a stray . at utests/builtin_pow.cpp:79:112.
> Reported by "Rebecca N. Palmer" <rebecca_palmer at zoho.com>.
> 
> Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
> ---
>  utests/builtin_pow.cpp | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utests/builtin_pow.cpp b/utests/builtin_pow.cpp index
> 93863a5..c0361e1 100644
> --- a/utests/builtin_pow.cpp
> +++ b/utests/builtin_pow.cpp
> @@ -75,7 +75,7 @@ static void builtin_pow(void)  #if udebug
>        if ( (isinf(cpu_data[index_cur]) && !isinf(gpu_data[index_cur])) ||
>             (isnan(cpu_data[index_cur]) && !isnan(gpu_data[index_cur]))
> ||
> -           (fabs(gpu_data[index_cur] - cpu_data[index_cur]) >
> cl_FLT_ULP(cpu_data[index_cur]) * ULPSIZE_FACTOR.)   )
> +           (fabs(gpu_data[index_cur] - cpu_data[index_cur]) >
> cl_FLT_ULP(cpu_data[index_cur]) * ULPSIZE_FACTOR)   )
>        {
>          printf_c("%d/%d: x:%f, y:%f -> gpu:%f  cpu:%f\n", k, i,
> input_data1[k], input_data2[k], gpu_data[index_cur], cpu_data[index_cur]);
>        }
> --
> 1.8.3.2
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list