[Piglit] [PATCH 1/1] cl: generated store: reduce the number of elements to 4
Jan Vesely
jan.vesely at rutgers.edu
Tue Jun 24 15:34:31 PDT 2014
8 ulong16 crashes r600.
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
Crashing on lack of resources is probably not the intended behavior.
generated_tests/cl/store/store-kernels-global.inc | 4 ----
generated_tests/generate-cl-store-tests.py | 18 +++++++++---------
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/generated_tests/cl/store/store-kernels-global.inc b/generated_tests/cl/store/store-kernels-global.inc
index b6220d0..5f5bf86 100644
--- a/generated_tests/cl/store/store-kernels-global.inc
+++ b/generated_tests/cl/store/store-kernels-global.inc
@@ -9,10 +9,6 @@ kernel void store_global(global type_t *out, global type_t *in) {
out[1] = in[1];
out[2] = in[2];
out[3] = in[3];
- out[4] = in[4];
- out[5] = in[5];
- out[6] = in[6];
- out[7] = in[7];
}
kernel void store_global_wi(global type_t *out, global type_t *in) {
diff --git a/generated_tests/generate-cl-store-tests.py b/generated_tests/generate-cl-store-tests.py
index 5a09985..4179271 100644
--- a/generated_tests/generate-cl-store-tests.py
+++ b/generated_tests/generate-cl-store-tests.py
@@ -36,8 +36,8 @@ if not os.path.exists(dirName):
os.makedirs(dirName)
-def gen_array(size):
- return ' '.join([str(i) for i in xrange(size * 8)])
+def gen_array(size, count):
+ return ' '.join([str(i) for i in xrange(size * count)])
def ext_req(type_name):
if type_name[:6] == "double":
@@ -77,15 +77,15 @@ for t in TYPES:
name: global address space
global_size: 1 0 0
kernel_name: store_global
- arg_out: 0 buffer {type_name}[8] {gen_array}
- arg_in: 1 buffer {type_name}[8] {gen_array}
+ arg_out: 0 buffer {type_name}[4] {gen_array}
+ arg_in: 1 buffer {type_name}[4] {gen_array}
[test]
name: global address space work items
- global_size: 8 0 0
+ global_size: 4 0 0
kernel_name: store_global_wi
- arg_out: 0 buffer {type_name}[8] {gen_array}
- arg_in: 1 buffer {type_name}[8] {gen_array}
- """.format(type_name=type_name, gen_array=gen_array(size))))
+ arg_out: 0 buffer {type_name}[4] {gen_array}
+ arg_in: 1 buffer {type_name}[4] {gen_array}
+ """.format(type_name=type_name, gen_array=gen_array(size, 4))))
f.close()
@@ -98,6 +98,6 @@ for t in TYPES:
kernel_name: store_local
arg_out: 0 buffer {type_name}[8] {gen_array}
arg_in: 1 buffer {type_name}[8] {gen_array}
- """.format(type_name=type_name, gen_array=gen_array(size))))
+ """.format(type_name=type_name, gen_array=gen_array(size, 8))))
f.close()
--
1.9.3
More information about the Piglit
mailing list