summaryrefslogtreecommitdiff
path: root/libopencl
diff options
context:
space:
mode:
authorInderpreet Singh <[email protected]>2011-08-25 02:04:43 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:18:23 -0700
commita63925256ec38cf38e9928df067bac9781d21d91 (patch)
treee44260dbc410531877df4d26761fdabe3c6ba27e /libopencl
parent75cac88e2131564d79f0407c2d86d0429a1e2dba (diff)
Fix for Bug 109 - memory alignment should be 256 bytes.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10090]
Diffstat (limited to 'libopencl')
-rw-r--r--libopencl/opencl_runtime_api.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index 476e869..f9c1515 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -1134,6 +1134,7 @@ clGetDeviceInfo(cl_device_id device,
case CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT: CL_INT_CASE(1); break;
case CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE: CL_INT_CASE(0); break;
case CL_DEVICE_SINGLE_FP_CONFIG: CL_INT_CASE(0); break;
+ case CL_DEVICE_MEM_BASE_ADDR_ALIGN: CL_INT_CASE(256*8); break;
default:
opencl_not_implemented(__my_func__,__LINE__);
}