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

EdB edb+piglit at sigluy.net
Wed Nov 12 06:31:28 PST 2014


because -cl-strict-aliasing options argument to
clBuildProgram is no longer supported in OpenCL 1.1.

---
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



More information about the Piglit mailing list