[Piglit] [PATCH 1/1] cl: Fix tolerance for division in scalar arithmetic test
Jan Vesely
jan.vesely at rutgers.edu
Fri Feb 6 08:23:03 PST 2015
ping
On Mon, 2015-01-26 at 15:20 -0500, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
> RFC: I only tagged numerical results,
> it did not make sense to me to do it for NaNs and Infs
>
> R600: Fail -> Pass
>
> tests/cl/program/execute/scalar-arithmetic-float.cl | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/tests/cl/program/execute/scalar-arithmetic-float.cl b/tests/cl/program/execute/scalar-arithmetic-float.cl
> index 33a44d4..84c3970 100644
> --- a/tests/cl/program/execute/scalar-arithmetic-float.cl
> +++ b/tests/cl/program/execute/scalar-arithmetic-float.cl
> @@ -178,42 +178,42 @@ name: pos div pos
> kernel_name: div
> arg_in: 1 float 8.5
> arg_in: 2 float 4.25
> -arg_out: 0 buffer float[1] 2
> +arg_out: 0 buffer float[1] 2 tolerance 2
>
> [test]
> name: pos div neg
> kernel_name: div
> arg_in: 1 float 11.25
> arg_in: 2 float -3
> -arg_out: 0 buffer float[1] -3.75
> +arg_out: 0 buffer float[1] -3.75 tolerance 2
>
> [test]
> name: neg div pos
> kernel_name: div
> arg_in: 1 float -21
> arg_in: 2 float 5.25
> -arg_out: 0 buffer float[1] -4
> +arg_out: 0 buffer float[1] -4 tolerance 2
>
> [test]
> name: neg div neg
> kernel_name: div
> arg_in: 1 float -21.25
> arg_in: 2 float -5
> -arg_out: 0 buffer float[1] 4.25
> +arg_out: 0 buffer float[1] 4.25 tolerance 2
>
> [test]
> name: 0 div pos
> kernel_name: div
> arg_in: 1 float 0
> arg_in: 2 float 3.7
> -arg_out: 0 buffer float[1] 0
> +arg_out: 0 buffer float[1] 0 tolerance 2
>
> [test]
> name: 0 div neg
> kernel_name: div
> arg_in: 1 float 0
> arg_in: 2 float -3.7
> -arg_out: 0 buffer float[1] -0
> +arg_out: 0 buffer float[1] -0 tolerance 2
>
> [test]
> name: num div 0
> @@ -234,7 +234,7 @@ name: 0 div inf
> kernel_name: div
> arg_in: 1 float 0
> arg_in: 2 float inf
> -arg_out: 0 buffer float[1] 0
> +arg_out: 0 buffer float[1] 0 tolerance 2
>
> [test]
> name: inf div 0
--
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150206/7bbd8379/attachment.sig>
More information about the Piglit
mailing list