[Piglit] [PATCH 1/2] cl: Add build test for -D GENTYPE=int

Aaron Watry awatry at gmail.com
Fri Jun 14 16:05:21 PDT 2013


Fun, fun...  Do you have a fix for libclc as well, or is this an issue
that we still need to address?

--Aaron

On Fri, Jun 14, 2013 at 5:51 PM, Tom Stellard <tom at stellard.net> wrote:
> From: Tom Stellard <thomas.stellard at amd.com>
>
> ---
>  tests/cl/program/build/define-GENTYPE.cl | 39 ++++++++++++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 tests/cl/program/build/define-GENTYPE.cl
>
> diff --git a/tests/cl/program/build/define-GENTYPE.cl b/tests/cl/program/build/define-GENTYPE.cl
> new file mode 100644
> index 0000000..42009d0
> --- /dev/null
> +++ b/tests/cl/program/build/define-GENTYPE.cl
> @@ -0,0 +1,39 @@
> +/*
> + * Copyright 2013 Advanced Micro Devices, Inc.
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice (including the next
> + * paragraph) shall be included in all copies or substantial portions of the
> + * Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
> + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
> + * DEALINGS IN THE SOFTWARE.
> + *
> + * Authors: Tom Stellard <thomas.stellard at amd.com>
> + *
> + *
> + * libclc was defining GENTYPE in its header files, so any value defined on the
> + * command line was being ignored.
> + */
> +
> +/*!
> +[config]
> +name: Macro Definitions
> +clc_version_min: 10
> +build_options: -D GENTYPE=int
> +!*/
> +
> +kernel void dummy_kernel(global GENTYPE *out){
> +    *out = 0;
> +}
> --
> 1.7.11.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list