From 236a18e38ba0d3275497fe0e963672aea427688f Mon Sep 17 00:00:00 2001 From: Guo Yejun Date: Thu, 22 Jan 2015 13:31:48 +0800 Subject: 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 Reviewed-by: Zhigang Gong --- utests/runtime_use_host_ptr_buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utests/runtime_use_host_ptr_buffer.cpp') diff --git a/utests/runtime_use_host_ptr_buffer.cpp b/utests/runtime_use_host_ptr_buffer.cpp index 79273c30..54f39d34 100644 --- a/utests/runtime_use_host_ptr_buffer.cpp +++ b/utests/runtime_use_host_ptr_buffer.cpp @@ -7,7 +7,7 @@ static void runtime_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; -- cgit v1.2.1