[Piglit] [PATCH 1/1] cl: Add input dependent test for global_offset

Jan Vesely jan.vesely at rutgers.edu
Sat Apr 22 16:59:16 UTC 2017


On Fri, 2017-04-14 at 11:10 -0400, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
> ---
>  tests/cl/program/execute/global-offset.cl | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/tests/cl/program/execute/global-offset.cl b/tests/cl/program/execute/global-offset.cl
> index c75f2b3..da78d2b 100644
> --- a/tests/cl/program/execute/global-offset.cl
> +++ b/tests/cl/program/execute/global-offset.cl
> @@ -74,6 +74,16 @@ arg_out: 0 buffer int[128]  70809 70809  70810 70809  70811 70809  70812 70809 \
>                             101009 70809 101010 70809 101011 70809 101012 70809 \
>                             101109 70809 101110 70809 101111 70809 101112 70809
>  
> +[test]
> +name: 3d, input dependent
> +kernel_name: dynamic
> +dimensions: 3
> +global_size: 1 1 1
> +local_size: 1 1 1
> +global_offset: 9 8 7
> +arg_in: 0 buffer int[5] 6 6 6 6 6
> +arg_out: 0 buffer int[5] 0 9 8 7 0
> +arg_in: 1 int 1
>  !*/
>  
>  kernel void fill(global int* out) {
> @@ -83,3 +93,11 @@ kernel void fill(global int* out) {
>  	out[2*pos] = id;
>  	out[2*pos+1] = offset;
>  }
> +
> +kernel void dynamic(volatile global int *out, int j) {
> +	out[0] = get_global_offset(j-2);
> +	out[1] = get_global_offset(j-1);
> +	out[2] = get_global_offset(j);
> +	out[3] = get_global_offset(j+1);
> +	out[4] = get_global_offset(j+2);
> +}
ping.
I plan to push this later next week, unless someone objects.

Jan
-- 
Jan Vesely <jan.vesely at rutgers.edu>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20170422/9a0f3d7b/attachment.sig>


More information about the Piglit mailing list