summaryrefslogtreecommitdiff
path: root/utests/profiling_exec.cpp
diff options
context:
space:
mode:
authorChuanbo Weng <chuanbo.weng@intel.com>2014-04-10 16:17:53 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-04-17 14:34:35 +0800
commit76411af89de50d07780d5f4589b8009822d720e9 (patch)
treeff678f342b8d7310c0465d7e60e901d801469ca9 /utests/profiling_exec.cpp
parentf9bb58ff731a296951af6650dd16fa579c49d1fc (diff)
downloadbeignet-76411af89de50d07780d5f4589b8009822d720e9.tar.gz
Runtime: Add support for Bay Trail-T device.
According to the baytrial-t spec, baytrail-t has 4 EUs and each EU has 8 threads. So the compute unit is 32 and the maximum work group size is 32 * 8 which is 256. Signed-off-by: Chuanbo Weng <chuanbo.weng@intel.com> Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/profiling_exec.cpp')
-rw-r--r--utests/profiling_exec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utests/profiling_exec.cpp b/utests/profiling_exec.cpp
index 2244300d..afa55ba4 100644
--- a/utests/profiling_exec.cpp
+++ b/utests/profiling_exec.cpp
@@ -66,7 +66,8 @@ static void profiling_exec(void)
OCL_CREATE_BUFFER(buf[1], 0, n * sizeof(float), NULL);
OCL_SET_ARG(0, sizeof(cl_mem), &buf[0]);
OCL_SET_ARG(1, sizeof(cl_mem), &buf[1]);
- globals[0] = locals[0] = n;
+ globals[0] = n;
+ locals[0] = 256;
OCL_MAP_BUFFER(0);
for (int32_t i = 0; i < (int32_t) n; ++i)