[Piglit] [PATCH] cl: split CL10/CL11+ optimization options testing

Tom Stellard tom at stellard.net
Fri Nov 14 17:39:38 PST 2014


On Wed, Nov 12, 2014 at 03:31:28PM +0100, EdB wrote:
> because -cl-strict-aliasing options argument to
> clBuildProgram is no longer supported in OpenCL 1.1.
> 

I've pushed this, thanks!


> ---
> or may be we should just test this in api/build-program.c
> ---
>  tests/cl/program/build/optimization-options-cl10.cl  | 13 +++++++++++++
>  tests/cl/program/build/optimization-options-cl11+.cl | 12 ++++++++++++
>  tests/cl/program/build/optimization-options.cl       | 12 ------------
>  3 files changed, 25 insertions(+), 12 deletions(-)
>  create mode 100644 tests/cl/program/build/optimization-options-cl10.cl
>  create mode 100644 tests/cl/program/build/optimization-options-cl11+.cl
>  delete mode 100644 tests/cl/program/build/optimization-options.cl
> 
> diff --git a/tests/cl/program/build/optimization-options-cl10.cl b/tests/cl/program/build/optimization-options-cl10.cl
> new file mode 100644
> index 0000000..38a519c
> --- /dev/null
> +++ b/tests/cl/program/build/optimization-options-cl10.cl
> @@ -0,0 +1,13 @@
> +/*!
> +[config]
> +name: Optimization Options
> +clc_version_min: 10
> +clc_version_max: 10
> +build_options: -cl-opt-disable -cl-strict-aliasing -cl-mad-enable -cl-finite-math-only -cl-no-signed-zeros -cl-unsafe-math-optimizations -cl-fast-relaxed-math
> +!*/
> +
> +void dummy_function() {}
> +
> +kernel void dummy_kernel(global int* out) {
> +    dummy_function();
> +}
> \ No newline at end of file
> diff --git a/tests/cl/program/build/optimization-options-cl11+.cl b/tests/cl/program/build/optimization-options-cl11+.cl
> new file mode 100644
> index 0000000..080ba6d
> --- /dev/null
> +++ b/tests/cl/program/build/optimization-options-cl11+.cl
> @@ -0,0 +1,12 @@
> +/*!
> +[config]
> +name: Optimization Options CL1.1+
> +clc_version_min: 11
> +build_options: -cl-opt-disable -cl-mad-enable -cl-finite-math-only -cl-no-signed-zeros -cl-unsafe-math-optimizations -cl-fast-relaxed-math
> +!*/
> +
> +void dummy_function() {}
> +
> +kernel void dummy_kernel(global int* out) {
> +    dummy_function();
> +}
> \ No newline at end of file
> diff --git a/tests/cl/program/build/optimization-options.cl b/tests/cl/program/build/optimization-options.cl
> deleted file mode 100644
> index 9d73fb4..0000000
> --- a/tests/cl/program/build/optimization-options.cl
> +++ /dev/null
> @@ -1,12 +0,0 @@
> -/*!
> -[config]
> -name: Optimization Options
> -clc_version_min: 10
> -build_options: -cl-opt-disable -cl-strict-aliasing -cl-mad-enable -cl-finite-math-only -cl-no-signed-zeros -cl-unsafe-math-optimizations -cl-fast-relaxed-math
> -!*/
> -
> -void dummy_function() {}
> -
> -kernel void dummy_kernel(global int* out) {
> -    dummy_function();
> -}
> \ No newline at end of file
> -- 
> 1.9.3
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list