summaryrefslogtreecommitdiff
path: root/utests/compiler_long.cpp
diff options
context:
space:
mode:
authorRuiling Song <ruiling.song@intel.com>2013-11-07 15:13:13 +0800
committerZhigang Gong <zhigang.gong@intel.com>2013-11-07 15:02:38 +0800
commit5c04f5847fc8743dec7aa3537e6f2d201da53f3a (patch)
tree8f3d75d61e12c8bff44d1db66d407ea6554e01cf /utests/compiler_long.cpp
parent603f1eb86992e3aecdf05ad77e1c0e16069a5e15 (diff)
downloadbeignet-5c04f5847fc8743dec7aa3537e6f2d201da53f3a.tar.gz
GBE: fix a 64bit scalar register issue.
For scalar register, should use stride 0. also change the unit test to hit the point. v2: fix h2() Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_long.cpp')
-rw-r--r--utests/compiler_long.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compiler_long.cpp b/utests/compiler_long.cpp
index d7e15172..b525694f 100644
--- a/utests/compiler_long.cpp
+++ b/utests/compiler_long.cpp
@@ -8,6 +8,7 @@ void compiler_long(void)
const size_t n = 16;
int64_t src1[n], src2[n];
+ int64_t zero = 0;
// Setup kernel and buffers
OCL_CREATE_KERNEL("compiler_long");
OCL_CREATE_BUFFER(buf[0], 0, n * sizeof(int64_t), NULL);
@@ -16,6 +17,7 @@ void compiler_long(void)
OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);
OCL_SET_ARG(1, sizeof(cl_mem), &buf[1]);
OCL_SET_ARG(2, sizeof(cl_mem), &buf[2]);
+ OCL_SET_ARG(3, sizeof(cl_long), &zero);
globals[0] = n;
locals[0] = 16;