summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2015-01-22 13:31:48 +0800
committerZhigang Gong <zhigang.gong@intel.com>2015-01-23 11:59:36 +0800
commit236a18e38ba0d3275497fe0e963672aea427688f (patch)
treeef7b96a6816bead85bf02efe3331739e6210d001 /benchmark
parentb5f8f3576bf60c4d6e42902fb8f32e34c129c5ca (diff)
update utest to loose userptr limitation
the limitation is loosed from page size to cache line size alignment inside driver, update utest accordingly. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/benchmark_use_host_ptr_buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/benchmark_use_host_ptr_buffer.cpp b/benchmark/benchmark_use_host_ptr_buffer.cpp
index 7ede5767..80b6c5c3 100644
--- a/benchmark/benchmark_use_host_ptr_buffer.cpp
+++ b/benchmark/benchmark_use_host_ptr_buffer.cpp
@@ -10,7 +10,7 @@ int benchmark_use_host_ptr_buffer(void)
// Setup kernel and buffers
OCL_CREATE_KERNEL("runtime_use_host_ptr_buffer");
- int ret = posix_memalign(&buf_data[0], 4096, sizeof(uint32_t) * n);
+ int ret = posix_memalign(&buf_data[0], 64, sizeof(uint32_t) * n);
OCL_ASSERT(ret == 0);
for (uint32_t i = 0; i < n; ++i) ((uint32_t*)buf_data[0])[i] = i;